/*! fineui 2019-10-19 16:29:03 */
function _classCallCheck ( a , b ) { if ( ! ( a instanceof b ) ) throw new TypeError ( "Cannot call a class as a function" ) } var _global ; _global = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this , null == _global . BI && ( _global . BI = { prepares : [ ] } ) , null == _global . BI . prepares && ( _global . BI . prepares = [ ] ) , Array . prototype . indexOf || ( Array . prototype . indexOf = function ( a , b ) { var c ; if ( null == this ) throw new TypeError ( '"this" is null or not defined' ) ; var d = Object ( this ) , e = d . length >>> 0 ; if ( 0 === e ) return - 1 ; var f = 0 | b ; if ( f >= e ) return - 1 ; for ( c = Math . max ( f >= 0 ? f : e - Math . abs ( f ) , 0 ) ; c < e ; ) { if ( c in d && d [ c ] === a ) return c ; c ++ } return - 1 } ) , Array . prototype . lastIndexOf || ( Array . prototype . lastIndexOf = function ( a ) { "use strict" ; if ( void 0 === this || null === this ) throw new TypeError ; var b , c , d = Object ( this ) , e = d . length >>> 0 ; if ( 0 === e ) return - 1 ; for ( b = e - 1 , arguments . length > 1 && ( b = Number ( arguments [ 1 ] ) , b != b ? b = 0 : 0 != b && b != 1 / 0 && b != - ( 1 / 0 ) && ( b = ( b > 0 || - 1 ) * Math . floor ( Math . abs ( b ) ) ) ) , c = b >= 0 ? Math . min ( b , e - 1 ) : e - Math . abs ( b ) ; c >= 0 ; c -- ) if ( c in d && d [ c ] === a ) return c ; return - 1 } ) , _global . console = _global . console || function ( ) { var a = { } ; return a . log = a . warn = a . debug = a . info = a . error = a . time = a . dir = a . profile = a . clear = a . exception = a . trace = a . assert = function ( ) { } , a } ( ) , _global . localStorage || ( _global . localStorage = { items : { } , setItem : function ( a , b ) { BI . Cache . addCookie ( a , b ) } , getItem : function ( a ) { return BI . Cache . getCookie ( a ) } , removeItem : function ( a ) { BI . Cache . deleteCookie ( a ) } , key : function ( ) { } , clear : function ( ) { this . items = { } } } ) , Object . keys || ( Object . keys = function ( a ) { if ( a !== Object ( a ) ) throw new TypeError ( "Object.keys called on a non-object" ) ; var b , c , d = { _ _ob _ _ : b , $accessors : b , $vbthis : b , $vbsetter : b } , e = [ ] ; for ( c in a ) c in d || Object . prototype . hasOwnProperty . call ( a , c ) && e . push ( c ) ; return e } ) , Array . isArray || ( Array . isArray = function ( a ) { return "[object Array]" === Object . prototype . toString . call ( a ) } ) , "function" != typeof Object . getPrototypeOf && ( Object . getPrototypeOf = "" . _ _proto _ _ === String . prototype ? function ( a ) { return a . _ _proto _ _ } : function ( a ) { return a . constructor . prototype } ) , Date . now || ( Date . now = function ( ) { return ( new Date ) . valueOf ( ) } ) , "undefined" != typeof Set && Set . toString ( ) . match ( /native code/ ) || ( Set = function ( ) { this . set = { } } , Set . prototype . has = function ( a ) { return void 0 !== this . set [ a ] } , Set . prototype . add = function ( a ) { this . set [ a ] = 1 } , Set . prototype . clear = function ( ) { this . set = { } } ) , ! function ( a ) { var b = a . navigator . userAgent . toLowerCase ( ) , c = /msie/ ; if ( c . test ( b ) ) { var d = Array . prototype . sort ; Array . prototype . sort = function ( a ) { if ( a && "function" == typeof a ) { if ( this . length < 2 ) return this ; for ( var b , c = 0 , e = c + 1 , f = this . length , g = ! 1 , h = 0 ; c < f ; c ++ ) for ( e = c + 1 ; e < f ; e ++ ) h = a . call ( this , this [ c ] , this [ e ] ) , g = ( "number" == typeof h ? h : h ? 1 : 0 ) > 0 , g === ! 0 && ( b = this [ c ] , this [ c ] = this [ e ] , this [ e ] = b ) ; return this } return d . call ( this ) } } } ( window ) ; var _global ; _global = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this , null == _global . BI && ( _global . BI = { prepares : [ ] } ) , null == _global . BI . prepares && ( _global . BI . prepares = [ ] ) , function ( ) { function a ( a , b , c ) { switch ( c . length ) { case 0 : return a . call ( b ) ; case 1 : return a . call ( b , c [ 0 ] ) ; case 2 : return a . call ( b , c [ 0 ] , c [ 1 ] ) ; case 3 : return a . call ( b , c [ 0 ] , c [ 1 ] , c [ 2 ] ) } return a . apply ( b , c ) } function b ( a , b , c , d ) { for ( var e = - 1 , f = null == a ? 0 : a . length ; ++ e < f ; ) { var g = a [ e ] ; b ( d , g , c ( g ) , a ) } return d } function c ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length ; ++ c < d && b ( a [ c ] , c , a ) !== ! 1 ; ) ; return a } function d ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length ; ++ c < d ; ) if ( ! b ( a [ c ] , c , a ) ) return ! 1 ; return ! 0 } function e ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length , e = 0 , f = [ ] ; ++ c < d ; ) { var g = a [ c ] ; b ( g , c , a ) && ( f [ e ++ ] = g ) } return f } function f ( a , b ) { var c = null == a ? 0 : a . length ; return ! ! c && o ( a , b , 0 ) > - 1 } function g ( a , b , c ) { for ( var d = - 1 , e = null == a ? 0 : a . length ; ++ d < e ; ) if ( c ( b , a [ d ] ) ) return ! 0 ; return ! 1 } function h ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length , e = Array ( d ) ; ++ c < d ; ) e [ c ] = b ( a [ c ] , c , a ) ; return e } function i ( a , b ) { for ( var c = - 1 , d = b . length , e = a . length ; ++ c < d ; ) a [ e + c ] = b [ c ] ; return a } function j ( a , b , c , d ) { var e = - 1 , f = null == a ? 0 : a . length ; for ( d && f && ( c = a [ ++ e ] ) ; ++ e < f ; ) c = b ( c , a [ e ] , e , a ) ; return c } function k ( a , b ) { for ( var c = - 1 , d = null == a ? 0 : a . length ; ++ c < d ; ) if ( b ( a [ c ] , c , a ) ) return ! 0 ; return ! 1 } function l ( a ) { return a . split ( "" ) } function m ( a , b , c ) { var d ; return c ( a , func
return ! a . call ( this ) ; case 1 : return ! a . call ( this , b [ 0 ] ) ; case 2 : return ! a . call ( this , b [ 0 ] , b [ 1 ] ) ; case 3 : return ! a . call ( this , b [ 0 ] , b [ 1 ] , b [ 2 ] ) } return ! a . apply ( this , b ) } } function Ed ( a ) { return Ad ( 2 , a ) } function Fd ( a , b ) { if ( "function" != typeof a ) throw new TypeError ( Le ) ; return b = b === Ie ? b : be ( b ) , ub ( a , b ) } function Gd ( a , b , c ) { var d = ! 0 , e = ! 0 ; if ( "function" != typeof a ) throw new TypeError ( Le ) ; return Sd ( c ) && ( d = "leading" in c ? ! ! c . leading : d , e = "trailing" in c ? ! ! c . trailing : e ) , Bd ( a , b , { leading : d , maxWait : b , trailing : e } ) } function Hd ( a ) { return Ea ( a , Re ) } function Id ( a ) { return Ea ( a , Pe | Re ) } function Jd ( a , b ) { return a === b || a !== a && b !== b } function Kd ( a ) { return null != a && Rd ( a . length ) && ! Qd ( a ) } function Ld ( a ) { return Td ( a ) && Kd ( a ) } function Md ( a ) { return a === ! 0 || a === ! 1 || Td ( a ) && Qa ( a ) == rf } function Nd ( a ) { if ( null == a ) return ! 0 ; if ( Kd ( a ) && ( ti ( a ) || "string" == typeof a || "function" == typeof a . splice || ui ( a ) || zi ( a ) || si ( a ) ) ) return ! a . length ; var b = bi ( a ) ; if ( b == wf || b == Df ) return ! a . size ; if ( Ic ( a ) ) return ! gb ( a ) . length ; for ( var c in a ) if ( ah . call ( a , c ) ) return ! 1 ; return ! 0 } function Od ( a , b ) { return Za ( a , b ) } function Pd ( a ) { return "number" == typeof a && xh ( a ) } function Qd ( a ) { if ( ! Sd ( a ) ) return ! 1 ; var b = Qa ( a ) ; return b == uf || b == vf || b == qf || b == Bf } function Rd ( a ) { return "number" == typeof a && a > - 1 && a % 1 == 0 && a <= jf } function Sd ( a ) { var b = typeof a ; return null != a && ( "object" == b || "function" == b ) } function Td ( a ) { return null != a && "object" == typeof a } function Ud ( a ) { return Wd ( a ) && a != + a } function Vd ( a ) { return null === a } function Wd ( a ) { return "number" == typeof a || Td ( a ) && Qa ( a ) == xf } function Xd ( a ) { if ( ! Td ( a ) || Qa ( a ) != zf ) return ! 1 ; var b = lh ( a ) ; if ( null === b ) return ! 0 ; var c = ah . call ( b , "constructor" ) && b . constructor ; return "function" == typeof c && c instanceof c && _g . call ( c ) == eh } function Yd ( a ) { return "string" == typeof a || ! ti ( a ) && Td ( a ) && Qa ( a ) == Ef } function Zd ( a ) { return "symbol" == typeof a || Td ( a ) && Qa ( a ) == Ff } function $d ( a ) { return a === Ie } function _d ( a ) { if ( ! a ) return [ ] ; if ( Kd ( a ) ) return Yd ( a ) ? L ( a ) : Qb ( a ) ; if ( qh && a [ qh ] ) return D ( a [ qh ] ( ) ) ; var b = bi ( a ) , c = b == wf ? E : b == Df ? I : qe ; return c ( a ) } function ae ( a ) { if ( ! a ) return 0 === a ? a : 0 ; if ( a = ce ( a ) , a === hf || a === - hf ) { var b = a < 0 ? - 1 : 1 ; return b * kf } return a === a ? a : 0 } function be ( a ) { var b = ae ( a ) , c = b % 1 ; return b === b ? c ? b - c : b : 0 } function ce ( a ) { if ( "number" == typeof a ) return a ; if ( Zd ( a ) ) return lf ; if ( Sd ( a ) ) { var b = "function" == typeof a . valueOf ? a . valueOf ( ) : a ; a = Sd ( b ) ? b + "" : b } if ( "string" != typeof a ) return 0 === a ? a : + a ; a = a . replace ( Zf , "" ) ; var c = eg . test ( a ) ; return c || gg . test ( a ) ? Hg ( a . slice ( 2 ) , c ? 2 : 8 ) : dg . test ( a ) ? lf : + a } function de ( a ) { return Rb ( a , me ( a ) ) } function ee ( a ) { return null == a ? "" : yb ( a ) } function fe ( a , b ) { var c = Th ( a ) ; return null == b ? c : za ( c , b ) } function ge ( a , b ) { return m ( a , fb ( b , 3 ) , La ) } function he ( a , b ) { return m ( a , fb ( b , 3 ) , Ma ) } function ie ( a , b , c ) { var d = null == a ? Ie : Oa ( a , b ) ; return d === Ie ? c : d } function je ( a , b ) { return null != a && wc ( a , b , Sa ) } function ke ( a , b ) { return null != a && wc ( a , b , Ta ) } function le ( a ) { return Kd ( a ) ? ua ( a ) : gb ( a ) } function me ( a ) { return Kd ( a ) ? ua ( a , ! 0 ) : hb ( a ) } function ne ( a , b ) { return oe ( a , Dd ( fb ( b ) ) ) } function oe ( a , b ) { if ( null == a ) return { } ; var c = h ( nc ( a ) , function ( a ) { return [ a ] } ) ; return b = fb ( b ) , qb ( a , c , function ( a , c ) { return b ( a , c [ 0 ] ) } ) } function pe ( a , b , c ) { b = Eb ( b , a ) ; var d = - 1 , e = b . length ; for ( e || ( e = 1 , a = Ie ) ; ++ d < e ; ) { var f = null == a ? Ie : a [ Uc ( b [ d ] ) ] ; f === Ie && ( d = e , f = c ) , a = Qd ( f ) ? f . call ( a ) : f } return a } function qe ( a ) { return null == a ? [ ] : w ( a , le ( a ) ) } function re ( a , b , c ) { return c === Ie && ( c = b , b = Ie ) , c !== Ie && ( c = ce ( c ) , c = c === c ? c : 0 ) , b !== Ie && ( b = ce ( b ) , b = b === b ? b : 0 ) , Da ( ce ( a ) , b , c ) } function se ( a , b , c ) { if ( c && "boolean" != typeof c && Dc ( a , b , c ) && ( b = c = Ie ) , c === Ie && ( "boolean" == typeof b ? ( c = b , b = Ie ) : "boolean" == typeof a && ( c = a , a = Ie ) ) , a === Ie && b === Ie ? ( a = 0 , b = 1 ) : ( a = ae ( a ) , b === Ie ? ( b = a , a = 0 ) : b = ae ( b ) ) , a > b ) { var d = a ; a = b , b = d } if ( c || a % 1 || b % 1 ) { var e = Ch ( ) ; return Ah ( a + e * ( b - a + Gg ( "1e-" + ( ( e + "" ) . length - 1 ) ) ) , b ) } return sb ( a , b ) } function te ( a ) { return a = ee ( a ) , a && Uf . test ( a ) ? a . replace ( Tf , Wg ) : a } function ue ( a , b , c ) { if ( a = ee ( a ) , a && ( c || b === Ie ) ) return a . replace ( Zf , "" ) ; if ( ! a || ! ( b = yb ( b ) ) ) return a ; var d = L ( a ) , e = L ( b ) , f = y ( d , e ) , g = z ( d , e ) + 1 ; return Fb ( d , f , g ) . join ( "" ) } function ve ( a ) { return function ( ) { return a } } function we ( a ) { return a } function xe ( a ) { return fb ( "function" == typeof a ? a : Ea ( a , Pe ) ) } function ye ( a ) { return kb ( Ea ( a , Pe ) ) } function ze ( a , b , d ) { var e = le ( b ) , f = Na ( b , e ) ; null != d || Sd ( b ) && ( f . length || ! e . length ) || ( d = b , b = a , a = this , f = N
function a ( ) { for ( var a , b , c , d , e = arguments [ 0 ] || { } , f = arguments . length , g = 1 ; g < f ; g ++ ) if ( null != ( a = arguments [ g ] ) ) for ( b in a ) c = e [ b ] , d = a [ b ] , e !== d && void 0 !== d && ( e [ b ] = d ) ; return e } BI . OB = function ( a ) { this . _constructor ( a ) } , _ . extend ( BI . OB . prototype , { props : { } , init : null , destroyed : null , _constructor : function ( a ) { this . _initProps ( a ) , this . _init ( ) , this . _initRef ( ) } , _defaultConfig : function ( a ) { return { } } , _initProps : function ( b ) { var c = this . props ; BI . isFunction ( this . props ) && ( c = this . props ( b ) ) , this . options = a ( this . _defaultConfig ( b ) , c , b ) } , _init : function ( ) { this . _initListeners ( ) , this . init && this . init ( ) } , _initListeners : function ( ) { var a = this ; null != this . options . listeners && ( _ . each ( this . options . listeners , function ( b ) { ( b . target ? b . target : a ) [ b . once ? "once" : "on" ] ( b . eventName , _ . bind ( b . action , a ) ) } ) , delete this . options . listeners ) } , _initRef : function ( ) { this . options . ref && this . options . ref . call ( this , this ) } , _purgeRef : function ( ) { this . options . ref && this . options . ref . call ( null ) } , _getEvents : function ( ) { return _ . isArray ( this . events ) || ( this . events = [ ] ) , this . events } , on : function ( a , b ) { a = a . toLowerCase ( ) ; var c = this . _getEvents ( ) [ a ] ; _ . isArray ( c ) || ( c = [ ] , this . _getEvents ( ) [ a ] = c ) , c . push ( b ) } , once : function ( a , b ) { var c = function ( ) { b . apply ( this , arguments ) , this . un ( a , c ) } ; this . on ( a , c ) } , un : function ( a , b ) { if ( a = a . toLowerCase ( ) , null == b ) delete this . _getEvents ( ) [ a ] ; else { var c = this . _getEvents ( ) [ a ] ; if ( _ . isArray ( c ) ) { var d = [ ] ; _ . each ( c , function ( a ) { a != b && d . push ( a ) } ) , this . _getEvents ( ) [ a ] = d } } } , purgeListeners : function ( ) { this . events = [ ] } , fireEvent : function ( ) { var a = arguments [ 0 ] . toLowerCase ( ) , b = this . _getEvents ( ) [ a ] ; if ( BI . isArray ( b ) ) if ( BI . isArguments ( arguments [ 1 ] ) ) { for ( var c = 0 ; c < b . length ; c ++ ) if ( b [ c ] . apply ( this , arguments [ 1 ] ) === ! 1 ) return ! 1 } else for ( var d = Array . prototype . slice . call ( arguments , 1 ) , c = 0 ; c < b . length ; c ++ ) if ( b [ c ] . apply ( this , d ) === ! 1 ) return ! 1 ; return ! 0 } , destroy : function ( ) { this . destroyed && this . destroyed ( ) , this . _purgeRef ( ) , this . purgeListeners ( ) } } ) } ( ) , ! function ( ) { BI . Widget = BI . inherit ( BI . OB , { _defaultConfig : function ( ) { return BI . extend ( BI . Widget . superclass . _defaultConfig . apply ( this ) , { root : ! 1 , tagName : "div" , attributes : null , data : null , tag : null , disabled : ! 1 , invisible : ! 1 , invalid : ! 1 , baseCls : "" , extraCls : "" , cls : "" , css : null } ) } , _constructor : function ( ) { } , beforeInit : null , beforeCreate : null , created : null , render : null , beforeMount : null , mounted : null , shouldUpdate : null , update : function ( ) { } , beforeDestroy : null , destroyed : null , _init : function ( ) { BI . Widget . superclass . _init . apply ( this , arguments ) , this . _initRoot ( ) , this . _initElementWidth ( ) , this . _initElementHeight ( ) , this . _initVisual ( ) , this . _initState ( ) , this . _initRender ( ) } , _initRender : function ( ) { this . beforeInit ? ( this . _ _asking = ! 0 , this . beforeInit ( BI . bind ( this . _render , this ) ) , this . _ _asking === ! 0 && ( this . _ _async = ! 0 ) ) : this . _render ( ) } , _render : function ( ) { this . _ _asking = ! 1 , this . beforeCreate && this . beforeCreate ( ) , this . _initElement ( ) , this . _initEffects ( ) , this . created && this . created ( ) } , _initRoot : function ( ) { var a = this . options ; this . widgetName = a . widgetName || BI . uniqueId ( "widget" ) , this . _isRoot = a . root , BI . isWidget ( a . element ) ? ( a . element instanceof BI . Widget ? ( this . _parent = a . element , this . _parent . addWidget ( this . widgetName , this ) ) : this . _isRoot = ! 0 , this . element = this . options . element . element ) : a . element ? ( this . element = BI . Widget . _renderEngine . createElement ( this ) , this . _isRoot = ! 0 ) : this . element = BI . Widget . _renderEngine . createElement ( this ) , this . element . _isWidget = ! 0 , ( a . _baseCls || a . baseCls || a . extraCls || a . cls ) && this . element . addClass ( ( a . _baseCls || "" ) + " " + ( a . baseCls || "" ) + " " + ( a . extraCls || "" ) + " " + ( a . cls || "" ) ) , a . attributes && this . element . attr ( a . attributes ) , a . data && this . element . data ( a . data ) , a . css && this . element . css ( a . css ) , this . _children = { } } , _initElementWidth : function ( ) { var a = this . options ; BI . isWidthOrHeight ( a . width ) && this . element . css ( "width" , a . width ) } , _initElementHeight : function ( ) { var a = this . options ; BI . isWidthOrHeight ( a . height ) && this . element . css ( "height" , a . height ) } , _initVisual : function ( ) { var a = this . options ; a . invisible && this . element . css ( "display" , "none" ) } , _initEffects : function ( ) { var a = this . options ; ( a . disabled || a . invalid ) && ( this . options . disabled && this . setEnable ( ! 1 ) , this . options . invalid && this . setValid ( ! 1 ) ) } , _initState : function ( ) { this . _isMounted = ! 1 } , _initElement : function ( ) { var
return Math . round ( e * ( d - a ) ) } , _safeOffsetToOffset : function ( a , b ) { var c = this . _cellSizeAndPositionManager . getTotalSize ( ) , d = this . getTotalSize ( ) ; if ( c === d ) return b ; var e = this . _getOffsetPercentage ( a , b , d ) ; return Math . round ( e * ( c - a ) ) } } , ! function ( ) { var a = " YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZSZSBSGPYSYZDHMDZBQBZCWDZZYYTZHBTSYYBZGNTNXQYWQSKBPHHLXGYBFMJEBJHHGQTJCYSXSTKZHLYCKGLYSMZXYALMELDCCXGZYRJXSDLTYZCQKCNNJWHJTZZCQLJSTSTBNXBTYXCEQXGKWJYFLZQLYHYXSPSFXLMPBYSXXXYDJCZYLLLSJXFHJXPJBTFFYABYXBHZZBJYZLWLCZGGBTSSMDTJZXPTHYQTGLJSCQFZKJZJQNLZWLSLHDZBWJNCJZYZSQQYCQYRZCJJWYBRTWPYFTWEXCSKDZCTBZHYZZYYJXZCFFZZMJYXXSDZZOTTBZLQWFCKSZSXFYRLNYJMBDTHJXSQQCCSBXYYTSYFBXDZTGBCNSLCYZZPSAZYZZSCJCSHZQYDXLBPJLLMQXTYDZXSQJTZPXLCGLQTZWJBHCTSYJSFXYEJJTLBGXSXJMYJQQPFZASYJNTYDJXKJCDJSZCBARTDCLYJQMWNQNCLLLKBYBZZSYHQQLTWLCCXTXLLZNTYLNEWYZYXCZXXGRKRMTCNDNJTSYYSSDQDGHSDBJGHRWRQLYBGLXHLGTGXBQJDZPYJSJYJCTMRNYMGRZJCZGJMZMGXMPRYXKJNYMSGMZJYMKMFXMLDTGFBHCJHKYLPFMDXLQJJSMTQGZSJLQDLDGJYCALCMZCSDJLLNXDJFFFFJCZFMZFFPFKHKGDPSXKTACJDHHZDDCRRCFQYJKQCCWJDXHWJLYLLZGCFCQDSMLZPBJJPLSBCJGGDCKKDEZSQCCKJGCGKDJTJDLZYCXKLQSCGJCLTFPCQCZGWPJDQYZJJBYJHSJDZWGFSJGZKQCCZLLPSPKJGQJHZZLJPLGJGJJTHJJYJZCZMLZLYQBGJWMLJKXZDZNJQSYZMLJLLJKYWXMKJLHSKJGBMCLYYMKXJQLBMLLKMDXXKWYXYSLMLPSJQQJQXYXFJTJDXMXXLLCXQBSYJBGWYMBGGBCYXPJYGPEPFGDJGBHBNSQJYZJKJKHXQFGQZKFHYGKHDKLLSDJQXPQYKYBNQSXQNSZSWHBSXWHXWBZZXDMNSJBSBKBBZKLYLXGWXDRWYQZMYWSJQLCJXXJXKJEQXSCYETLZHLYYYSDZPAQYZCMTLSHTZCFYZYXYLJSDCJQAGYSLCQLYYYSHMRQQKLDXZSCSSSYDYCJYSFSJBFRSSZQSBXXPXJYSDRCKGJLGDKZJZBDKTCSYQPYHSTCLDJDHMXMCGXYZHJDDTMHLTXZXYLYMOHYJCLTYFBQQXPFBDFHHTKSQHZYYWCNXXCRWHOWGYJLEGWDQCWGFJYCSNTMYTOLBYGWQWESJPWNMLRYDZSZTXYQPZGCWXHNGPYXSHMYQJXZTDPPBFYHZHTJYFDZWKGKZBLDNTSXHQEEGZZYLZMMZYJZGXZXKHKSTXNXXWYLYAPSTHXDWHZYMPXAGKYDXBHNHXKDPJNMYHYLPMGOCSLNZHKXXLPZZLBMLSFBHHGYGYYGGBHSCYAQTYWLXTZQCEZYDQDQMMHTKLLSZHLSJZWFYHQSWSCWLQAZYNYTLSXTHAZNKZZSZZLAXXZWWCTGQQTDDYZTCCHYQZFLXPSLZYGPZSZNGLNDQTBDLXGTCTAJDKYWNSYZLJHHZZCWNYYZYWMHYCHHYXHJKZWSXHZYXLYSKQYSPSLYZWMYPPKBYGLKZHTYXAXQSYSHXASMCHKDSCRSWJPWXSGZJLWWSCHSJHSQNHCSEGNDAQTBAALZZMSSTDQJCJKTSCJAXPLGGXHHGXXZCXPDMMHLDGTYBYSJMXHMRCPXXJZCKZXSHMLQXXTTHXWZFKHCCZDYTCJYXQHLXDHYPJQXYLSYYDZOZJNYXQEZYSQYAYXWYPDGXDDXSPPYZNDLTWRHXYDXZZJHTCXMCZLHPYYYYMHZLLHNXMYLLLMDCPPXHMXDKYCYRDLTXJCHHZZXZLCCLYLNZSHZJZZLNNRLWHYQSNJHXYNTTTKYJPYCHHYEGKCTTWLGQRLGGTGTYGYHPYHYLQYQGCWYQKPYYYTTTTLHYHLLTYTTSPLKYZXGZWGPYDSSZZDQXSKCQNMJJZZBXYQMJRTFFBTKHZKBXLJJKDXJTLBWFZPPTKQTZTGPDGNTPJYFALQMKGXBDCLZFHZCLLLLADPMXDJHLCCLGYHDZFGYDDGCYYFGYDXKSSEBDHYKDKDKHNAXXYBPBYYHXZQGAFFQYJXDMLJCSQZLLPCHBSXGJYNDYBYQSPZWJLZKSDDTACTBXZDYZYPJZQSJNKKTKNJDJGYYPGTLFYQKASDNTCYHBLWDZHBBYDWJRYGKZYHEYYFJMSDTYFZJJHGCXPLXHLDWXXJKYTCYKSSSMTWCTTQZLPBSZDZWZXGZAGYKTYWXLHLSPBCLLOQMMZSSLCMBJCSZZKYDCZJGQQDSMCYTZQQLWZQZXSSFPTTFQMDDZDSHDTDWFHTDYZJYQJQKYPBDJYYXTLJHDRQXXXHAYDHRJLKLYTWHLLRLLRCXYLBWSRSZZSYMKZZHHKYHXKSMDSYDYCJPBZBSQLFCXXXNXKXWYWSDZYQOGGQMMYHCDZTTFJYYBGSTTTYBYKJDHKYXBELHTYPJQNFXFDYKZHQKZBYJTZBXHFDXKDASWTAWAJLDYJSFHBLDNNTNQJTJNCHXFJSRFWHZFMDRYJYJWZPDJKZYJYMPCYZNYNXFBYTFYFWYGDBNZZZDNYTXZEMMQBSQEHXFZMBMFLZZSRXYMJGSXWZJSPRYDJSJGXHJJGLJJYNZZJXHGXKYMLPYYYCXYTWQZSWHWLYRJLPXSLSXMFSWWKLCTNXNYNPSJSZHDZEPTXMYYWXYYSYWLXJQZQXZDCLEEELMCPJPCLWBXSQHFWWTFFJTNQJHJQDXHWLBYZNFJLALKYYJLDXHHYCSTYYWNRJYXYWTRMDRQHWQCMFJDYZMHMYYXJWMYZQZXTLMRSPWWCHAQBXYGZYPXYYRRCLMPYMGKSJSZYSRMYJSNXTPLNBAPPYPYLXYYZKYNLDZYJZCZNNLMZHHARQMPGWQTZMXXMLLHGDZXYHXKYXYCJMFFYYHJFSBSSQLXXNDYCANNMTCJCYPRRNYTYQNYYMBMSXNDLYLYSLJRLXYSXQMLLYZLZJJJKYZZCSFBZXXMSTBJGNXYZHLXNMCWSCYZYFZLXBRNNNYLBNRTGZQYSATSWRYHYJZMZDHZGZDWYBSSCSKXSYHYTXXGCQGXZZSHYXJSCRHMKKBXCZJYJYMKQHZJFNBHMQHYSNJNZYBKNQMCLGQHWLZNZSWXKHLJHYYBQLBFCDSXDLDSPFZPSKJYZWZXZDDXJSMMEGJSCSSMGCLXXKYYYLNYPWWWGYDKZJGGGZGGSYCKNJWNJPCXBJJTQTJWDSSPJXZXNZXUMELPXFSXTLLXCLJXJJLJZXCTPSWXLYDHLYQRWHSYCSQYYBYAYWJJJQFWQCQQCJQGXALDBZZYJGKGXPLTZYFXJLTPADKYQHPMATLCPDCKBMTXYBHKLENXDLEEGQDYMSAWHZMLJTWYGXLYQZLJEEYYBQQFFNLYXRDSCTGJGXYYNKLLYQKCCTLH
a } , a . get = function ( a , b ) { var c = this . _keymap [ a ] ; if ( void 0 !== c ) return c === this . tail ? b ? c : c . value : ( c . newer && ( c === this . head && ( this . head = c . newer ) , c . newer . older = c . older ) , c . older && ( c . older . newer = c . newer ) , c . newer = void 0 , c . older = this . tail , this . tail && ( this . tail . newer = c ) , this . tail = c , b ? c : c . value ) } , a . has = function ( a ) { return null != this . _keymap [ a ] } } ( ) , function ( ) { var a = function ( a ) { return Math . floor ( a / 2 ) } , b = _global . Int32Array || function ( a ) { for ( var b = [ ] , c = a - 1 ; c >= 0 ; -- c ) b [ c ] = 0 ; return b } , c = function ( a ) { for ( var b = 1 ; b < a ; ) b *= 2 ; return b } ; BI . PrefixIntervalTree = function ( a ) { this . _size = a . length , this . _half = c ( this . _size ) , this . _heap = new b ( 2 * this . _half ) ; var d ; for ( d = 0 ; d < this . _size ; ++ d ) this . _heap [ this . _half + d ] = a [ d ] ; for ( d = this . _half - 1 ; d > 0 ; -- d ) this . _heap [ d ] = this . _heap [ 2 * d ] + this . _heap [ 2 * d + 1 ] } , BI . PrefixIntervalTree . prototype = { constructor : BI . PrefixIntervalTree , set : function ( b , c ) { var d = this . _half + b ; for ( this . _heap [ d ] = c , d = a ( d ) ; 0 !== d ; d = a ( d ) ) this . _heap [ d ] = this . _heap [ 2 * d ] + this . _heap [ 2 * d + 1 ] } , get : function ( a ) { var b = this . _half + a ; return this . _heap [ b ] } , getSize : function ( ) { return this . _size } , sumUntil : function ( b ) { if ( 0 === b ) return 0 ; for ( var c = this . _half + b - 1 , d = this . _heap [ c ] ; 1 !== c ; c = a ( c ) ) c % 2 === 1 && ( d += this . _heap [ c - 1 ] ) ; return d } , sumTo : function ( a ) { return this . sumUntil ( a + 1 ) } , sum : function ( a , b ) { return this . sumUntil ( b ) - this . sumUntil ( a ) } , greatestLowerBound : function ( a ) { if ( a < 0 ) return - 1 ; var b = 1 ; if ( this . _heap [ b ] <= a ) return this . _size ; for ( ; b < this . _half ; ) { var c = this . _heap [ 2 * b ] ; a < c ? b = 2 * b : ( b = 2 * b + 1 , a -= c ) } return b - this . _half } , greatestStrictLowerBound : function ( a ) { if ( a <= 0 ) return - 1 ; var b = 1 ; if ( this . _heap [ b ] < a ) return this . _size ; for ( ; b < this . _half ; ) { var c = this . _heap [ 2 * b ] ; a <= c ? b = 2 * b : ( b = 2 * b + 1 , a -= c ) } return b - this . _half } , leastUpperBound : function ( a ) { return this . greatestStrictLowerBound ( a ) + 1 } , leastStrictUpperBound : function ( a ) { return this . greatestLowerBound ( a ) + 1 } } , BI . PrefixIntervalTree . uniform = function ( a , b ) { for ( var c = [ ] , d = a - 1 ; d >= 0 ; -- d ) c [ d ] = b ; return new BI . PrefixIntervalTree ( c ) } , BI . PrefixIntervalTree . empty = function ( a ) { return BI . PrefixIntervalTree . uniform ( a , 0 ) } } ( ) , ! function ( ) { BI . Queue = function ( a ) { this . capacity = a , this . array = [ ] } , BI . Queue . prototype = { constructor : BI . Queue , contains : function ( a ) { return BI . contains ( this . array , a ) } , indexOf : function ( a ) { return BI . contains ( this . array , a ) } , getElementByIndex : function ( a ) { return this . array [ a ] } , push : function ( a ) { this . array . push ( a ) , this . capacity && this . array . length > this . capacity && this . array . shift ( ) } , pop : function ( ) { this . array . pop ( ) } , shift : function ( ) { this . array . shift ( ) } , unshift : function ( a ) { this . array . unshift ( a ) , this . capacity && this . array . length > this . capacity && this . array . pop ( ) } , remove : function ( a ) { BI . remove ( this . array , a ) } , splice : function ( ) { this . array . splice . apply ( this . array , arguments ) } , slice : function ( ) { this . array . slice . apply ( this . array , arguments ) } , size : function ( ) { return this . array . length } , each : function ( a , b ) { var b = b || window , a = a || null ; if ( null != a && "function" == typeof a ) for ( var c = 0 ; c < this . array . length ; c ++ ) { var d = a . call ( b , c , this . array [ c ] , this . array ) ; if ( 0 == d ) break } } , toArray : function ( ) { return this . array } , fromArray : function ( a ) { var b = this ; BI . each ( a , function ( a , c ) { b . push ( c ) } ) } , clear : function ( ) { this . array . length = 0 } } } ( ) , ! function ( ) { var a = function ( a , b , c , d ) { this . height = a , this . width = b , this . x = c , this . y = d , this . _indexMap = { } , this . _indices = [ ] } ; a . prototype = { constructor : a , addCellIndex : function ( a ) { this . _indexMap [ a ] || ( this . _indexMap [ a ] = ! 0 , this . _indices . push ( a ) ) } , getCellIndices : function ( ) { return this . _indices } } ; var b = 100 ; BI . SectionManager = function ( a ) { this . _sectionSize = a || b , this . _cellMetadata = [ ] , this . _sections = { } } , BI . SectionManager . prototype = { constructor : BI . SectionManager , getCellIndices : function ( a , b , c , d ) { var e = { } ; return BI . each ( this . getSections ( a , b , c , d ) , function ( a , b ) { BI . each ( b . getCellIndices ( ) , function ( a , b ) { e [ b ] = b } ) } ) , BI . map ( BI . keys ( e ) , function ( a , b ) { return e [ b ] } ) } , getCellMetadata : function ( a ) { return this . _cellMetadata [ a ] } , getSections : function ( b , c , d , e ) { for ( var f = Math . floor ( d / this . _sectionSize ) , g = Math . floor ( ( d + c - 1 ) / this . _sectionSize ) , h = Math . floor ( e / this . _sectionSize ) , i = Math . floor ( ( e + b - 1 ) / this . _sectionSize ) , j = [ ] , k = f ; k <= g ; k ++ ) for ( var l = h ; l <= i ; l ++ ) { var m = k + "." + l ; this . _sections [ m ] || ( this . _sections [ m ] = new a ( this . _sectionSize , this . _s
_defaultConfig : function ( ) { return BI . extend ( BI . RedMarkBehavior . superclass . _defaultConfig . apply ( this , arguments ) , { } ) } , _init : function ( ) { BI . RedMarkBehavior . superclass . _init . apply ( this , arguments ) } , doBehavior : function ( a ) { var b = Array . prototype . slice . call ( arguments , 1 ) , c = this . options ; BI . each ( a , function ( a , d ) { d instanceof BI . Single ? c . rule ( d . getValue ( ) , d ) ? d . doRedMark && d . doRedMark . apply ( d , b ) : d . doRedMark && d . unRedMark . apply ( d , b ) : d . doBehavior && d . doBehavior . apply ( d , b ) } ) } } ) , BI . Controller = BI . inherit ( BI . OB , { _defaultConfig : function ( ) { return BI . extend ( BI . Controller . superclass . _defaultConfig . apply ( this , arguments ) , { } ) } , _init : function ( ) { BI . Controller . superclass . _init . apply ( this , arguments ) } , destroy : function ( ) { } } ) , BI . Controller . EVENT _CHANGE = "__EVENT_CHANGE__" , BI . BroadcastController = BI . inherit ( BI . Controller , { _defaultConfig : function ( ) { return BI . extend ( BI . BroadcastController . superclass . _defaultConfig . apply ( this , arguments ) , { } ) } , _init : function ( ) { BI . BroadcastController . superclass . _init . apply ( this , arguments ) , this . _broadcasts = { } } , on : function ( a , b ) { var c = this ; return this . _broadcasts [ a ] || ( this . _broadcasts [ a ] = [ ] ) , this . _broadcasts [ a ] . push ( b ) , function ( ) { c . remove ( a , b ) } } , send : function ( a ) { var b = [ ] . slice . call ( arguments , 1 ) ; BI . each ( this . _broadcasts [ a ] , function ( a , c ) { c . apply ( null , b ) } ) } , remove : function ( a , b ) { var c = this ; return b ? ( BI . remove ( this . _broadcasts [ a ] , function ( d ) { return c . _broadcasts [ a ] . indexOf ( b ) === d } ) , this . _broadcasts [ a ] . remove ( b ) , 0 === this . _broadcasts [ a ] . length && delete this . _broadcasts [ a ] ) : delete this . _broadcasts [ a ] , this } } ) , BI . BubblesController = BI . inherit ( BI . Controller , { _defaultConfig : function ( ) { return BI . extend ( BI . BubblesController . superclass . _defaultConfig . apply ( this , arguments ) , { } ) } , _const : { bubbleHeight : 18 } , _init : function ( ) { BI . BubblesController . superclass . _init . apply ( this , arguments ) ; var a = this ; this . bubblesManager = { } , this . storeBubbles = { } , BI . Resizers . add ( "bubbleController" + BI . uniqueId ( ) , function ( ) { BI . each ( a . bubblesManager , function ( b ) { a . remove ( b ) } ) , a . bubblesManager = { } , a . storeBubbles = { } } ) } , _createBubble : function ( a , b , c , d ) { return BI . createWidget ( { type : "bi.bubble" , text : b , level : c , height : d || 18 , direction : a } ) } , _getOffsetLeft : function ( a , b , c ) { var d = 0 ; return "center" === c ? ( d = b . element . offset ( ) . left + ( b . element . bounds ( ) . width - this . get ( a ) . element . bounds ( ) . width ) / 2 , d < 0 && ( d = 0 ) , d ) : "right" === c ? ( d = b . element . offset ( ) . left + b . element . bounds ( ) . width - this . get ( a ) . element . bounds ( ) . width , d < 0 && ( d = 0 ) , d ) : b . element . offset ( ) . left } , _getOffsetTop : function ( a , b , c ) { var d = 0 ; return "center" === c ? ( d = b . element . offset ( ) . top + ( b . element . bounds ( ) . height - this . get ( a ) . element . bounds ( ) . height ) / 2 , d < 0 && ( d = 0 ) , d ) : "right" === c ? ( d = b . element . offset ( ) . top + b . element . bounds ( ) . height - this . get ( a ) . element . bounds ( ) . height , d < 0 && ( d = 0 ) , d ) : b . element . offset ( ) . top } , _getLeftPosition : function ( a , b , c ) { var d = BI . DOM . getLeftPosition ( b , this . get ( a ) ) ; return d . top = this . _getOffsetTop ( a , b , c ) , d } , _getBottomPosition : function ( a , b , c ) { var d = BI . DOM . getBottomPosition ( b , this . get ( a ) ) ; return d . left = this . _getOffsetLeft ( a , b , c ) , d } , _getTopPosition : function ( a , b , c ) { var d = BI . DOM . getTopPosition ( b , this . get ( a ) ) ; return d . left = this . _getOffsetLeft ( a , b , c ) , d } , _getRightPosition : function ( a , b , c ) { var d = BI . DOM . getRightPosition ( b , this . get ( a ) ) ; return d . top = this . _getOffsetTop ( a , b , c ) , d } , show : function ( a , b , c , d ) { d || ( d = { } ) ; var e = d . container || c , f = d . offsetStyle || { } , g = d . level || "error" , h = d . adjustYOffset || 0 , i = d . adjustXOffset || 0 ; this . storeBubbles [ a ] || ( this . storeBubbles [ a ] = { } ) , this . storeBubbles [ a ] . top || ( this . storeBubbles [ a ] . top = this . _createBubble ( "top" , b , g ) ) , BI . createWidget ( { type : "bi.absolute" , element : e , items : [ { el : this . storeBubbles [ a ] . top } ] } ) , this . set ( a , this . storeBubbles [ a ] . top ) ; var j = this . _getTopPosition ( a , c , f ) ; if ( this . get ( a ) . element . css ( { left : j . left + i , top : j . top - h } ) , this . get ( a ) . invisible ( ) , ! BI . DOM . isTopSpaceEnough ( c , this . get ( a ) , h ) ) { this . storeBubbles [ a ] . left || ( this . storeBubbles [ a ] . left = this . _createBubble ( "left" , b , g , 30 ) ) , BI . createWidget ( { type : "bi.absolute" , element : e , items : [ { el : this . storeBubbles [ a ] . left } ] } ) , this . set ( a , this . storeBubbles [ a ] . left ) ; var j = this . _getLeftPosition ( a , c , f ) ; if ( this . get ( a ) . element . css ( { left : j . left - i , top : j . top - h } ) , this . get ( a ) . invisible ( ) , ! BI . DOM . isLeftSpaceEnough ( c , this . get ( a
} } ) , BI . TableLayoutLogic = BI . inherit ( BI . Logic , { _defaultConfig : function ( ) { return BI . extend ( BI . TableLayoutLogic . superclass . _defaultConfig . apply ( this , arguments ) , { dynamic : ! 1 , scrollable : null , scrolly : ! 1 , scrollx : ! 1 , columns : 0 , rows : 0 , columnSize : [ ] , rowSize : [ ] , hgap : 0 , vgap : 0 , items : [ ] } ) } , createLogic : function ( ) { var a , b = this . options ; return a = b . dynamic ? "bi.table" : "bi.window" , { type : a , scrollable : b . scrollable , scrolly : b . scrolly , scrollx : b . scrollx , columns : b . columns , rows : b . rows , columnSize : b . columnSize , rowSize : b . rowSize , hgap : b . hgap , vgap : b . vgap , items : b . items } } , _init : function ( ) { BI . TableLayoutLogic . superclass . _init . apply ( this , arguments ) } } ) , BI . HorizontalFillLayoutLogic = BI . inherit ( BI . Logic , { _defaultConfig : function ( ) { return BI . extend ( BI . HorizontalFillLayoutLogic . superclass . _defaultConfig . apply ( this , arguments ) , { dynamic : ! 1 , scrollable : null , scrolly : ! 1 , scrollx : ! 1 , items : [ ] , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } ) } , createLogic : function ( ) { var a , b = this . options , c = [ ] ; return BI . each ( b . items , function ( a , b ) { c . push ( b . width || 0 ) } ) , a = b . dynamic ? "bi.horizontal_adapt" : "bi.htape" , { type : a , columnSize : c , scrollable : b . scrollable , scrolly : b . scrolly , scrollx : b . scrollx , hgap : b . hgap , vgap : b . vgap , lgap : b . lgap , rgap : b . rgap , tgap : b . tgap , bgap : b . bgap , items : b . items } } , _init : function ( ) { BI . HorizontalFillLayoutLogic . superclass . _init . apply ( this , arguments ) } } ) , BI . prepares . push ( function ( ) { var a , b = function ( ) { return null == a && ( a = ! ( ! BI . isSupportCss3 || ! BI . isSupportCss3 ( "flex" ) ) ) , a } ; BI . Plugin . registerWidget ( "bi.horizontal" , function ( a ) { var c = BI . isIE ( ) , d = b ( ) , e = c && BI . getIEVersion ( ) < 8 ; return a . verticalAlign === BI . VerticalAlign . Middle && a . horizontalAlign === BI . HorizontalAlign . Center ? e ? a : BI . extend ( a , { type : "bi.table_adapt" } ) : a . verticalAlign === BI . VerticalAlign . Middle && a . horizontalAlign === BI . HorizontalAlign . Left ? e ? a : BI . extend ( a , { type : "bi.table_adapt" } ) : a . verticalAlign === BI . VerticalAlign . Top && a . horizontalAlign === BI . HorizontalAlign . Center ? e ? a : BI . extend ( a , { type : "bi.table_adapt" } ) : c ? a : d ? BI . extend ( a , { type : "bi.flex_horizontal" } ) : BI . extend ( a , { type : "bi.table_adapt" } ) } ) , BI . Plugin . registerWidget ( "bi.center_adapt" , function ( a ) { var c = BI . isIE ( ) , d = b ( ) , e = a . items && a . items . length <= 1 ; return ! c && d && e ? a . scrollable === ! 0 || a . scrollx === ! 0 || a . scrolly === ! 0 ? BI . extend ( a , { type : "bi.flex_scrollable_center_adapt" } ) : BI . extend ( a , { type : "bi.flex_center_adapt" } ) : e ? BI . extend ( a , { type : "bi.inline_center_adapt" } ) : a } ) , BI . Plugin . registerWidget ( "bi.vertical_adapt" , function ( a ) { var c = BI . isIE ( ) , d = b ( ) ; return ! c && d ? a . scrollable === ! 0 || a . scrollx === ! 0 || a . scrolly === ! 0 ? BI . extend ( { } , a , { type : "bi.flex_scrollable_vertical_center_adapt" } ) : BI . extend ( a , { type : "bi.flex_vertical_center_adapt" } ) : BI . extend ( a , { type : "bi.inline_vertical_adapt" } ) } ) , BI . Plugin . registerWidget ( "bi.horizontal_adapt" , function ( a ) { return a . items && a . items . length <= 1 ? BI . extend ( a , { type : "bi.horizontal_auto" } ) : a } ) , BI . Plugin . registerWidget ( "bi.float_center_adapt" , function ( a ) { return ! BI . isIE ( ) && b ( ) ? a . scrollable === ! 0 || a . scrollx === ! 0 || a . scrolly === ! 0 ? BI . extend ( { } , a , { type : "bi.flex_scrollable_center_adapt" } ) : BI . extend ( a , { type : "bi.flex_center_adapt" } ) : BI . extend ( a , { type : "bi.inline_center_adapt" } ) } ) , BI . Plugin . registerWidget ( "bi.flex_horizontal" , function ( a ) { if ( a . scrollable === ! 0 || a . scrolly === ! 0 ) return BI . extend ( { } , a , { type : "bi.flex_scrollable_horizontal" } ) } ) , BI . Plugin . registerWidget ( "bi.flex_vertical" , function ( a ) { if ( a . scrollable === ! 0 || a . scrollx === ! 0 ) return BI . extend ( { } , a , { type : "bi.flex_scrollable_vertical" } ) } ) , BI . Plugin . registerWidget ( "bi.flex_horizontal_adapt" , function ( a ) { if ( a . scrollable === ! 0 || a . scrollx === ! 0 ) return BI . extend ( { } , a , { type : "bi.flex_scrollable_horizontal_adapt" } ) } ) , BI . Plugin . registerWidget ( "bi.flex_vertical_adapt" , function ( a ) { if ( a . scrollable === ! 0 || a . scrolly === ! 0 ) return BI . extend ( { } , a , { type : "bi.flex_scrollable_vertical_adapt" } ) } ) , BI . Plugin . registerWidget ( "bi.flex_horizontal_center_adapt" , function ( a ) { if ( a . scrollable === ! 0 || a . scrollx === ! 0 ) return BI . extend ( { } , a , { type : "bi.flex_scrollable_horizontal_adapt" } ) } ) , BI . Plugin . registerWidget ( "bi.flex_vertical_center_adapt" , function ( a ) { if ( a . scrollable === ! 0 || a . scrolly === ! 0 ) return BI . extend ( { } , a , { type : "bi.flex_scrollable_vertical_adapt" } ) } ) , BI . Plugin . registerWidget ( "bi.flex_center_adapt" ,
c . overflow && ( n . overflow = "hidden" , ia . support . shrinkWrapBlocks || m . always ( function ( ) { n . overflow = c . overflow [ 0 ] , n . overflowX = c . overflow [ 1 ] , n . overflowY = c . overflow [ 2 ] } ) ) ; for ( e in b ) if ( g = b [ e ] , ac . exec ( g ) ) { if ( delete b [ e ] , i = i || "toggle" === g , g === ( q ? "hide" : "show" ) ) continue ; p . push ( e ) } if ( f = p . length ) { h = ia . _data ( a , "fxshow" ) || ia . _data ( a , "fxshow" , { } ) , "hidden" in h && ( q = h . hidden ) , i && ( h . hidden = ! q ) , q ? ia ( a ) . show ( ) : m . done ( function ( ) { ia ( a ) . hide ( ) } ) , m . done ( function ( ) { var b ; ia . _removeData ( a , "fxshow" ) ; for ( b in o ) ia . style ( a , b , o [ b ] ) } ) ; for ( e = 0 ; e < f ; e ++ ) d = p [ e ] , j = m . createTween ( d , q ? h [ d ] : 0 ) , o [ d ] = h [ d ] || ia . style ( a , d ) , d in h || ( h [ d ] = j . start , q && ( j . end = j . start , j . start = "width" === d || "height" === d ? 1 : 0 ) ) } } function Q ( a , b , c , d , e ) { return new Q . prototype . init ( a , b , c , d , e ) } function R ( a , b ) { var c , d = { height : a } , e = 0 ; for ( b = b ? 1 : 0 ; e < 4 ; e += 2 - b ) c = xb [ e ] , d [ "margin" + c ] = d [ "padding" + c ] = a ; return b && ( d . opacity = d . width = a ) , d } function S ( a ) { return ia . isWindow ( a ) ? a : 9 === a . nodeType && ( a . defaultView || a . parentWindow ) } var T , U , V = typeof b , W = a . document , X = a . location , Y = a . jQuery , Z = a . $ , $ = { } , _ = [ ] , aa = "1.12.4" , ba = _ . concat , ca = _ . push , da = _ . slice , ea = _ . indexOf , fa = $ . toString , ga = $ . hasOwnProperty , ha = aa . trim , ia = function ( a , b ) { return new ia . fn . init ( a , b , U ) } , ja = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ . source , ka = /\S+/g , la = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g , ma = /^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/ , na = /^<(\w+)\s*\/?>(?:<\/\1>|)$/ , oa = /^[\],:{}\s]*$/ , pa = /(?:^|:|,)(?:\s*\[)+/g , qa = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g , ra = /"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g , sa = /^-ms-/ , ta = /-([\da-z])/gi , ua = function ( a , b ) { return b . toUpperCase ( ) } , va = function ( a ) { ( W . addEventListener || "load" === a . type || "complete" === W . readyState ) && ( wa ( ) , ia . ready ( ) ) } , wa = function ( ) { W . addEventListener ? ( W . removeEventListener ( "DOMContentLoaded" , va , ! 1 ) , a . removeEventListener ( "load" , va , ! 1 ) ) : ( W . detachEvent ( "onreadystatechange" , va ) , a . detachEvent ( "onload" , va ) ) } ; ia . fn = ia . prototype = { jquery : aa , constructor : ia , init : function ( a , c , d ) { var e , f ; if ( ! a ) return this ; if ( "string" == typeof a ) { if ( e = "<" === a . charAt ( 0 ) && ">" === a . charAt ( a . length - 1 ) && a . length >= 3 ? [ null , a , null ] : ma . exec ( a ) , ! e || ! e [ 1 ] && c ) return ! c || c . jquery ? ( c || d ) . find ( a ) : this . constructor ( c ) . find ( a ) ; if ( e [ 1 ] ) { if ( c = c instanceof ia ? c [ 0 ] : c , ia . merge ( this , ia . parseHTML ( e [ 1 ] , c && c . nodeType ? c . ownerDocument || c : W , ! 0 ) ) , na . test ( e [ 1 ] ) && ia . isPlainObject ( c ) ) for ( e in c ) ia . isFunction ( this [ e ] ) ? this [ e ] ( c [ e ] ) : this . attr ( e , c [ e ] ) ; return this } if ( f = W . getElementById ( e [ 2 ] ) , f && f . parentNode ) { if ( f . id !== e [ 2 ] ) return d . find ( a ) ; this . length = 1 , this [ 0 ] = f } return this . context = W , this . selector = a , this } return a . nodeType ? ( this . context = this [ 0 ] = a , this . length = 1 , this ) : ia . isFunction ( a ) ? d . ready ( a ) : ( a . selector !== b && ( this . selector = a . selector , this . context = a . context ) , ia . makeArray ( a , this ) ) } , selector : "" , length : 0 , size : function ( ) { return this . length } , toArray : function ( ) { return da . call ( this ) } , get : function ( a ) { return null == a ? this . toArray ( ) : a < 0 ? this [ this . length + a ] : this [ a ] } , pushStack : function ( a ) { var b = ia . merge ( this . constructor ( ) , a ) ; return b . prevObject = this , b . context = this . context , b } , each : function ( a , b ) { return ia . each ( this , a , b ) } , ready : function ( a ) { return ia . ready . promise ( ) . done ( a ) , this } , slice : function ( ) { return this . pushStack ( da . apply ( this , arguments ) ) } , first : function ( ) { return this . eq ( 0 ) } , last : function ( ) { return this . eq ( - 1 ) } , eq : function ( a ) { var b = this . length , c = + a + ( a < 0 ? b : 0 ) ; return this . pushStack ( c >= 0 && c < b ? [ this [ c ] ] : [ ] ) } , map : function ( a ) { return this . pushStack ( ia . map ( this , function ( b , c ) { return a . call ( b , c , b ) } ) ) } , end : function ( ) { return this . prevObject || this . constructor ( null ) } , push : ca , sort : [ ] . sort , splice : [ ] . splice } , ia . fn . init . prototype = ia . fn , ia . extend = ia . fn . extend = function ( ) { var a , c , d , e , f , g , h = arguments [ 0 ] || { } , i = 1 , j = arguments . length , k = ! 1 ; for ( "boolean" == typeof h && ( k = h , h = arguments [ 1 ] || { } , i = 2 ) , "object" == typeof h || ia . isFunction ( h ) || ( h = { } ) , j === i && ( h = this , -- i ) ; i < j ; i ++ ) if ( null != ( f = arguments [ i ] ) ) for ( e in f ) a = h [ e ] , d = f [ e ] , h !== d && ( k && d && ( ia . isPlainObject ( d ) || ( c = ia . isArray ( d ) ) ) ? ( c ? ( c = ! 1 , g = a && ia . isArray ( a ) ? a : [ ] ) : g = a && ia . isPlainObject ( a ) ? a : { } , h [ e ] = ia . extend ( k , g , d ) ) : d !== b && ( h [ e ] = d ) ) ; return h } , ia . extend ( { noConflict : function ( b ) { return a . $ === ia && ( a . $ = Z ) , b && a . jQuery === ia && ( a . jQuery = Y ) , ia } , isReady : ! 1 , readyWait : 1 , holdReady : function ( a
setup : function ( ) { return ! ia . nodeName ( this , "form" ) && void ia . event . add ( this , "click._submit keypress._submit" , function ( a ) { var c = a . target , d = ia . nodeName ( c , "input" ) || ia . nodeName ( c , "button" ) ? c . form : b ; d && ! ia . _data ( d , "submitBubbles" ) && ( ia . event . add ( d , "submit._submit" , function ( a ) { a . _submit _bubble = ! 0 } ) , ia . _data ( d , "submitBubbles" , ! 0 ) ) } ) } , postDispatch : function ( a ) { a . _submit _bubble && ( delete a . _submit _bubble , this . parentNode && ! a . isTrigger && ia . event . simulate ( "submit" , this . parentNode , a , ! 0 ) ) } , teardown : function ( ) { return ! ia . nodeName ( this , "form" ) && void ia . event . remove ( this , "._submit" ) } } ) , ia . support . changeBubbles || ( ia . event . special . change = { setup : function ( ) { return Ka . test ( this . nodeName ) ? ( "checkbox" !== this . type && "radio" !== this . type || ( ia . event . add ( this , "propertychange._change" , function ( a ) { "checked" === a . originalEvent . propertyName && ( this . _just _changed = ! 0 ) } ) , ia . event . add ( this , "click._change" , function ( a ) { this . _just _changed && ! a . isTrigger && ( this . _just _changed = ! 1 ) , ia . event . simulate ( "change" , this , a , ! 0 ) } ) ) , ! 1 ) : void ia . event . add ( this , "beforeactivate._change" , function ( a ) { var b = a . target ; Ka . test ( b . nodeName ) && ! ia . _data ( b , "changeBubbles" ) && ( ia . event . add ( b , "change._change" , function ( a ) { ! this . parentNode || a . isSimulated || a . isTrigger || ia . event . simulate ( "change" , this . parentNode , a , ! 0 ) } ) , ia . _data ( b , "changeBubbles" , ! 0 ) ) } ) } , handle : function ( a ) { var b = a . target ; if ( this !== b || a . isSimulated || a . isTrigger || "radio" !== b . type && "checkbox" !== b . type ) return a . handleObj . handler . apply ( this , arguments ) } , teardown : function ( ) { return ia . event . remove ( this , "._change" ) , ! Ka . test ( this . nodeName ) } } ) , ia . support . focusinBubbles || ia . each ( { focus : "focusin" , blur : "focusout" } , function ( a , b ) { var c = 0 , d = function ( a ) { ia . event . simulate ( b , a . target , ia . event . fix ( a ) , ! 0 ) } ; ia . event . special [ b ] = { setup : function ( ) { 0 === c ++ && W . addEventListener ( a , d , ! 0 ) } , teardown : function ( ) { 0 === -- c && W . removeEventListener ( a , d , ! 0 ) } } } ) , ia . fn . extend ( { on : function ( a , c , d , e , f ) { var g , h ; if ( "object" == typeof a ) { "string" != typeof c && ( d = d || c , c = b ) ; for ( g in a ) this . on ( g , c , d , a [ g ] , f ) ; return this } if ( null == d && null == e ? ( e = c , d = c = b ) : null == e && ( "string" == typeof c ? ( e = d , d = b ) : ( e = d , d = c , c = b ) ) , e === ! 1 ) e = j ; else if ( ! e ) return this ; return 1 === f && ( h = e , e = function ( a ) { return ia ( ) . off ( a ) , h . apply ( this , arguments ) } , e . guid = h . guid || ( h . guid = ia . guid ++ ) ) , this . each ( function ( ) { ia . event . add ( this , a , e , d , c ) } ) } , one : function ( a , b , c , d ) { return this . on ( a , b , c , d , 1 ) } , off : function ( a , c , d ) { var e , f ; if ( a && a . preventDefault && a . handleObj ) return e = a . handleObj , ia ( a . delegateTarget ) . off ( e . namespace ? e . origType + "." + e . namespace : e . origType , e . selector , e . handler ) , this ; if ( "object" == typeof a ) { for ( f in a ) this . off ( f , c , a [ f ] ) ; return this } return c !== ! 1 && "function" != typeof c || ( d = c , c = b ) , d === ! 1 && ( d = j ) , this . each ( function ( ) { ia . event . remove ( this , a , d , c ) } ) } , bind : function ( a , b , c ) { return this . on ( a , null , b , c ) } , unbind : function ( a , b ) { return this . off ( a , null , b ) } , delegate : function ( a , b , c , d ) { return this . on ( b , a , c , d ) } , undelegate : function ( a , b , c ) { return 1 === arguments . length ? this . off ( a , "**" ) : this . off ( b , a || "**" , c ) } , trigger : function ( a , b ) { return this . each ( function ( ) { ia . event . trigger ( a , b , this ) } ) } , triggerHandler : function ( a , b ) { var c = this [ 0 ] ; if ( c ) return ia . event . trigger ( a , b , c , ! 0 ) } } ) , function ( a , b ) { function c ( a ) { return oa . test ( a + "" ) } function d ( ) { var a , b = [ ] ; return a = function ( c , d ) { return b . push ( c += " " ) > y . cacheLength && delete a [ b . shift ( ) ] , a [ c ] = d } } function e ( a ) { return a [ N ] = ! 0 , a } function f ( a ) { var b = F . createElement ( "div" ) ; try { return a ( b ) } catch ( c ) { return ! 1 } finally { b = null } } function g ( a , b , c , d ) { var e , f , g , h , i , j , k , n , o , p ; if ( ( b ? b . ownerDocument || b : O ) !== F && E ( b ) , b = b || F , c = c || [ ] , ! a || "string" != typeof a ) return c ; if ( 1 !== ( h = b . nodeType ) && 9 !== h ) return [ ] ; if ( ! H && ! d ) { if ( e = pa . exec ( a ) ) if ( g = e [ 1 ] ) { if ( 9 === h ) { if ( f = b . getElementById ( g ) , ! f || ! f . parentNode ) return c ; if ( f . id === g ) return c . push ( f ) , c } else if ( b . ownerDocument && ( f = b . ownerDocument . getElementById ( g ) ) && L ( b , f ) && f . id === g ) return c . push ( f ) , c } else { if ( e [ 2 ] ) return Z . apply ( c , $ . call ( b . getElementsByTagName ( a ) , 0 ) ) , c ; if ( ( g = e [ 3 ] ) && P . getByClassName && b . getElementsByClassName ) return Z . apply ( c , $ . call ( b . getElementsByClassName ( g ) , 0 ) ) , c } if ( P . qsa && ! I . test ( a ) ) { if ( k = ! 0 , n = N , o = b , p = 9 === h && a , 1 === h && "object" !== b . nodeName . toLowerCase ( ) ) { for ( j = l ( a ) , ( k = b . getAttribute ( "id" ) ) ? n = k . replace ( s
g = "number" ) , ! ( null == d || "number" === g && isNaN ( d ) || ( "number" !== g || ia . cssNumber [ i ] || ( d += "px" ) , ia . support . clearCloneStyle || "" !== d || 0 !== c . indexOf ( "background" ) || ( j [ c ] = "inherit" ) , h && "set" in h && ( d = h . set ( a , d , e ) ) === b ) ) ) try { j [ c ] = d } catch ( k ) { } } } , css : function ( a , c , d , e ) { var f , g , h , i = ia . camelCase ( c ) ; return c = ia . cssProps [ i ] || ( ia . cssProps [ i ] = v ( a . style , i ) ) , h = ia . cssHooks [ c ] || ia . cssHooks [ i ] , h && "get" in h && ( g = h . get ( a , ! 0 , d ) ) , g === b && ( g = lb ( a , c , e ) ) , "normal" === g && c in wb && ( g = wb [ c ] ) , "" === d || d ? ( f = parseFloat ( g ) , d === ! 0 || ia . isNumeric ( f ) ? f || 0 : g ) : g } , swap : function ( a , b , c , d ) { var e , f , g = { } ; for ( f in b ) g [ f ] = a . style [ f ] , a . style [ f ] = b [ f ] ; e = c . apply ( a , d || [ ] ) ; for ( f in b ) a . style [ f ] = g [ f ] ; return e } } ) , a . getComputedStyle ? ( kb = function ( b ) { return a . getComputedStyle ( b , null ) } , lb = function ( a , c , d ) { var e , f , g , h = d || kb ( a ) , i = h ? h . getPropertyValue ( c ) || h [ c ] : b , j = a . style ; return h && ( "" !== i || ia . contains ( a . ownerDocument , a ) || ( i = ia . style ( a , c ) ) , sb . test ( i ) && qb . test ( c ) && ( e = j . width , f = j . minWidth , g = j . maxWidth , j . minWidth = j . maxWidth = j . width = i , i = h . width , j . width = e , j . minWidth = f , j . maxWidth = g ) ) , i } ) : W . documentElement . currentStyle && ( kb = function ( a ) { return a . currentStyle } , lb = function ( a , c , d ) { var e , f , g , h = d || kb ( a ) , i = h ? h [ c ] : b , j = a . style ; return null == i && j && j [ c ] && ( i = j [ c ] ) , sb . test ( i ) && ! ob . test ( c ) && ( e = j . left , f = a . runtimeStyle , g = f && f . left , g && ( f . left = a . currentStyle . left ) , j . left = "fontSize" === c ? "1em" : i , i = j . pixelLeft + "px" , j . left = e , g && ( f . left = g ) ) , "" === i ? "auto" : i } ) , ia . each ( [ "height" , "width" ] , function ( a , b ) { ia . cssHooks [ b ] = { get : function ( a , c , d ) { if ( c ) return 0 === a . offsetWidth && pb . test ( ia . css ( a , "display" ) ) ? ia . swap ( a , vb , function ( ) { return A ( a , b , d ) } ) : A ( a , b , d ) } , set : function ( a , c , d ) { var e = d && kb ( a ) ; return y ( a , c , d ? z ( a , b , d , ia . support . boxSizing && "border-box" === ia . css ( a , "boxSizing" , ! 1 , e ) , e ) : 0 ) } } } ) , ia . support . opacity || ( ia . cssHooks . opacity = { get : function ( a , b ) { return nb . test ( ( b && a . currentStyle ? a . currentStyle . filter : a . style . filter ) || "" ) ? . 01 * parseFloat ( RegExp . $1 ) + "" : b ? "1" : "" } , set : function ( a , b ) { var c = a . style , d = a . currentStyle , e = ia . isNumeric ( b ) ? "alpha(opacity=" + 100 * b + ")" : "" , f = d && d . filter || c . filter || "" ; c . zoom = 1 , ( b >= 1 || "" === b ) && "" === ia . trim ( f . replace ( mb , "" ) ) && c . removeAttribute && ( c . removeAttribute ( "filter" ) , "" === b || d && ! d . filter ) || ( c . filter = mb . test ( f ) ? f . replace ( mb , e ) : f + " " + e ) } } ) , ia ( function ( ) { ia . support . reliableMarginRight || ( ia . cssHooks . marginRight = { get : function ( a , b ) { if ( b ) return ia . swap ( a , { display : "inline-block" } , lb , [ a , "marginRight" ] ) } } ) , ! ia . support . pixelPosition && ia . fn . position && ia . each ( [ "top" , "left" ] , function ( a , b ) { ia . cssHooks [ b ] = { get : function ( a , c ) { if ( c ) return c = lb ( a , b ) , sb . test ( c ) ? ia ( a ) . position ( ) [ b ] + "px" : c } } } ) } ) , ia . expr && ia . expr . filters && ( ia . expr . filters . hidden = function ( a ) { return a . offsetWidth <= 0 && a . offsetHeight <= 0 || ! ia . support . reliableHiddenOffsets && "none" === ( a . style && a . style . display || ia . css ( a , "display" ) ) } , ia . expr . filters . visible = function ( a ) { return ! ia . expr . filters . hidden ( a ) } ) , ia . each ( { margin : "" , padding : "" , border : "Width" } , function ( a , b ) { ia . cssHooks [ a + b ] = { expand : function ( c ) { for ( var d = 0 , e = { } , f = "string" == typeof c ? c . split ( " " ) : [ c ] ; d < 4 ; d ++ ) e [ a + xb [ d ] + b ] = f [ d ] || f [ d - 2 ] || f [ 0 ] ; return e } } , qb . test ( a ) || ( ia . cssHooks [ a + b ] . set = y ) } ) ; var zb = /%20/g , Ab = /\[\]$/ , Bb = /\r?\n/g , Cb = /^(?:submit|button|image|reset|file)$/i , Db = /^(?:input|select|textarea|keygen)/i ; ia . fn . extend ( { serialize : function ( ) { return ia . param ( this . serializeArray ( ) ) } , serializeArray : function ( ) { return this . map ( function ( ) { var a = ia . prop ( this , "elements" ) ; return a ? ia . makeArray ( a ) : this } ) . filter ( function ( ) { var a = this . type ; return this . name && ! ia ( this ) . is ( ":disabled" ) && Db . test ( this . nodeName ) && ! Cb . test ( a ) && ( this . checked || ! bb . test ( a ) ) } ) . map ( function ( a , b ) { var c = ia ( this ) . val ( ) ; return null == c ? null : ia . isArray ( c ) ? ia . map ( c , function ( a ) { return { name : b . name , value : a . replace ( Bb , "\r\n" ) } } ) : { name : b . name , value : c . replace ( Bb , "\r\n" ) } } ) . get ( ) } } ) , ia . param = function ( a , c ) { var d , e = [ ] , f = function ( a , b ) { b = ia . isFunction ( b ) ? b ( ) : null == b ? "" : b , e [ e . length ] = encodeURIComponent ( a ) + "=" + encodeURIComponent ( b ) } ; if ( c === b && ( c = ia . ajaxSettings && ia . ajaxSettings . traditional ) , ia . isArray ( a ) || a . jquery && ! ia . isPlainObject ( a ) ) ia . each ( a , function ( ) { f ( this . name , this . value ) } ) ; else for ( d in a ) D ( d , a [ d ] , c , f ) ; return e . join ( "&" ) . replace ( zb , "+" ) } , ia . each ( " blur focus focusin focusout load resize
items : [ ] , lgap : 0 , rgap : 0 , hgap : 0 } ) } , render : function ( ) { var a = this . options , b = this ; return BI . LeftVerticalAdaptLayout . superclass . render . apply ( this , arguments ) , { type : "bi.left" , ref : function ( a ) { b . layout = a } , items : [ { el : { type : "bi.vertical_adapt" , height : "100%" , items : a . items , lgap : a . lgap , hgap : a . hgap , rgap : a . rgap } } ] } } , resize : function ( ) { } , addItem : function ( ) { throw new Error ( "cannot be added" ) } , populate : function ( a ) { this . layout . populate . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.left_vertical_adapt" , BI . LeftVerticalAdaptLayout ) , BI . RightVerticalAdaptLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . RightVerticalAdaptLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-right-vertical-adapt-layout" , items : [ ] , lgap : 0 , rgap : 0 , hgap : 0 } ) } , render : function ( ) { var a = this . options , b = this ; return BI . RightVerticalAdaptLayout . superclass . render . apply ( this , arguments ) , { type : "bi.right" , ref : function ( a ) { b . layout = a } , items : [ { el : { type : "bi.vertical_adapt" , height : "100%" , textAlign : "right" , items : a . items , lgap : a . lgap , hgap : a . hgap , rgap : a . rgap } } ] } } , resize : function ( ) { } , addItem : function ( ) { throw new Error ( "cannot be added" ) } , populate : function ( a ) { this . layout . populate . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.right_vertical_adapt" , BI . RightVerticalAdaptLayout ) , BI . TableAdaptLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . TableAdaptLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-table-center-adapt-layout" , columnSize : [ ] , verticalAlign : BI . VerticalAlign . Top , horizontalAlign : BI . HorizontalAlign . Left , scrollx : ! 0 , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { var a = this . options ; BI . TableAdaptLayout . superclass . render . apply ( this , arguments ) , this . $table = BI . Widget . _renderEngine . createElement ( "<div>" ) . css ( { position : "relative" , display : "table" , height : a . verticalAlign === BI . VerticalAlign . Middle ? "100%" : "auto" , width : a . horizontalAlign === BI . HorizontalAlign . Center ? "100%" : "auto" , "white-space" : "nowrap" } ) , this . populate ( this . options . items ) } , _addElement : function ( a , b ) { var c , d = this . options , e = d . columnSize [ a ] <= 1 ? 100 * d . columnSize [ a ] + "%" : d . columnSize [ a ] ; if ( this . hasWidget ( this . _getChildName ( a ) ) ) c = this . getWidgetByName ( this . _getChildName ( a ) ) , c . element . width ( e ) ; else { var f = BI . createWidget ( b ) ; f . element . css ( { position : "relative" , top : "0" , left : "0" , margin : "0px auto" } ) , c = BI . createWidget ( { type : "bi.default" , width : e , items : [ f ] } ) , this . addWidget ( this . _getChildName ( a ) , c ) } return c . element . css ( { "max-width" : d . columnSize [ a ] <= 1 ? e : e + "px" } ) , 0 === a && c . element . addClass ( "first-element" ) , c . element . css ( { position : "relative" , display : "table-cell" , "vertical-align" : d . verticalAlign , margin : "0" , padding : "0" , height : "100%" } ) , d . vgap + d . tgap + ( b . tgap || 0 ) + ( b . vgap || 0 ) !== 0 && f . element . css ( { "margin-top" : d . vgap + d . tgap + ( b . tgap || 0 ) + ( b . vgap || 0 ) + "px" } ) , d . hgap + d . lgap + ( b . lgap || 0 ) + ( b . hgap || 0 ) !== 0 && f . element . css ( { "margin-left" : ( 0 === a ? d . hgap : 0 ) + d . lgap + ( b . lgap || 0 ) + ( b . hgap || 0 ) + "px" } ) , d . hgap + d . rgap + ( b . rgap || 0 ) + ( b . hgap || 0 ) !== 0 && f . element . css ( { "margin-right" : d . hgap + d . rgap + ( b . rgap || 0 ) + ( b . hgap || 0 ) + "px" } ) , d . vgap + d . bgap + ( b . bgap || 0 ) + ( b . vgap || 0 ) !== 0 && f . element . css ( { "margin-bottom" : d . vgap + d . bgap + ( b . bgap || 0 ) + ( b . vgap || 0 ) + "px" } ) , c } , appendFragment : function ( a ) { this . $table . append ( a ) , this . element . append ( this . $table ) } , resize : function ( ) { } , populate : function ( a ) { BI . TableAdaptLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.table_adapt" , BI . TableAdaptLayout ) , BI . VerticalAdaptLayout = BI . inherit ( BI . Layout , { props : { baseCls : "bi-vertical-adapt-layout" , horizontalAlign : BI . HorizontalAlign . Left , columnSize : [ ] , scrollx : ! 1 , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } , render : function ( ) { var a = this , b = this . options ; return BI . VerticalAdaptLayout . superclass . render . apply ( this , arguments ) , { type : "bi.horizontal" , verticalAlign : BI . VerticalAlign . Middle , horizontalAlign : b . horizontalAlign , columnSize : b . columnSize , items : b . items , scrollx : b . scrollx , ref : function ( b ) { a . layout = b } , hgap : b . hgap , vgap : b . vgap , lgap : b . lgap , rgap : b . rgap , tgap : b . tgap , bgap : b . bgap } } , resize : function ( ) { } , populate : function ( a ) { this . layout . populate . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.vertical_adapt" , BI . VerticalAdaptLayout ) , BI . HorizontalAutoLayout = BI . inherit ( BI . Layout , { props : function ( ) { return
} ) , BI . each ( a , function ( a , b ) { return BI . isArray ( b ) ? void BI . each ( b , function ( c , d ) { i [ a ] = ( i [ a ] || 0 ) + b . width , j [ c ] = ( j [ c ] || 0 ) + b . height , h [ a ] [ c ] = d } ) : ( i [ b . row ] = ( i [ b . row ] || 0 ) + b . width , j [ b . column ] = ( j [ b . column ] || 0 ) + b . height , void ( h [ b . row ] [ b . column ] = b ) ) } ) ; for ( var k = 0 ; k < f ; k ++ ) for ( var l = 0 , m = 0 ; m < g ; m ++ ) { if ( ! h [ k ] [ m ] ) throw new Error ( "item be required" ) ; if ( this . hasWidget ( this . getName ( ) + k + "_" + m ) ) n = this . getWidgetByName ( this . getName ( ) + k + "_" + m ) ; else { var n = BI . createWidget ( h [ k ] [ m ] ) ; this . addWidget ( this . getName ( ) + k + "_" + m , n ) } var o = 100 * l / i [ k ] ; if ( n . element . css ( { position : "absolute" , left : o + "%" } ) , m > 0 ) { var p = this . getWidgetByName ( this . getName ( ) + k + "_" + ( m - 1 ) ) ; p . element . css ( { right : 100 - o + "%" } ) } m == e . columns - 1 && n . element . css ( { right : "0%" } ) , d ( n , k , m ) , l += h [ k ] [ m ] . width } for ( var m = 0 ; m < e . columns ; m ++ ) for ( var q = 0 , k = 0 ; k < e . rows ; k ++ ) { var n = this . getWidgetByName ( this . getName ( ) + k + "_" + m ) , r = 100 * q / j [ m ] ; if ( n . element . css ( { top : r + "%" } ) , k > 0 ) { var p = this . getWidgetByName ( this . getName ( ) + ( k - 1 ) + "_" + m ) ; p . element . css ( { bottom : 100 - r + "%" } ) } k == e . rows - 1 && n . element . css ( { bottom : "0%" } ) , q += h [ k ] [ m ] . height } } , update : function ( ) { } , populate : function ( a ) { BI . DivisionLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.division" , BI . DivisionLayout ) , BI . FloatLeftLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . FloatLeftLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-float-left-layout clearfix" , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . FloatLeftLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , _addElement : function ( a , b ) { var c = this . options , d = BI . FloatLeftLayout . superclass . _addElement . apply ( this , arguments ) ; return d . element . css ( { position : "relative" , "float" : "left" } ) , BI . isNotNull ( b . left ) && d . element . css ( { left : b . left } ) , BI . isNotNull ( b . right ) && d . element . css ( { right : b . right } ) , BI . isNotNull ( b . top ) && d . element . css ( { top : b . top } ) , BI . isNotNull ( b . bottom ) && d . element . css ( { bottom : b . bottom } ) , c . vgap + c . tgap + ( b . tgap || 0 ) + ( b . vgap || 0 ) !== 0 && d . element . css ( { "margin-top" : c . vgap + c . tgap + ( b . tgap || 0 ) + ( b . vgap || 0 ) + "px" } ) , c . hgap + c . lgap + ( b . lgap || 0 ) + ( b . hgap || 0 ) !== 0 && d . element . css ( { "margin-left" : ( 0 === a ? c . hgap : 0 ) + c . lgap + ( b . lgap || 0 ) + ( b . hgap || 0 ) + "px" } ) , c . hgap + c . rgap + ( b . rgap || 0 ) + ( b . hgap || 0 ) !== 0 && d . element . css ( { "margin-right" : c . hgap + c . rgap + ( b . rgap || 0 ) + ( b . hgap || 0 ) + "px" } ) , c . vgap + c . bgap + ( b . bgap || 0 ) + ( b . vgap || 0 ) !== 0 && d . element . css ( { "margin-bottom" : c . vgap + c . bgap + ( b . bgap || 0 ) + ( b . vgap || 0 ) + "px" } ) , d } , resize : function ( ) { this . stroke ( this . options . items ) } , populate : function ( a ) { BI . FloatLeftLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.left" , BI . FloatLeftLayout ) , BI . FloatRightLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . FloatRightLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-float-right-layout clearfix" , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . FloatRightLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , _addElement : function ( a , b ) { var c = this . options , d = BI . FloatRightLayout . superclass . _addElement . apply ( this , arguments ) ; return d . element . css ( { position : "relative" , "float" : "right" } ) , BI . isNotNull ( b . left ) && d . element . css ( { left : b . left } ) , BI . isNotNull ( b . right ) && d . element . css ( { right : b . right } ) , BI . isNotNull ( b . top ) && d . element . css ( { top : b . top } ) , BI . isNotNull ( b . bottom ) && d . element . css ( { bottom : b . bottom } ) , c . vgap + c . tgap + ( b . tgap || 0 ) + ( b . vgap || 0 ) !== 0 && d . element . css ( { "margin-top" : c . vgap + c . tgap + ( b . tgap || 0 ) + ( b . vgap || 0 ) + "px" } ) , c . hgap + c . lgap + ( b . lgap || 0 ) + ( b . hgap || 0 ) !== 0 && d . element . css ( { "margin-left" : c . hgap + c . lgap + ( b . lgap || 0 ) + ( b . hgap || 0 ) + "px" } ) , c . hgap + c . rgap + ( b . rgap || 0 ) + ( b . hgap || 0 ) !== 0 && d . element . css ( { "margin-right" : ( 0 === a ? c . hgap : 0 ) + c . rgap + ( b . rgap || 0 ) + ( b . hgap || 0 ) + "px" } ) , c . vgap + c . bgap + ( b . bgap || 0 ) + ( b . vgap || 0 ) !== 0 && d . element . css ( { "margin-bottom" : c . vgap + c . bgap + ( b . bgap || 0 ) + ( b . vgap || 0 ) + "px" } ) , d } , resize : function ( ) { this . stroke ( this . options . items ) } , populate : function ( a ) { BI . FloatRightLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.right" , BI . FloatRightLayout ) , BI . GridLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . GridLayout . superclass . props . apply ( this , argum
q ( j ) && ( k = ! 0 , d . call ( a , c , f , h ) ) , e && e . sync ? ( k = ! 1 , l = ! 1 , j = g . slice ( ) ) : l || ( l = ! 0 , Q ( function ( ) { k = ! 1 , l = ! 1 , j = g . slice ( ) } ) ) ) } ; return c . each ( g , function ( a , b ) { if ( ! c . has ( U , a ) ) { if ( /^[1-9a-zA-Z.]+(\*\*$|\*$)/ . test ( a ) || "**" === a ) { var d = /\*\*$/ . test ( a ) ; a = d ? a . replace ( ".**" , "" ) : a . replace ( ".*" , "" ) ; var g = d ? a : function ( ) { var a = { } ; return c . each ( f . model , function ( b , c ) { c in K || ( a [ c ] = b ) } ) , a } ; return void f . $watch ( g , function ( a , d , e ) { m ( b , a , d , c . extend ( { index : b } , e ) ) } , c . extend ( e , { deep : d } ) ) } if ( /\*\*$|\*$/ . test ( a ) ) throw new Error ( "not support" ) ; if ( /\*/ . test ( a ) ) { var h = a . split ( "." ) , i = function ( ) { for ( var a = { root : f . model } , b = ( function ( b , d ) { var e = { } ; "*" === h [ d ] ? c . each ( a , function ( a , b ) { c . each ( a , function ( a , c ) { b + c in K || ( e [ b + c ] = a ) } ) } ) : c . each ( a , function ( a , b ) { b + h [ d ] in K || ( e [ b + h [ d ] ] = a [ h [ d ] ] ) } ) , a = e } ) , d = 0 , e = h . length ; d < e ; d ++ ) b ( e , d ) ; return a } ; return void f . $watch ( i , function ( a , d , e ) { m ( b , a , d , c . extend ( { index : b } , e ) ) } , e ) } f . $watch ( a , function ( a , d , e ) { m ( b , a , d , c . extend ( { index : b } , e ) ) } , e ) } } ) , h } function s ( a , b ) { var c = a . _stateWatchers = { } ; for ( var d in b ) a . model [ d ] = b [ d ] ; var e = function ( d ) { var e = b [ d ] ; c [ d ] = new Z ( { id : a . _modelHashId + "-" + d , get : function ( ) { return a . model [ d ] } , last : e , listener : a . options . defaultCallback || X } ) } ; for ( var f in b ) e ( f ) } function t ( a , b ) { var d = a . _computedWatchers = { } , e = a . _computedOrder = [ ] ; for ( var f in b ) { var g = b [ f ] , h = a ; e . push ( f ) , d [ f ] = new Z ( { id : a . _modelHashId + "-" + f , get : c . bind ( g , h ) , last : void 0 , listener : X } ) } } function u ( a , b ) { a . _watchers || ( a . _watchers = [ ] ) ; for ( var d in b ) { var e = b [ d ] ; if ( c . isArray ( e ) ) for ( var f = 0 ; f < e . length ; f ++ ) r ( a , d , e [ f ] ) ; else r ( a , d , e ) } } function v ( a , b , d ) { var e = arguments . length > 3 && void 0 !== arguments [ 3 ] ? arguments [ 3 ] : { } ; i ( d ) && ( e = d , d = d . handler ) , "string" == typeof d && ( d = a [ d ] ) ; var f = c . isFunction ( b ) ? c . bind ( b , a ) : c . bind ( function ( ) { return j ( "model." + b ) ( a ) } , a ) ; return new Z ( { get : f , listener : c . bind ( d , a ) , last : f ( ) , sync : e . sync , deep : e . deep , id : e . id } ) } function w ( a , b ) { return function ( ) { var c = a . apply ( b , [ ] . concat ( Array . prototype . slice . call ( arguments ) ) ) ; return b . $digest ( ) , c } } function x ( a , b ) { for ( var c in b ) a [ c ] = null == b [ c ] ? d : w ( b [ c ] , a ) } function y ( a ) { var b = arguments . length > 1 && void 0 !== arguments [ 1 ] ? arguments [ 1 ] : [ ] ; c . each ( b . reverse ( ) , function ( b ) { var d = o ( b ) ; for ( var e in d ) "function" == typeof d [ e ] && ( c . has ( a , e ) || ( a [ e ] = w ( d [ e ] , a ) ) ) } ) } function z ( a , b ) { function d ( b ) { for ( var c = a . _parent ; c ; ) { if ( c . childContext && c . childContext . indexOf ( b ) > - 1 ) return c . $watch ( b , function ( c , d , e ) { a . _contextWatchers [ b ] && ( a . model [ b ] = c , a . _contextWatchers [ b ] . last = l ( c ) , a . $digest ( ) ) } , { id : a . _modelHashId + "-" + b } ) , { p : c , value : c . model [ b ] } ; c = c . _parent } } var e = a . _contextWatchers = { } ; c . each ( b , function ( b ) { var f = d ( b ) ; f && ( a . model [ b ] = f . p ? f . p . model [ b ] : void 0 , e [ b ] = new Z ( { id : f . p . _modelHashId + "-" + b , get : function ( ) { return a . model [ b ] } , last : a . model [ b ] , listener : c . bind ( function ( ) { f . p . model [ b ] = a . model [ b ] , f . p . $digest ( ) } , f . p ) } ) ) } ) } function A ( a ) { var b = ! 1 ; return c . each ( a . _stateWatchers , function ( c , d ) { var e = c . get ( ) , f = c . last ; n ( e , f ) || ( a . model [ d ] = e , b = ! 0 , c . last = l ( e ) ) } ) , b } function B ( a ) { var b = ! 1 , d = [ ] , e = [ ] ; return c . each ( a . _computedOrder , function ( c ) { var f = a . _computedWatchers [ c ] ; try { var g = f . get ( ) , h = f . last ; n ( g , h ) ? e . push ( c ) : ( a . model [ c ] = g , b = ! 0 , d . push ( c ) , f . last = l ( g ) ) } catch ( i ) { b = ! 0 , d . push ( c ) } } ) , a . _computedOrder = [ ] . concat ( e , d ) , b } function C ( a ) { var b = ! 1 ; return c . each ( a . _contextWatchers , function ( d , e ) { var f = d . get ( ) , g = d . last ; if ( ! n ( f , g ) ) { var h = { id : d . id , cb : c . bind ( d . listener , a , f , g , a ) } ; a . contextListeners . push ( h ) , a . model [ e ] = f , b = ! 0 , d . last = l ( f ) } } ) , b } function D ( a ) { for ( var b = ! 0 , c = ! 0 , d = ! 0 , e = Y ; b && e > 0 ; e -- ) b = A ( a ) ; for ( var f = Y ; c && f > 0 ; f -- ) c = C ( a ) ; for ( var g = Y ; d && g > 0 ; g -- ) d = B ( a ) } function E ( a ) { var b = [ ] . concat ( a . syncListeners || [ ] ) , d = [ ] . concat ( a . asyncListeners || [ ] ) , e = [ ] . concat ( a . contextListeners || [ ] ) ; a . asyncListeners = [ ] , a . syncListeners = [ ] ; var f = [ ] . concat ( a . _watchers ) ; c . each ( f , function ( e ) { if ( e ) { var f = e . get ( ) , g = e . last ; if ( ! n ( f , g ) ) { var h = { id : e . id , cb : c . bind ( e . listener , a , f , g , a ) } ; e . sync === ! 0 ? b . push ( h ) : d . push ( h ) , e . last = l ( f ) } } } ) , c . each ( b , function ( a ) { a . cb ( ) } ) , 0 === e . length && 0 === d . length || Q ( function ( ) { c . each ( e , function ( a ) { a . cb ( ) } ) , c . each ( d , function ( a ) { a . cb ( ) } ) } ) } function F ( ) { c . each ( W , function ( a ) { a && a . $digest && a . $digest ( ) } ) } function G ( ) { return V } function H ( ) { c . each ( G ( ) , function ( a ) { a && a . $digest && a . $digest ( ) } ) } function I ( a ) { var b = m ( aa , { sta
if ( d . isEnabled ( ) ) if ( BI . isFunction ( d . getNodeByValue ) ) { if ( b = d . getNodeByValue ( a ) ) return ! 0 } else if ( d . attr ( "value" ) === a ) return b = d , ! 0 } ) , b } } ) , BI . ButtonTree . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.button_tree" , BI . ButtonTree ) , BI . TreeView = BI . inherit ( BI . Pane , { _defaultConfig : function ( ) { return BI . extend ( BI . TreeView . superclass . _defaultConfig . apply ( this , arguments ) , { _baseCls : "bi-tree" , paras : { selectedValues : { } } , itemsCreator : BI . emptyFn } ) } , _init : function ( ) { BI . TreeView . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . _stop = ! 1 , this . _createTree ( ) , this . tip = BI . createWidget ( { type : "bi.loading_bar" , invisible : ! 0 , handler : BI . bind ( this . _loadMore , this ) } ) , BI . createWidget ( { type : "bi.vertical" , scrollable : ! 0 , scrolly : ! 1 , element : this , items : [ this . tip ] } ) , BI . isNotNull ( a . value ) && this . setSelectedValue ( a . value ) , BI . isIE9Below && BI . isIE9Below ( ) && this . element . addClass ( "hack" ) } , _createTree : function ( ) { this . id = "bi-tree" + BI . UUID ( ) , this . nodes && this . nodes . destroy ( ) , this . tree && this . tree . destroy ( ) , this . tree = BI . createWidget ( { type : "bi.layout" , element : "<ul id='" + this . id + "' class='ztree'></ul>" } ) , BI . createWidget ( { type : "bi.default" , element : this . element , items : [ this . tree ] } ) } , _selectTreeNode : function ( a , b ) { this . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . CLICK , b , this ) , this . fireEvent ( BI . TreeView . EVENT _CHANGE , b , this ) } , _configSetting : function ( ) { function a ( a , b , c ) { var d = c . checked , e = c . getCheckStatus ( ) ; e . half === ! 0 && e . checked === ! 0 && ( d = ! 1 ) , l . nodes . checkNode ( c , ! d , ! 0 , ! 0 ) } function b ( a , b ) { var c = l . _getParentValues ( b ) ; b . times = b . times || 1 ; var d = "id=" + b . id + "×=" + b . times ++ + "&parentValues= " + _global . encodeURIComponent ( BI . jsonEncode ( c ) ) + "&checkState=" + _global . encodeURIComponent ( BI . jsonEncode ( b . getCheckStatus ( ) ) ) ; return "&" + d } function c ( a , b ) { return b . isAjaxing ? ( BI . Msg . toast ( "Please Wait。" , "warning" ) , ! 1 ) : ( b . children || ( b . times = 1 , f ( b , "refresh" ) ) , ! 0 ) } function d ( a , b , c , d ) { if ( c . halfCheck = ! 1 , d && 0 !== d . length && ! /^<html>[\s,\S]*<\/html>$/gi . test ( d ) && ! l . _stop ) { var e = l . nodes , g = c . count || 0 ; c . children . length > g ? ( c . count = c . children . length , BI . delay ( function ( ) { f ( c ) } , n ) ) : ( e . updateNode ( c ) , e . selectNode ( c . children [ 0 ] ) ) } } function e ( a , b , c , d , e , f ) { l . nodes ; BI . Msg . toast ( "Error!" , "warning" ) } function f ( a , b ) { var c = l . nodes ; "refresh" == b && c . updateNode ( a ) , c . reAsyncChildNodes ( a , b , ! 0 ) } function g ( a , b ) { function c ( a ) { BI . each ( a , function ( a , b ) { b . halfCheck === ! 0 && ( b . halfCheck = ! 1 , c ( b . children ) ) } ) } if ( b . halfCheck = ! 1 , b . checked === ! 0 ) { c ( b . children ) ; var d = l . nodes , e = d . getSelectedNodes ( ) ; BI . $ . each ( e , function ( a , b ) { b . halfCheck = ! 1 } ) } var f = b . getCheckStatus ( ) ; f . half === ! 0 && f . checked === ! 0 && ( b . checked = ! 1 ) } function h ( a , b , c ) { l . _selectTreeNode ( b , c ) } function i ( a , b , c ) { c . halfCheck = ! 1 } function j ( a , b , c ) { } var k = this . options . paras , l = this , m = { async : { enable : ! 0 , url : b , autoParam : [ "id" , "name" ] , otherParam : BI . cjkEncodeDO ( k ) } , check : { enable : ! 0 } , data : { key : { title : "title" , name : "text" } , simpleData : { enable : ! 0 } } , view : { showIcon : ! 1 , expandSpeed : "" , nameIsHTML : ! 0 , dblClickExpand : ! 1 } , callback : { beforeExpand : c , onAsyncSuccess : d , onAsyncError : e , beforeCheck : g , onCheck : h , onExpand : i , onCollapse : j , onClick : a } } , n = 100 ; return m } , _getParentValues : function ( a ) { if ( ! a . getParentNode ( ) ) return [ ] ; var b = a . getParentNode ( ) , c = this . _getParentValues ( b ) ; return c = c . concat ( [ this . _getNodeValue ( b ) ] ) } , _getNodeValue : function ( a ) { return null == a . value ? BI . replaceAll ( a . text . replace ( /<[^>]+>/g , "" ) , " " , " " ) : a . value } , _getHalfSelectedValues : function ( a , b ) { var c = this , d = b . getCheckStatus ( ) ; if ( d . checked !== ! 1 || d . half !== ! 1 ) { if ( BI . isNotEmptyArray ( b . children ) && d . half === ! 0 ) { var e = b . children ; return void BI . each ( e , function ( b , d ) { c . _getHalfSelectedValues ( a , d ) } ) } var f = b . parentValues || c . _getParentValues ( b ) , g = f . concat ( this . _getNodeValue ( b ) ) ; if ( BI . isNotEmptyArray ( b . children ) || d . half === ! 1 ) return void this . _buildTree ( a , g ) ; var h = BI . deepClone ( this . options . paras . selectedValues ) , i = this . _getTree ( h , g ) ; this . _addTreeNode ( a , f , this . _getNodeValue ( b ) , i ) } } , _getTree : function ( a , b ) { var c = a ; return BI . any ( b , function ( a , b ) { return null == c [ b ] || void ( c = c [ b ] ) } ) , c } , _addTreeNode : function ( a , b , c , d ) { var e = a ; BI . each ( b , function ( a , b ) { null == e [ b ] && ( e [ b ] = { } ) , e = e [ b ] } ) , e [ c ] = d } , _buildTree : function ( a , b ) { var c = a ; BI . each ( b , function ( a , b ) { null == c [ b ] && ( c [ b ] = { } ) , c = c [ b ] } ) } , _getSele
break ; case "right" : case "right,bottom" : c = BI . DOM . getComboPosition ( e , this . popupView , b . adjustXOffset || b . adjustLength , b . adjustYOffset , b . isNeedAdjustHeight , [ "right" , "left" , "bottom" , "top" ] , b . offsetStyle ) ; break ; case "top,left" : c = BI . DOM . getComboPosition ( e , this . popupView , b . adjustXOffset , b . adjustYOffset || b . adjustLength , b . isNeedAdjustHeight , [ "top" , "bottom" , "left" , "right" ] , b . offsetStyle ) ; break ; case "bottom,left" : c = BI . DOM . getComboPosition ( e , this . popupView , b . adjustXOffset , b . adjustYOffset || b . adjustLength , b . isNeedAdjustHeight , [ "bottom" , "top" , "left" , "right" ] , b . offsetStyle ) ; break ; case "left,top" : c = BI . DOM . getComboPosition ( e , this . popupView , b . adjustXOffset || b . adjustLength , b . adjustYOffset , b . isNeedAdjustHeight , [ "left" , "right" , "top" , "bottom" ] , b . offsetStyle ) ; break ; case "right,top" : c = BI . DOM . getComboPosition ( e , this . popupView , b . adjustXOffset || b . adjustLength , b . adjustYOffset , b . isNeedAdjustHeight , [ "right" , "left" , "top" , "bottom" ] , b . offsetStyle ) ; break ; case "right,innerRight" : c = BI . DOM . getComboPosition ( e , this . popupView , b . adjustXOffset || b . adjustLength , b . adjustYOffset , b . isNeedAdjustHeight , [ "right" , "left" , "innerRight" , "innerLeft" , "bottom" , "top" ] , b . offsetStyle ) ; break ; case "right,innerLeft" : c = BI . DOM . getComboPosition ( e , this . popupView , b . adjustXOffset || b . adjustLength , b . adjustYOffset , b . isNeedAdjustHeight , [ "right" , "left" , "innerLeft" , "innerRight" , "bottom" , "top" ] , b . offsetStyle ) ; break ; case "innerRight" : c = BI . DOM . getComboPosition ( e , this . popupView , b . adjustXOffset || b . adjustLength , b . adjustYOffset , b . isNeedAdjustHeight , [ "innerRight" , "innerLeft" , "right" , "left" , "bottom" , "top" ] , b . offsetStyle ) ; break ; case "innerLeft" : c = BI . DOM . getComboPosition ( e , this . popupView , b . adjustXOffset || b . adjustLength , b . adjustYOffset , b . isNeedAdjustHeight , [ "innerLeft" , "innerRight" , "left" , "right" , "bottom" , "top" ] , b . offsetStyle ) ; break ; case "top,custom" : case "custom,top" : c = BI . DOM . getTopAdaptPosition ( e , this . popupView , b . adjustYOffset || b . adjustLength , b . isNeedAdjustHeight ) ; break ; case "custom,bottom" : case "bottom,custom" : c = BI . DOM . getBottomAdaptPosition ( e , this . popupView , b . adjustYOffset || b . adjustLength , b . isNeedAdjustHeight ) ; break ; case "left,custom" : case "custom,left" : c = BI . DOM . getLeftAdaptPosition ( e , this . popupView , b . adjustXOffset || b . adjustLength ) , delete c . top , delete c . adaptHeight ; break ; case "custom,right" : case "right,custom" : c = BI . DOM . getRightAdaptPosition ( e , this . popupView , b . adjustXOffset || b . adjustLength ) , delete c . top , delete c . adaptHeight } "adaptHeight" in c && this . resetListHeight ( c . adaptHeight ) , "left" in c && this . popupView . element . css ( { left : c . left } ) , "top" in c && this . popupView . element . css ( { top : c . top } ) , this . position = c , this . popupView . setVisible ( d ) } } , resetListHeight : function ( a ) { this . _assertPopupView ( ) , this . popupView . resetHeight && this . popupView . resetHeight ( a ) } , resetListWidth : function ( a ) { this . _assertPopupView ( ) , this . popupView . resetWidth && this . popupView . resetWidth ( a ) } , populate : function ( a ) { this . _assertPopupView ( ) , this . popupView . populate . apply ( this . popupView , arguments ) , this . combo . populate . apply ( this . combo , arguments ) } , _setEnable : function ( a ) { BI . Combo . superclass . _setEnable . apply ( this , arguments ) , a === ! 0 ? this . element . removeClass ( "base-disabled disabled" ) : a === ! 1 && this . element . addClass ( "base-disabled disabled" ) , ! a && this . element . removeClass ( this . options . hoverClass ) , ! a && this . isViewVisible ( ) && this . _hideView ( ) } , setValue : function ( a ) { this . combo . setValue ( a ) , BI . isNull ( this . popupView ) ? this . options . popup . value = a : this . popupView . setValue ( a ) } , getValue : function ( ) { return BI . isNull ( this . popupView ) ? this . options . popup . value : this . popupView . getValue ( ) } , isViewVisible : function ( ) { return this . isEnabled ( ) && this . combo . isEnabled ( ) && ! ! this . popupView && this . popupView . isVisible ( ) } , showView : function ( a ) { this . isEnabled ( ) && this . combo . isEnabled ( ) && ! this . isViewVisible ( ) && this . _popupView ( a ) } , hideView : function ( ) { this . _hideView ( ) } , getView : function ( ) { return this . popupView } , getPopupPosition : function ( ) { return this . position } , toggle : function ( ) { this . _toggle ( ) } , destroyed : function ( ) { BI . Widget . _renderEngine . createElement ( document ) . unbind ( "mousedown." + this . getName ( ) ) . unbind ( "mousewheel." + this . getName ( ) ) . unbind ( "mouseenter." + this . getName ( ) ) . unbind ( "mousemove." + this . getName ( ) ) . unbind ( "mouseleave." + this . getName (
BI . Switcher . EVENT _EXPAND = "EVENT_EXPAND" , BI . Switcher . EVENT _COLLAPSE = "EVENT_COLLAPSE" , BI . Switcher . EVENT _TRIGGER _CHANGE = "EVENT_TRIGGER_CHANGE" , BI . Switcher . EVENT _CHANGE = "EVENT_CHANGE" , BI . Switcher . EVENT _AFTER _INIT = "EVENT_AFTER_INIT" , BI . Switcher . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . Switcher . EVENT _AFTER _POPUPVIEW = "EVENT_AFTER_POPUPVIEW" , BI . Switcher . EVENT _BEFORE _HIDEVIEW = "EVENT_BEFORE_HIDEVIEW" , BI . Switcher . EVENT _AFTER _HIDEVIEW = "EVENT_AFTER_HIDEVIEW" , BI . shortcut ( "bi.switcher" , BI . Switcher ) , BI . Tab = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . Tab . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-tab" , direction : "top" , single : ! 1 , logic : { dynamic : ! 1 } , showIndex : ! 1 , tab : ! 1 , cardCreator : function ( a ) { return BI . createWidget ( ) } } ) } , render : function ( ) { var a = this , b = this . options ; BI . isObject ( b . tab ) && ( this . tab = BI . createWidget ( this . options . tab , { type : "bi.button_group" } ) , this . tab . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) ) , this . cardMap = { } , this . layout = BI . createWidget ( { type : "bi.card" } ) , BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( BI . LogicFactory . createLogicTypeByDirection ( b . direction ) , BI . extend ( { } , b . logic , { items : BI . LogicFactory . createLogicItemsByDirection ( b . direction , this . tab , this . layout ) } ) ) ) ) ; var c = new BI . ShowListener ( { eventObj : this . tab , cardLayout : this . layout , cardCreator : function ( c ) { var d = b . cardCreator . apply ( a , arguments ) ; return a . cardMap [ c ] = d , d } , afterCardShow : function ( b ) { a . _deleteOtherCards ( b ) , a . curr = b } } ) ; c . on ( BI . ShowListener . EVENT _CHANGE , function ( b ) { a . fireEvent ( BI . Tab . EVENT _CHANGE , b , a ) } ) } , _deleteOtherCards : function ( a ) { var b = this , c = this . options ; c . single === ! 0 && BI . each ( this . cardMap , function ( c , d ) { c !== a + "" && ( b . layout . deleteCardByName ( c ) , delete b . cardMap [ c ] ) } ) } , _assertCard : function ( a ) { if ( ! this . layout . isCardExisted ( a ) ) { var b = this . options . cardCreator ( a ) ; this . cardMap [ a ] = b , this . layout . addCardByName ( a , b ) } } , mounted : function ( ) { var a = this . options ; a . showIndex !== ! 1 && this . setSelect ( a . showIndex ) } , setSelect : function ( a ) { this . tab && this . tab . setValue ( a ) , this . _assertCard ( a ) , this . layout . showCardByName ( a ) , this . _deleteOtherCards ( a ) , this . curr !== a && ( this . curr = a ) } , removeTab : function ( a ) { var b = this ; this . options ; BI . any ( this . cardMap , function ( c , d ) { if ( BI . isEqual ( c , a + "" ) ) return b . layout . deleteCardByName ( c ) , delete b . cardMap [ c ] , ! 0 } ) } , getSelect : function ( ) { return this . curr } , getSelectedTab : function ( ) { return this . layout . getShowingCard ( ) } , getTab : function ( a ) { return this . _assertCard ( a ) , this . layout . getCardByName ( a ) } , setValue : function ( a ) { var b = this . layout . getShowingCard ( ) ; b && b . setValue ( a ) } , getValue : function ( ) { var a = this . layout . getShowingCard ( ) ; if ( a ) return a . getValue ( ) } , populate : function ( ) { var a = this . layout . getShowingCard ( ) ; if ( a ) return a . populate && a . populate . apply ( a , arguments ) } , empty : function ( ) { this . layout . deleteAllCard ( ) , this . cardMap = { } } , destroy : function ( ) { this . cardMap = { } , BI . Tab . superclass . destroy . apply ( this , arguments ) } } ) , BI . Tab . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.tab" , BI . Tab ) , BI . EL = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . EL . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-el" , el : { } , layout : { } } ) } , _init : function ( ) { BI . EL . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . ele = BI . createWidget ( b . el ) , BI . createWidget ( b . layout , { type : "bi.adaptive" , element : this , items : [ this . ele ] } ) , this . ele . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) } , setValue : function ( a ) { this . ele . setValue ( a ) } , getValue : function ( ) { return this . ele . getValue ( ) } , populate : function ( ) { this . ele . populate . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.el" , BI . EL ) , BI . Msg = function ( ) { var a , b , c , d = [ ] ; return { alert : function ( a , b , c ) { this . _show ( ! 1 , a , b , c ) } , confirm : function ( a , b , c ) { this . _show ( ! 0 , a , b , c ) } , prompt : function ( a , b , c , d , e ) { } , toast : function ( a , b , c ) { b = b || { } , c = c || BI . Widget . _renderEngine . createElement ( "body" ) ; var e = b . level || "normal" , f = ! ! BI . isNull ( b . autoClose ) || b . autoClose , g = BI . createWidget ( { type : "bi.toast" , cls : "bi-message-animate bi-message-leave" , level : e , autoClose : f , text : a , listeners : [ { eventName : BI . Toast . EVENT _DESTORY , action : function ( ) { BI .
el : null , tagName : "a" } ) } , _init : function ( ) { var a = this . options ; BI . A . superclass . _init . apply ( this , arguments ) , this . element . attr ( { href : a . href , target : a . target } ) , a . el && BI . createWidget ( a . el , { element : this } ) } } ) , BI . shortcut ( "bi.a" , BI . A ) , BI . LoadingBar = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { var a = BI . LoadingBar . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-loading-bar bi-tips" , height : 30 , handler : BI . emptyFn } ) } , _init : function ( ) { BI . LoadingBar . superclass . _init . apply ( this , arguments ) ; var a = this ; this . loaded = BI . createWidget ( { type : "bi.text_button" , cls : "loading-text bi-list-item-simple" , text : BI . i18nText ( "BI-Load_More" ) , width : 120 , handler : this . options . handler } ) , this . loaded . on ( BI . Controller . EVENT _CHANGE , function ( b ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . loading = BI . createWidget ( { type : "bi.layout" , width : this . options . height , height : this . options . height , cls : "loading-background cursor-default" } ) ; var b = BI . createWidget ( { type : "bi.center_adapt" , items : [ this . loaded ] } ) , c = BI . createWidget ( { type : "bi.center_adapt" , items : [ this . loading ] } ) ; this . cardLayout = BI . createWidget ( { type : "bi.card" , element : this , items : [ { el : b , cardName : "loaded" } , { el : c , cardName : "loading" } ] } ) , this . invisible ( ) } , _reset : function ( ) { this . visible ( ) , this . loaded . setText ( BI . i18nText ( "BI-Load_More" ) ) , this . loaded . enable ( ) } , setLoaded : function ( ) { this . _reset ( ) , this . cardLayout . showCardByName ( "loaded" ) } , setEnd : function ( ) { this . setLoaded ( ) , this . loaded . setText ( BI . i18nText ( "BI-No_More_Data" ) ) , this . loaded . disable ( ) } , setLoading : function ( ) { this . _reset ( ) , this . cardLayout . showCardByName ( "loading" ) } } ) , BI . shortcut ( "bi.loading_bar" , BI . LoadingBar ) , BI . IconButton = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { var a = BI . IconButton . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { _baseCls : ( a . _baseCls || "" ) + " bi-icon-button horizon-center" , iconWidth : null , iconHeight : null } ) } , _init : function ( ) { BI . IconButton . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . element . css ( { textAlign : "center" } ) , this . icon = BI . createWidget ( { type : "bi.icon" , width : a . iconWidth , height : a . iconHeight } ) , BI . isNumber ( a . height ) && a . height > 0 && BI . isNull ( a . iconWidth ) && BI . isNull ( a . iconHeight ) ? ( this . element . css ( "lineHeight" , a . height + "px" ) , BI . createWidget ( { type : "bi.default" , element : this , items : [ this . icon ] } ) ) : ( this . element . css ( "lineHeight" , "1" ) , BI . createWidget ( { element : this , type : "bi.center_adapt" , items : [ this . icon ] } ) ) } , doClick : function ( ) { BI . IconButton . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . IconButton . EVENT _CHANGE , this ) } } ) , BI . IconButton . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.icon_button" , BI . IconButton ) , BI . ImageButton = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { var a = BI . ImageButton . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-image-button" , src : "" , iconWidth : "100%" , iconHeight : "100%" } ) } , _init : function ( ) { BI . ImageButton . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . image = BI . createWidget ( { type : "bi.img" , width : a . iconWidth , height : a . iconHeight , src : a . src } ) , BI . isNumber ( a . iconWidth ) || BI . isNumber ( a . iconHeight ) ? BI . createWidget ( { type : "bi.center_adapt" , element : this , items : [ this . image ] } ) : BI . createWidget ( { type : "bi.adaptive" , element : this , items : [ this . image ] , scrollable : ! 1 } ) } , setWidth : function ( a ) { BI . ImageButton . superclass . setWidth . apply ( this , arguments ) , this . options . width = a } , setHeight : function ( a ) { BI . ImageButton . superclass . setHeight . apply ( this , arguments ) , this . options . height = a } , setImageWidth : function ( a ) { this . image . setWidth ( a ) } , setImageHeight : function ( a ) { this . image . setHeight ( a ) } , getImageWidth : function ( ) { return this . image . element . width ( ) } , getImageHeight : function ( ) { return this . image . element . height ( ) } , setSrc : function ( a ) { this . options . src = a , this . image . setSrc ( a ) } , getSrc : function ( ) { return this . image . getSrc ( ) } , doClick : function ( ) { BI . ImageButton . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . ImageButton . EVENT _CHANGE , this ) } } ) , BI . ImageButton . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.image_button" , BI . ImageButton ) , BI . Button = BI . inherit ( BI . BasicButton , { _defaultConfig : function (
} ) ) } , _checkError : function ( ) { this . _setErrorVisible ( this . isEnabled ( ) && ! this . isValid ( ) ) , this . _checkToolTip ( ) } , _checkWaterMark : function ( ) { var a = this . options ; ! this . disabledWaterMark && "" === this . editor . getValue ( ) && BI . isKey ( a . watermark ) ? this . watermark && this . watermark . visible ( ) : this . watermark && this . watermark . invisible ( ) } , setErrorText : function ( a ) { this . options . errorText = a } , getErrorText : function ( ) { return this . options . errorText } , setWaterMark : function ( a ) { this . options . watermark = a , BI . isNull ( this . watermark ) && ( this . _assertWaterMark ( ) , BI . createWidget ( { type : "bi.absolute" , element : this . contentWrapper , items : [ { el : this . watermark , left : 3 , right : 3 , top : 0 , bottom : 0 } ] } ) ) , BI . isKey ( a ) && this . watermark . setText ( a ) } , _setErrorVisible : function ( a ) { var b = this . options , c = b . errorText ; if ( BI . isFunction ( c ) && ( c = c ( BI . trim ( this . editor . getValue ( ) ) ) ) , ! this . disabledError && BI . isKey ( c ) ) return BI . Bubbles [ a ? "show" : "hide" ] ( this . getName ( ) , c , this , { adjustYOffset : 2 } ) , this . _checkToolTip ( ) , BI . Bubbles . get ( this . getName ( ) ) } , disableError : function ( ) { this . disabledError = ! 0 , this . _checkError ( ) } , enableError : function ( ) { this . disabledError = ! 1 , this . _checkError ( ) } , disableWaterMark : function ( ) { this . disabledWaterMark = ! 0 , this . _checkWaterMark ( ) } , enableWaterMark : function ( ) { this . disabledWaterMark = ! 1 , this . _checkWaterMark ( ) } , focus : function ( ) { this . element . addClass ( "text-editor-focus" ) , this . editor . focus ( ) } , blur : function ( ) { this . element . removeClass ( "text-editor-focus" ) , this . editor . blur ( ) } , selectAll : function ( ) { this . editor . selectAll ( ) } , onKeyDown : function ( a ) { this . editor . onKeyDown ( a ) } , setValue : function ( a ) { BI . Editor . superclass . setValue . apply ( this , arguments ) , this . editor . setValue ( a ) , this . _checkError ( ) , this . _checkWaterMark ( ) } , getLastValidValue : function ( ) { return this . editor . getLastValidValue ( ) } , getLastChangedValue : function ( ) { return this . editor . getLastChangedValue ( ) } , getValue : function ( ) { return this . isValid ( ) ? BI . trim ( this . editor . getValue ( ) ) : BI . trim ( this . editor . getLastValidValue ( ) ) } , isEditing : function ( ) { return this . editor . isEditing ( ) } , isValid : function ( ) { return this . editor . isValid ( ) } , destroyed : function ( ) { BI . Bubbles . remove ( this . getName ( ) ) } } ) , BI . Editor . EVENT _CHANGE = "EVENT_CHANGE" , BI . Editor . EVENT _FOCUS = "EVENT_FOCUS" , BI . Editor . EVENT _BLUR = "EVENT_BLUR" , BI . Editor . EVENT _CLICK = "EVENT_CLICK" , BI . Editor . EVENT _KEY _DOWN = "EVENT_KEY_DOWN" , BI . Editor . EVENT _SPACE = "EVENT_SPACE" , BI . Editor . EVENT _BACKSPACE = "EVENT_BACKSPACE" , BI . Editor . EVENT _START = "EVENT_START" , BI . Editor . EVENT _PAUSE = "EVENT_PAUSE" , BI . Editor . EVENT _STOP = "EVENT_STOP" , BI . Editor . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . Editor . EVENT _CHANGE _CONFIRM = "EVENT_CHANGE_CONFIRM" , BI . Editor . EVENT _VALID = "EVENT_VALID" , BI . Editor . EVENT _ERROR = "EVENT_ERROR" , BI . Editor . EVENT _ENTER = "EVENT_ENTER" , BI . Editor . EVENT _RESTRICT = "EVENT_RESTRICT" , BI . Editor . EVENT _REMOVE = "EVENT_REMOVE" , BI . Editor . EVENT _EMPTY = "EVENT_EMPTY" , BI . shortcut ( "bi.editor" , BI . Editor ) , BI . MultifileEditor = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { var a = BI . MultifileEditor . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-multifile-editor" , multiple : ! 1 , maxSize : - 1 , accept : "" , url : "" } ) } , _init : function ( ) { var a = this , b = this . options ; BI . MultifileEditor . superclass . _init . apply ( this , arguments ) , this . file = BI . createWidget ( { type : "bi.file" , cls : "multifile-editor" , width : "100%" , height : "100%" , name : b . name , url : b . url , multiple : b . multiple , accept : b . accept , maxSize : b . maxSize , title : b . title } ) , this . file . on ( BI . File . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultifileEditor . EVENT _CHANGE , arguments ) } ) , this . file . on ( BI . File . EVENT _UPLOADSTART , function ( ) { a . fireEvent ( BI . MultifileEditor . EVENT _UPLOADSTART , arguments ) } ) , this . file . on ( BI . File . EVENT _ERROR , function ( ) { a . fireEvent ( BI . MultifileEditor . EVENT _ERROR , arguments ) } ) , this . file . on ( BI . File . EVENT _PROGRESS , function ( ) { a . fireEvent ( BI . MultifileEditor . EVENT _PROGRESS , arguments ) } ) , this . file . on ( BI . File . EVENT _UPLOADED , function ( ) { a . fireEvent ( BI . MultifileEditor . EVENT _UPLOADED , arguments ) } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : { type : "bi.adaptive" , scrollable : ! 1 , items : [ this . file ] } , top : 0 , right : 0 , left : 0 , bottom : 0 } ] } ) } , select : function ( ) { this . file . select ( ) } , getValue : function ( ) { return this . file . getValue ( ) } , up
rgap : a . rgap , tgap : a . tgap , bgap : a . bgap } ) , this . text = BI . createWidget ( b ) , void BI . createWidget ( { type : "bi.center_adapt" , scrollable : "normal" === a . whiteSpace , element : this , items : [ this . text ] } ) ) : BI . isNumber ( a . height ) && a . height > 0 ? ( this . element . css ( { "line-height" : a . height + "px" } ) , b . textAlign = a . textAlign , void ( this . text = BI . createWidget ( BI . extend ( b , { element : this , hgap : a . hgap , vgap : a . vgap , lgap : a . lgap , rgap : a . rgap , tgap : a . tgap , bgap : a . bgap } ) ) ) ) : ( BI . extend ( b , { hgap : a . hgap , vgap : a . vgap , lgap : a . lgap , rgap : a . rgap , tgap : a . tgap , bgap : a . bgap , maxWidth : "100%" } ) , this . text = BI . createWidget ( b ) , void BI . createWidget ( { type : "bi.center_adapt" , scrollable : "normal" === a . whiteSpace , element : this , items : [ this . text ] } ) ) : BI . isNumber ( a . textWidth ) && a . textWidth > 0 ? ( b . maxWidth = a . textWidth , void BI . createWidget ( { type : "bi.center_adapt" , scrollable : "normal" === a . whiteSpace , element : this , items : [ { el : this . text = BI . createWidget ( b ) } ] } ) ) : "normal" == a . whiteSpace ? ( BI . extend ( b , { hgap : a . hgap , vgap : a . vgap , lgap : a . lgap , rgap : a . rgap , tgap : a . tgap , bgap : a . bgap } ) , this . text = BI . createWidget ( b ) , void BI . createWidget ( { type : "bi.center_adapt" , scrollable : ! 0 , element : this , items : [ this . text ] } ) ) : BI . isNumber ( a . height ) && a . height > 0 ? ( this . element . css ( { "line-height" : a . height + "px" } ) , b . textAlign = a . textAlign , void ( this . text = BI . createWidget ( BI . extend ( b , { element : this , hgap : a . hgap , vgap : a . vgap , lgap : a . lgap , rgap : a . rgap , tgap : a . tgap , bgap : a . bgap } ) ) ) ) : ( BI . extend ( b , { hgap : a . hgap , vgap : a . vgap , lgap : a . lgap , rgap : a . rgap , tgap : a . tgap , bgap : a . bgap } ) , this . text = BI . createWidget ( BI . extend ( b , { maxWidth : "100%" } ) ) , void BI . createWidget ( { type : "bi.center_adapt" , element : this , items : [ this . text ] } ) ) } , _createNotCenterEl : function ( ) { var a = this . options , b = "right" === a . textAlign ? "bi.right_vertical_adapt" : "bi.vertical_adapt" , c = this . _createJson ( ) ; return BI . isNumber ( a . width ) && a . width > 0 ? BI . isNumber ( a . textWidth ) && a . textWidth > 0 ? ( c . width = a . textWidth , BI . isNumber ( a . height ) && a . height > 0 ? void BI . createWidget ( { type : b , height : a . height , scrollable : "normal" === a . whiteSpace , element : this , items : [ { el : this . text = BI . createWidget ( c ) } ] } ) : void BI . createWidget ( { type : b , scrollable : "normal" === a . whiteSpace , hgap : a . hgap , vgap : a . vgap , lgap : a . lgap , rgap : a . rgap , tgap : a . tgap , bgap : a . bgap , element : this , items : [ { el : this . text = BI . createWidget ( c ) } ] } ) ) : BI . isNumber ( a . height ) && a . height > 0 ? ( this . text = BI . createWidget ( BI . extend ( c , { element : this , hgap : a . hgap , vgap : a . vgap , lgap : a . lgap , rgap : a . rgap , tgap : a . tgap , bgap : a . bgap } ) ) , void ( "normal" !== a . whiteSpace && this . element . css ( { "line-height" : a . height - 2 * a . vgap + "px" } ) ) ) : ( c . width = a . width - 2 * a . hgap - a . lgap - a . rgap , void BI . createWidget ( { type : b , scrollable : "normal" === a . whiteSpace , hgap : a . hgap , vgap : a . vgap , lgap : a . lgap , rgap : a . rgap , tgap : a . tgap , bgap : a . bgap , element : this , items : [ { el : this . text = BI . createWidget ( c ) } ] } ) ) : BI . isNumber ( a . textWidth ) && a . textWidth > 0 ? ( c . width = a . textWidth , void BI . createWidget ( { type : b , scrollable : "normal" === a . whiteSpace , hgap : a . hgap , vgap : a . vgap , lgap : a . lgap , rgap : a . rgap , tgap : a . tgap , bgap : a . bgap , element : this , items : [ { el : this . text = BI . createWidget ( c ) } ] } ) ) : BI . isNumber ( a . height ) && a . height > 0 ? ( "normal" !== a . whiteSpace && this . element . css ( { "line-height" : a . height - 2 * a . vgap + "px" } ) , void ( this . text = BI . createWidget ( BI . extend ( c , { element : this , hgap : a . hgap , vgap : a . vgap , lgap : a . lgap , rgap : a . rgap , tgap : a . tgap , bgap : a . bgap } ) ) ) ) : ( BI . extend ( c , { hgap : a . hgap , vgap : a . vgap , lgap : a . lgap , rgap : a . rgap , tgap : a . tgap , bgap : a . bgap } ) , this . text = BI . createWidget ( BI . extend ( c , { maxWidth : "100%" } ) ) , void BI . createWidget ( { type : b , element : this , items : [ this . text ] } ) ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doHighLight : function ( ) { this . text . doHighLight . apply ( this . text , arguments ) } , unHighLight : function ( ) { this . text . unHighLight . apply ( this . text , arguments ) } , setText : function ( a ) { this . options . text = a , this . text . setText ( a ) } , getText : function ( ) { return this . options . text } , setStyle : function ( a ) { this . text . setStyle ( a ) } , setValue : function ( a ) { BI . AbstractLabel . superclass . setValue . apply ( this , arguments ) , this . isReadOnly ( ) || this . text . setValue ( a ) } , populate : function ( ) { BI . AbstractLabel . superclass . populate . apply ( this , arguments ) } } ) , BI . HtmlLabel = BI . inherit ( BI . AbstractLabel , { props : { baseCls : "bi-html-label" } , _crea
if ( f . expandTriggerFlag ) { var h = e ; e = function ( ) { h && h ( ) , b . open ? a . treeObj . trigger ( consts . event . EXPAND , [ a . treeId , b ] ) : a . treeObj . trigger ( consts . event . COLLAPSE , [ a . treeId , b ] ) } , f . expandTriggerFlag = ! 1 } if ( ! b . open && b . isParent && ( ! $$ ( b , consts . id . UL , a ) . get ( 0 ) || b [ g ] && b [ g ] . length > 0 && ! $$ ( b [ g ] [ 0 ] , a ) . get ( 0 ) ) && ( view . appendParentULDom ( a , b ) , view . createNodeCallback ( a ) ) , b . open == c ) return void tools . apply ( e , [ ] ) ; var i = $$ ( b , consts . id . UL , a ) , j = $$ ( b , consts . id . SWITCH , a ) , k = $$ ( b , consts . id . ICON , a ) ; b . isParent ? ( b . open = ! b . open , b . iconOpen && b . iconClose && k . attr ( "style" , view . makeNodeIcoStyle ( a , b ) ) , b . open ? ( view . replaceSwitchClass ( b , j , consts . folder . OPEN ) , view . replaceIcoClass ( b , k , consts . folder . OPEN ) , 0 == d || "" == a . view . expandSpeed ? ( i . show ( ) , tools . apply ( e , [ ] ) ) : b [ g ] && b [ g ] . length > 0 ? i . slideDown ( a . view . expandSpeed , e ) : ( i . show ( ) , tools . apply ( e , [ ] ) ) ) : ( view . replaceSwitchClass ( b , j , consts . folder . CLOSE ) , view . replaceIcoClass ( b , k , consts . folder . CLOSE ) , 0 != d && "" != a . view . expandSpeed && b [ g ] && b [ g ] . length > 0 ? i . slideUp ( a . view . expandSpeed , e ) : ( i . hide ( ) , tools . apply ( e , [ ] ) ) ) ) : tools . apply ( e , [ ] ) } , expandCollapseParentNode : function ( a , b , c , d , e ) { if ( b ) { if ( ! b . parentTId ) return void view . expandCollapseNode ( a , b , c , d , e ) ; view . expandCollapseNode ( a , b , c , d ) , b . parentTId && view . expandCollapseParentNode ( a , b . getParentNode ( ) , c , d , e ) } } , expandCollapseSonNode : function ( a , b , c , d , e ) { var f = data . getRoot ( a ) , g = a . data . key . children , h = b ? b [ g ] : f [ g ] , i = ! b && d , j = data . getRoot ( a ) . expandTriggerFlag ; if ( data . getRoot ( a ) . expandTriggerFlag = ! 1 , h ) for ( var k = 0 , l = h . length ; k < l ; k ++ ) h [ k ] && view . expandCollapseSonNode ( a , h [ k ] , c , i ) ; data . getRoot ( a ) . expandTriggerFlag = j , view . expandCollapseNode ( a , b , c , d , e ) } , isSelectedNode : function ( a , b ) { if ( ! b ) return ! 1 ; var c , d = data . getRoot ( a ) . curSelectedList ; for ( c = d . length - 1 ; c >= 0 ; c -- ) if ( b === d [ c ] ) return ! 0 ; return ! 1 } , makeDOMNodeIcon : function ( a , b , c ) { var d = data . getNodeName ( b , c ) , e = b . view . nameIsHTML ? d : d . replace ( /&/g , "&" ) . replace ( /</g , "<" ) . replace ( />/g , ">" ) ; a . push ( "<span id='" , c . tId , consts . id . ICON , "' title='' treeNode" , consts . id . ICON , " class='" , view . makeNodeIcoClass ( b , c ) , "' style='" , view . makeNodeIcoStyle ( b , c ) , "'></span><span id='" , c . tId , consts . id . SPAN , "'>" , e , "</span>" ) } , makeDOMNodeLine : function ( a , b , c ) { a . push ( "<span id='" , c . tId , consts . id . SWITCH , "' title='' class='" , view . makeNodeLineClass ( b , c ) , "' treeNode" , consts . id . SWITCH , "></span>" ) } , makeDOMNodeMainAfter : function ( a , b , c ) { a . push ( "</li>" ) } , makeDOMNodeMainBefore : function ( a , b , c ) { a . push ( "<li id='" , c . tId , "' class='" , consts . className . LEVEL , c . level , "' tabindex='0' hidefocus='true' treenode>" ) } , makeDOMNodeNameAfter : function ( a , b , c ) { a . push ( "</a>" ) } , makeDOMNodeNameBefore : function ( a , b , c ) { var d = data . getNodeTitle ( b , c ) , e = view . makeNodeUrl ( b , c ) , f = view . makeNodeFontCss ( b , c ) , g = [ ] ; for ( var h in f ) g . push ( h , ":" , f [ h ] , ";" ) ; a . push ( "<a id='" , c . tId , consts . id . A , "' class='" , consts . className . LEVEL , c . level , "' treeNode" , consts . id . A , ' onclick="' , c . click || "" , '" ' , null != e && e . length > 0 ? "href='" + e + "'" : "" , " target='" , view . makeNodeTarget ( c ) , "' style='" , g . join ( "" ) , "'" ) , tools . apply ( b . view . showTitle , [ b . treeId , c ] , b . view . showTitle ) && d && a . push ( "title='" , d . replace ( /'/g , "'" ) . replace ( /</g , "<" ) . replace ( />/g , ">" ) , "'" ) , a . push ( ">" ) } , makeNodeFontCss : function ( a , b ) { var c = tools . apply ( a . view . fontCss , [ a . treeId , b ] , a . view . fontCss ) ; return c && "function" != typeof c ? c : { } } , makeNodeIcoClass : function ( a , b ) { var c = [ "ico" ] ; return b . isAjaxing || ( c [ 0 ] = ( b . iconSkin ? b . iconSkin + "_" : "" ) + c [ 0 ] , b . isParent ? c . push ( b . open ? consts . folder . OPEN : consts . folder . CLOSE ) : c . push ( consts . folder . DOCU ) ) , consts . className . BUTTON + " " + c . join ( "_" ) } , makeNodeIcoStyle : function ( a , b ) { var c = [ ] ; if ( ! b . isAjaxing ) { var d = b . isParent && b . iconOpen && b . iconClose ? b . open ? b . iconOpen : b . iconClose : b . icon ; d && c . push ( "background:url(" , d , ") 0 0 no-repeat;" ) , 0 != a . view . showIcon && tools . apply ( a . view . showIcon , [ a . treeId , b ] , ! 0 ) || c . push ( "width:0px;height:0px;" ) } return c . join ( "" ) } , makeNodeLineClass : function ( a , b ) { var c = [ ] ; return a . view . showLine ? 0 == b . level && b . isFirstNode && b . isLastNode ? c . push ( consts . line . ROOT ) : 0 == b . level && b . isFirstNode ? c . push ( consts . line . ROOTS ) : b . isLastNode ? c . push ( consts . line . BOTTOM ) : c . push ( consts . line . CENTER ) : c . push ( consts . line . NOLINE ) , b . isParent ? c . push ( b . open ? consts . folder . OPEN : consts . folder . CLOSE ) : c . push
this . isValid ( ) && this . fireEvent ( BI . SingleSelectRadioItem . EVENT _CHANGE , this . isSelected ( ) , this ) } , setSelected : function ( a ) { BI . SingleSelectRadioItem . superclass . setSelected . apply ( this , arguments ) , this . radio . setSelected ( a ) } } ) , BI . SingleSelectRadioItem . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.single_select_radio_item" , BI . SingleSelectRadioItem ) , BI . ArrowNode = BI . inherit ( BI . NodeButton , { _defaultConfig : function ( ) { var a = BI . ArrowNode . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-arrow-group-node bi-list-item" , logic : { dynamic : ! 1 } , id : "" , pId : "" , open : ! 1 , height : 24 } ) } , _init : function ( ) { var a = this , b = this . options ; BI . ArrowNode . superclass . _init . apply ( this , arguments ) , this . checkbox = BI . createWidget ( { type : "bi.arrow_group_node_checkbox" } ) , this . text = BI . createWidget ( { type : "bi.label" , textAlign : "left" , whiteSpace : "nowrap" , textHeight : b . height , height : b . height , hgap : b . hgap , text : b . text , value : b . value , py : b . py } ) , this . checkbox . on ( BI . Controller . EVENT _CHANGE , function ( b ) { b === BI . Events . CLICK && a . setSelected ( a . isSelected ( ) ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) ; var c = BI . LogicFactory . createLogicTypeByDirection ( BI . Direction . Left ) , d = BI . LogicFactory . createLogicItemsByDirection ( BI . Direction . Left , { width : 16 , el : this . checkbox } , this . text ) ; BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( c , BI . extend ( b . logic , { items : d } ) ) ) ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doClick : function ( ) { BI . ArrowNode . superclass . doClick . apply ( this , arguments ) , this . checkbox . setSelected ( this . isOpened ( ) ) } , setText : function ( a ) { BI . ArrowNode . superclass . setText . apply ( this , arguments ) , this . text . setText ( a ) } , setOpened : function ( a ) { BI . ArrowNode . superclass . setOpened . apply ( this , arguments ) , this . checkbox . setSelected ( a ) } } ) , BI . shortcut ( "bi.arrow_group_node" , BI . ArrowNode ) , BI . FirstPlusGroupNode = BI . inherit ( BI . NodeButton , { _defaultConfig : function ( ) { var a = BI . FirstPlusGroupNode . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-first-plus-group-node bi-list-item" , logic : { dynamic : ! 1 } , id : "" , pId : "" , open : ! 1 , height : 24 } ) } , _init : function ( ) { BI . FirstPlusGroupNode . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . checkbox = BI . createWidget ( { type : "bi.first_tree_node_checkbox" , stopPropagation : ! 0 } ) , this . text = BI . createWidget ( { type : "bi.label" , textAlign : "left" , whiteSpace : "nowrap" , textHeight : b . height , height : b . height , hgap : b . hgap , text : b . text , value : b . value , py : b . py , keyword : b . keyword } ) , this . checkbox . on ( BI . Controller . EVENT _CHANGE , function ( b ) { b === BI . Events . CLICK && ( this . isSelected ( ) ? a . triggerExpand ( ) : a . triggerCollapse ( ) ) } ) ; var c = BI . LogicFactory . createLogicTypeByDirection ( BI . Direction . Left ) , d = BI . LogicFactory . createLogicItemsByDirection ( BI . Direction . Left , { width : 24 , el : this . checkbox } , this . text ) ; BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( c , BI . extend ( b . logic , { items : d } ) ) ) ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doClick : function ( ) { BI . FirstPlusGroupNode . superclass . doClick . apply ( this , arguments ) , this . checkbox . setSelected ( this . isSelected ( ) ) } , setOpened : function ( a ) { BI . FirstPlusGroupNode . superclass . setOpened . apply ( this , arguments ) , BI . isNotNull ( this . checkbox ) && this . checkbox . setSelected ( a ) } } ) , BI . shortcut ( "bi.first_plus_group_node" , BI . FirstPlusGroupNode ) , BI . IconArrowNode = BI . inherit ( BI . NodeButton , { _defaultConfig : function ( ) { var a = BI . IconArrowNode . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-icon-arrow-node bi-list-item" , logic : { dynamic : ! 1 } , id : "" , pId : "" , open : ! 1 , height : 24 , iconHeight : 12 , iconWidth : 12 , iconCls : "" } ) } , _init : function ( ) { BI . IconArrowNode . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . checkbox = BI . createWidget ( { type : "bi.arrow_group_node_checkbox" , width : 24 , stopPropagation : ! 0 } ) ; var c = BI . createWidget ( { type : "bi.icon_label" , width : 24 , cls : b . iconCls , iconWidth : b . iconWidth , iconHeight : b . iconHeight } ) ; this . text = BI . createWidget ( { type : "bi.label" , textAlig
_defaultConfig : function ( ) { return BI . extend ( BI . CustomColorChooser . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-custom-color-chooser" , width : 227 , height : 245 } ) } , _init : function ( ) { BI . CustomColorChooser . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = BI . createWidget ( b . editor , { type : "bi.simple_color_picker_editor" } ) , this . editor . on ( BI . ColorPickerEditor . EVENT _CHANGE , function ( ) { a . setValue ( this . getValue ( ) ) } ) , this . farbtastic = BI . createWidget ( { type : "bi.farbtastic" } ) , this . farbtastic . on ( BI . Farbtastic . EVENT _CHANGE , function ( ) { a . setValue ( this . getValue ( ) ) } ) , BI . createWidget ( { type : "bi.vtape" , element : this , items : [ { type : "bi.absolute" , items : [ { el : this . editor , left : 0 , top : 0 , right : 0 } ] , height : 30 } , { type : "bi.absolute" , items : [ { el : this . farbtastic , left : 15 , right : 15 , top : 7 } ] , height : 215 } ] } ) } , setValue : function ( a ) { this . editor . setValue ( a ) , this . farbtastic . setValue ( a ) } , getValue : function ( ) { return this . editor . getValue ( ) } } ) , BI . CustomColorChooser . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.custom_color_chooser" , BI . CustomColorChooser ) , BI . ColorChooser = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . ColorChooser . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-color-chooser" , value : "" , height : 24 } ) } , _init : function ( ) { BI . ColorChooser . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . combo = BI . createWidget ( { type : "bi.combo" , element : this , container : b . container , adjustLength : 1 , isNeedAdjustWidth : ! 1 , isNeedAdjustHeight : ! 1 , el : BI . extend ( { type : b . width <= 24 ? "bi.color_chooser_trigger" : "bi.long_color_chooser_trigger" , ref : function ( b ) { a . trigger = b } , width : b . width - 2 , height : b . height - 2 } , b . el ) , popup : { el : BI . extend ( { type : "bi.color_chooser_popup" , ref : function ( b ) { a . colorPicker = b } , listeners : [ { eventName : BI . ColorChooserPopup . EVENT _VALUE _CHANGE , action : function ( ) { c ( ) , a . _isRGBColor ( a . colorPicker . getValue ( ) ) || a . combo . hideView ( ) } } , { eventName : BI . ColorChooserPopup . EVENT _CHANGE , action : function ( ) { c ( ) , a . combo . hideView ( ) } } ] } , b . popup ) , width : 230 } , value : b . value } ) ; var c = function ( ) { var b = a . colorPicker . getValue ( ) ; a . trigger . setValue ( b ) } ; this . combo . on ( BI . Combo . EVENT _AFTER _HIDEVIEW , function ( ) { a . fireEvent ( BI . ColorChooser . EVENT _CHANGE , arguments ) } ) } , _isRGBColor : function ( a ) { return BI . isNotEmptyString ( a ) && "transparent" !== a } , isViewVisible : function ( ) { return this . combo . isViewVisible ( ) } , hideView : function ( ) { this . combo . hideView ( ) } , showView : function ( ) { this . combo . showView ( ) } , setValue : function ( a ) { this . combo . setValue ( a ) } , getValue : function ( ) { return this . combo . getValue ( ) } } ) , BI . ColorChooser . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.color_chooser" , BI . ColorChooser ) , BI . ColorChooserPopup = BI . inherit ( BI . Widget , { props : { baseCls : "bi-color-chooser-popup" , width : 230 , height : 145 , simple : ! 1 } , render : function ( ) { var a = this , b = this . options ; this . colorEditor = BI . createWidget ( b . editor , { type : b . simple ? "bi.simple_color_picker_editor" : "bi.color_picker_editor" , value : b . value , cls : "bi-header-background bi-border-bottom" , height : 30 } ) , this . colorEditor . on ( BI . ColorPickerEditor . EVENT _CHANGE , function ( ) { a . setValue ( this . getValue ( ) ) , a . _dealStoreColors ( ) , a . fireEvent ( BI . ColorChooserPopup . EVENT _VALUE _CHANGE , arguments ) } ) , this . storeColors = BI . createWidget ( { type : "bi.color_picker" , cls : "bi-border-bottom bi-border-right" , items : [ this . _digestStoreColors ( this . _getStoreColors ( ) ) ] , width : 210 , height : 24 , value : b . value } ) , this . storeColors . on ( BI . ColorPicker . EVENT _CHANGE , function ( ) { a . setValue ( this . getValue ( ) [ 0 ] ) , a . _dealStoreColors ( ) , a . fireEvent ( BI . ColorChooserPopup . EVENT _CHANGE , arguments ) } ) , this . colorPicker = BI . createWidget ( { type : "bi.color_picker" , width : 210 , height : 50 , value : b . value } ) , this . colorPicker . on ( BI . ColorPicker . EVENT _CHANGE , function ( ) { a . setValue ( this . getValue ( ) [ 0 ] ) , a . _dealStoreColors ( ) , a . fireEvent ( BI . ColorChooserPopup . EVENT _CHANGE , arguments ) } ) , this . customColorChooser = BI . createWidget ( { type : "bi.custom_color_chooser" , editor : b . editor } ) ; var c = BI . createWidget ( { type : "bi.popup_panel" , buttons : [ BI . i18nText ( "BI-Basic_Cancel" ) , BI . i18nText ( "BI-Basic_Save" ) ] , title : BI . i18nText ( "BI-Custom_Color" ) , el : this . customColorChooser , stopPropagation : ! 1 , bgap : - 1 , rgap : 1 , lgap : 1 , minWidth : 227 } ) ; return this . more = BI . createWidget ( { type : "bi.combo"
height : 24 , handler : function ( b ) { a . fireEvent ( BI . TextBubblePopupBarView . EVENT _CHANGE , b ) } } , c ) } ) ; return { type : "bi.bubble_bar_popup_view" , ref : function ( ) { a . popup = this } , el : { type : "bi.label" , text : b . text , whiteSpace : "normal" , textAlign : "left" , ref : function ( ) { a . text = this } } , buttons : c } } , populate : function ( a ) { this . text . setText ( a || this . options . text ) } } ) , BI . TextBubblePopupBarView . EVENT _CHANGE = "EVENT_CLICK_TOOLBAR_BUTTON" , BI . shortcut ( "bi.text_bubble_bar_popup_view" , BI . TextBubblePopupBarView ) , BI . EditorIconCheckCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . EditorIconCheckCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseClass : "bi-check-editor-combo" , width : 100 , height : 24 , chooseType : BI . ButtonGroup . CHOOSE _TYPE _SINGLE , validationChecker : BI . emptyFn , quitChecker : BI . emptyFn , allowBlank : ! 0 , watermark : "" , errorText : "" } ) } , _init : function ( ) { BI . EditorIconCheckCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . trigger = BI . createWidget ( { type : "bi.editor_trigger" , items : b . items , height : b . height , validationChecker : b . validationChecker , quitChecker : b . quitChecker , allowBlank : b . allowBlank , watermark : b . watermark , errorText : b . errorText , value : b . value } ) , this . trigger . on ( BI . EditorTrigger . EVENT _CHANGE , function ( ) { a . popup . setValue ( this . getValue ( ) ) , a . fireEvent ( BI . EditorIconCheckCombo . EVENT _CHANGE ) } ) , this . popup = BI . createWidget ( { type : "bi.text_value_check_combo_popup" , chooseType : b . chooseType , items : b . items , value : b . value } ) , this . popup . on ( BI . TextValueCheckComboPopup . EVENT _CHANGE , function ( ) { a . setValue ( a . popup . getValue ( ) ) , a . editorIconCheckCombo . hideView ( ) , a . fireEvent ( BI . EditorIconCheckCombo . EVENT _CHANGE ) } ) , this . popup . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . editorIconCheckCombo = BI . createWidget ( { type : "bi.combo" , container : b . container , element : this , adjustLength : 2 , el : this . trigger , popup : { el : this . popup , maxHeight : 300 } } ) } , setValue : function ( a ) { this . editorIconCheckCombo . setValue ( a ) } , getValue : function ( ) { return this . trigger . getValue ( ) } , populate : function ( a ) { this . options . items = a , this . editorIconCheckCombo . populate ( a ) } } ) , BI . EditorIconCheckCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.editor_icon_check_combo" , BI . EditorIconCheckCombo ) , BI . IconCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . IconCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-icon-combo" , width : 24 , height : 24 , el : { } , popup : { } , minWidth : 100 , maxWidth : "auto" , maxHeight : 300 , direction : "bottom" , adjustLength : 3 , adjustXOffset : 0 , adjustYOffset : 0 , offsetStyle : "left" , chooseType : BI . ButtonGroup . CHOOSE _TYPE _SINGLE } ) } , _init : function ( ) { BI . IconCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . trigger = BI . createWidget ( b . el , { type : "bi.icon_combo_trigger" , iconCls : b . iconCls , title : b . title , items : b . items , width : b . width , height : b . height , iconWidth : b . iconWidth , iconHeight : b . iconHeight , value : b . value } ) , this . popup = BI . createWidget ( b . popup , { type : "bi.icon_combo_popup" , chooseType : b . chooseType , items : b . items , value : b . value } ) , this . popup . on ( BI . IconComboPopup . EVENT _CHANGE , function ( ) { a . setValue ( a . popup . getValue ( ) ) , a . iconCombo . hideView ( ) , a . fireEvent ( BI . IconCombo . EVENT _CHANGE ) } ) , this . popup . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . iconCombo = BI . createWidget ( { type : "bi.combo" , element : this , direction : b . direction , trigger : b . trigger , container : b . container , adjustLength : b . adjustLength , adjustXOffset : b . adjustXOffset , adjustYOffset : b . adjustYOffset , offsetStyle : b . offsetStyle , el : this . trigger , popup : { el : this . popup , maxWidth : b . maxWidth , maxHeight : b . maxHeight , minWidth : b . minWidth } } ) } , showView : function ( ) { this . iconCombo . showView ( ) } , hideView : function ( ) { this . iconCombo . hideView ( ) } , setValue : function ( a ) { this . trigger . setValue ( a ) , this . popup . setValue ( a ) } , getValue : function ( ) { var a = this . popup . getValue ( ) ; return BI . isNull ( a ) ? [ ] : BI . isArray ( a ) ? a : [ a ] } , populate : function ( a ) { this . options . items = a , this . iconCombo . populate ( a ) } } ) , BI . IconCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.icon_combo" , BI . IconCombo ) , BI . IconComboPopup = BI . inherit ( BI . Pane , { _defaultConfig : function ( ) { return BI . extend ( BI . IconComboPopup . supercl
} , setValue : function ( a ) { var b = this . options ; this . editor . setValue ( a ) , this . _checkText ( ) , BI . isKey ( b . keyword ) && this . text . doRedMark ( b . keyword ) } , getValue : function ( ) { return this . editor . getValue ( ) } , getState : function ( ) { return this . text . getValue ( ) } , setState : function ( a ) { this . _showHint ( ) , this . text . setValue ( a ) } } ) , BI . ShelterEditor . EVENT _CHANGE = "EVENT_CHANGE" , BI . ShelterEditor . EVENT _FOCUS = "EVENT_FOCUS" , BI . ShelterEditor . EVENT _BLUR = "EVENT_BLUR" , BI . ShelterEditor . EVENT _CLICK = "EVENT_CLICK" , BI . ShelterEditor . EVENT _KEY _DOWN = "EVENT_KEY_DOWN" , BI . ShelterEditor . EVENT _CLICK _LABEL = "EVENT_CLICK_LABEL" , BI . ShelterEditor . EVENT _START = "EVENT_START" , BI . ShelterEditor . EVENT _PAUSE = "EVENT_PAUSE" , BI . ShelterEditor . EVENT _STOP = "EVENT_STOP" , BI . ShelterEditor . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . ShelterEditor . EVENT _CHANGE _CONFIRM = "EVENT_CHANGE_CONFIRM" , BI . ShelterEditor . EVENT _VALID = "EVENT_VALID" , BI . ShelterEditor . EVENT _ERROR = "EVENT_ERROR" , BI . ShelterEditor . EVENT _ENTER = "EVENT_ENTER" , BI . ShelterEditor . EVENT _RESTRICT = "EVENT_RESTRICT" , BI . ShelterEditor . EVENT _SPACE = "EVENT_SPACE" , BI . ShelterEditor . EVENT _EMPTY = "EVENT_EMPTY" , BI . shortcut ( "bi.shelter_editor" , BI . ShelterEditor ) , BI . SignEditor = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { var a = BI . SignEditor . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-sign-editor" , hgap : 4 , vgap : 2 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 , validationChecker : BI . emptyFn , quitChecker : BI . emptyFn , allowBlank : ! 0 , watermark : "" , errorText : "" , height : 24 } ) } , _init : function ( ) { BI . SignEditor . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = BI . createWidget ( { type : "bi.editor" , height : b . height , hgap : b . hgap , vgap : b . vgap , lgap : b . lgap , rgap : b . rgap , tgap : b . tgap , bgap : b . bgap , value : b . value , validationChecker : b . validationChecker , quitChecker : b . quitChecker , allowBlank : b . allowBlank , watermark : b . watermark , errorText : b . errorText } ) , this . text = BI . createWidget ( { type : "bi.text_button" , cls : "sign-editor-text" , title : b . title , warningTitle : b . warningTitle , tipType : b . tipType , textAlign : "left" , height : b . height , hgap : b . hgap , handler : function ( ) { a . _showInput ( ) , a . editor . focus ( ) , a . editor . selectAll ( ) } } ) , this . text . on ( BI . TextButton . EVENT _CHANGE , function ( ) { BI . nextTick ( function ( ) { a . fireEvent ( BI . SignEditor . EVENT _CLICK _LABEL ) } ) } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . text , left : 0 , right : 0 , top : 0 , bottom : 0 } ] } ) , this . editor . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _FOCUS , function ( ) { a . fireEvent ( BI . SignEditor . EVENT _FOCUS , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _BLUR , function ( ) { a . fireEvent ( BI . SignEditor . EVENT _BLUR , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CLICK , function ( ) { a . fireEvent ( BI . SignEditor . EVENT _CLICK , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . SignEditor . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _KEY _DOWN , function ( b ) { a . fireEvent ( BI . SignEditor . EVENT _KEY _DOWN , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _VALID , function ( ) { a . fireEvent ( BI . SignEditor . EVENT _VALID , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CONFIRM , function ( ) { a . _showHint ( ) , a . _checkText ( ) , a . fireEvent ( BI . SignEditor . EVENT _CONFIRM , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _CHANGE _CONFIRM , function ( ) { a . _showHint ( ) , a . _checkText ( ) , a . fireEvent ( BI . SignEditor . EVENT _CHANGE _CONFIRM , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _START , function ( ) { a . fireEvent ( BI . SignEditor . EVENT _START , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _PAUSE , function ( ) { a . fireEvent ( BI . SignEditor . EVENT _PAUSE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _STOP , function ( ) { a . fireEvent ( BI . SignEditor . EVENT _STOP , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _SPACE , function ( ) { a . fireEvent ( BI . SignEditor . EVENT _SPACE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _ERROR , function ( ) { a . _checkText ( ) , a . fireEvent ( BI . SignEditor . EVENT _ERROR , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _ENTER , function ( ) { a . fireEvent ( BI . SignEditor . EVENT _ENTER , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _RESTRICT , function ( ) { a . fireEvent ( BI . SignEditor . EVENT _RESTRICT , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _EMPTY , function ( ) { a . fireEvent ( BI . SignEditor . EVEN
baseCls : "bi-lazy-loader" , el : { } } ) } , _init : function ( ) { var a = this , b = this . options ; BI . LazyLoader . superclass . _init . apply ( this , arguments ) ; var c = b . items . length ; this . loader = BI . createWidget ( { type : "bi.loader" , element : this , el : b . el , itemsCreator : function ( b , c ) { c ( a . _getNextItems ( b ) ) } , hasNext : function ( a ) { return a . count < c } } ) , this . loader . on ( BI . Loader . EVENT _CHANGE , function ( b ) { a . fireEvent ( BI . LazyLoader . EVENT _CHANGE , b ) } ) } , _getNextItems : function ( a ) { var b = this . options , c = b . items . length - this . _const . PAGE * ( a . times - 1 ) , d = BI . takeRight ( b . items , c ) , e = BI . take ( d , this . _const . PAGE ) ; return e } , populate : function ( a ) { this . loader . populate ( a ) } , addItems : function ( a ) { this . loader . addItems ( a ) } , empty : function ( ) { this . loader . empty ( ) } , setNotSelectedValue : function ( ) { this . loader . setNotSelectedValue . apply ( this . loader , arguments ) } , getNotSelectedValue : function ( ) { return this . loader . getNotSelectedValue ( ) } , setValue : function ( ) { this . loader . setValue . apply ( this . loader , arguments ) } , getValue : function ( ) { return this . loader . getValue . apply ( this . loader , arguments ) } , getAllButtons : function ( ) { return this . loader . getAllButtons ( ) } , getAllLeaves : function ( ) { return this . loader . getAllLeaves ( ) } , getSelectedButtons : function ( ) { return this . loader . getSelectedButtons ( ) } , getNotSelectedButtons : function ( ) { return this . loader . getNotSelectedButtons ( ) } , getIndexByValue : function ( a ) { return this . loader . getIndexByValue ( a ) } , getNodeById : function ( a ) { return this . loader . getNodeById ( a ) } , getNodeByValue : function ( a ) { return this . loader . getNodeByValue ( a ) } } ) , BI . LazyLoader . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.lazy_loader" , BI . LazyLoader ) , BI . ListLoader = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . ListLoader . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-list-loader" , isDefaultInit : ! 0 , el : { type : "bi.button_group" } , items : [ ] , itemsCreator : BI . emptyFn , onLoaded : BI . emptyFn , count : ! 1 , next : { } , hasNext : BI . emptyFn } ) } , _nextLoad : function ( ) { var a = this , b = this . options ; this . next . setLoading ( ) , b . itemsCreator . apply ( this , [ { times : ++ this . times } , function ( ) { a . next . setLoaded ( ) , a . addItems . apply ( a , arguments ) } ] ) } , _init : function ( ) { BI . ListLoader . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; b . itemsCreator === ! 1 && ( b . next = ! 1 ) , this . button _group = BI . createWidget ( b . el , { type : "bi.button_group" , element : this , chooseType : 0 , items : b . items , behaviors : { } , layouts : [ { type : "bi.vertical" } ] } ) , this . button _group . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , b === BI . Events . CLICK && a . fireEvent ( BI . ListLoader . EVENT _CHANGE , d ) } ) , b . next !== ! 1 && ( this . next = BI . createWidget ( BI . extend ( { type : "bi.loading_bar" } , b . next ) ) , this . next . on ( BI . Controller . EVENT _CHANGE , function ( b ) { b === BI . Events . CLICK && a . _nextLoad ( ) } ) ) , BI . createWidget ( { type : "bi.vertical" , element : this , items : [ this . next ] } ) , b . isDefaultInit && BI . isEmpty ( b . items ) && BI . nextTick ( BI . bind ( function ( ) { this . populate ( ) } , this ) ) , BI . isNotEmptyArray ( b . items ) && this . populate ( b . items ) } , hasNext : function ( ) { var a = this . options ; return BI . isNumber ( a . count ) ? this . count < a . count : ! ! a . hasNext . apply ( this , [ { times : this . times , count : this . count } ] ) } , addItems : function ( a ) { this . count += a . length , BI . isObject ( this . next ) && ( this . options . items = this . options . items . concat ( a ) , this . hasNext ( ) ? this . next . setLoaded ( ) : this . next . setEnd ( ) ) , this . button _group . addItems . apply ( this . button _group , arguments ) , this . next . element . appendTo ( this . element ) } , populate : function ( a ) { var b = this , c = this . options ; return 0 === arguments . length && BI . isFunction ( c . itemsCreator ) ? void c . itemsCreator . apply ( this , [ { times : 1 } , function ( ) { if ( 0 === arguments . length ) throw new Error ( "参数不能为空" ) ; b . populate . apply ( b , arguments ) , c . onLoaded ( ) } ] ) : ( this . options . items = a , this . times = 1 , this . count = 0 , this . count += a . length , BI . isObject ( this . next ) && ( this . hasNext ( ) ? this . next . setLoaded ( ) : this . next . invisible ( ) ) , BI . DOM . hang ( [ this . next ] ) , this . button _group . populate . apply ( this . button _group , arguments ) , void this . next . element . appendTo ( this . element ) ) } , empty : function ( ) { BI . DOM . hang ( [ this . next ] ) , this . button _group . empty ( ) , this . next . element . appendTo ( this . element ) , BI . each ( [ this . next ] , function ( a , b ) { b && b . setVisible ( ! 1 ) } ) } , setNotSelectedValue : function ( ) { this . button _group . setNotSelectedVal
} } ) , BI . EditorTrigger . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.editor_trigger" , BI . EditorTrigger ) , BI . IconTrigger = BI . inherit ( BI . Trigger , { _defaultConfig : function ( ) { return BI . extend ( BI . IconTrigger . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-icon-trigger" , extraCls : "pull-down-font" , el : { } , height : 24 } ) } , _init : function ( ) { var a = this . options ; BI . IconTrigger . superclass . _init . apply ( this , arguments ) , this . iconButton = BI . createWidget ( a . el , { type : "bi.trigger_icon_button" , element : this , width : a . width , height : a . height , extraCls : a . extraCls } ) } } ) , BI . shortcut ( "bi.icon_trigger" , BI . IconTrigger ) , BI . IconTextTrigger = BI . inherit ( BI . Trigger , { _const : { hgap : 4 } , _defaultConfig : function ( ) { var a = BI . IconTextTrigger . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-text-trigger" , height : 24 , iconHeight : null , iconWidth : null , textCls : "" } ) } , _init : function ( ) { BI . IconTextTrigger . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . _const ; this . text = BI . createWidget ( { type : "bi.label" , cls : "select-text-label" + ( BI . isKey ( b . textCls ) ? " " + b . textCls : "" ) , textAlign : "left" , height : b . height , text : b . text } ) , this . trigerButton = BI . createWidget ( { type : "bi.trigger_icon_button" , width : b . triggerWidth || b . height } ) , BI . createWidget ( { element : this , type : "bi.htape" , ref : function ( b ) { a . wrapper = b } , items : [ { el : { type : "bi.icon_change_button" , cls : "icon-combo-trigger-icon" , iconCls : b . iconCls , ref : function ( b ) { a . icon = b } , iconHeight : b . iconHeight , iconWidth : b . iconWidth , disableSelected : ! 0 } , width : BI . isEmptyString ( b . iconCls ) ? 0 : b . iconWrapperWidth || b . height } , { el : this . text , lgap : BI . isEmptyString ( b . iconCls ) ? 5 : 0 } , { el : this . trigerButton , width : b . triggerWidth || b . height } ] } ) } , setValue : function ( a ) { this . text . setValue ( a ) } , setIcon : function ( a ) { var b = this . options ; this . icon . setIcon ( a ) ; var c = this . wrapper . attr ( "items" ) [ 0 ] , d = this . wrapper . attr ( "items" ) [ 1 ] ; BI . isNull ( a ) || BI . isEmptyString ( a ) ? 0 !== c . width && ( c . width = 0 , d . lgap = 5 , this . wrapper . resize ( ) ) : c . width !== ( b . iconWrapperWidth || b . height ) && ( c . width = b . iconWrapperWidth || b . height , d . lgap = 0 , this . wrapper . resize ( ) ) } , setTextCls : function ( a ) { var b = this . options , c = b . textCls ; b . textCls = a , this . text . element . removeClass ( c ) . addClass ( a ) } , setText : function ( a ) { this . text . setText ( a ) } } ) , BI . shortcut ( "bi.icon_text_trigger" , BI . IconTextTrigger ) , BI . SelectIconTextTrigger = BI . inherit ( BI . Trigger , { _defaultConfig : function ( ) { return BI . extend ( BI . SelectIconTextTrigger . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-select-text-trigger bi-border" , height : 24 , iconHeight : null , iconWidth : null , iconCls : "" } ) } , _init : function ( ) { this . options . height -= 2 , BI . SelectIconTextTrigger . superclass . _init . apply ( this , arguments ) ; var a = this . options , b = this . _digist ( a . value , a . items ) ; this . trigger = BI . createWidget ( { type : "bi.icon_text_trigger" , element : this , text : b . text , textCls : b . textCls , iconCls : b . iconCls , height : a . height , iconHeight : a . iconHeight , iconWidth : a . iconWidth , iconWrapperWidth : a . iconWrapperWidth } ) } , _digist : function ( a , b ) { var c = this . options ; a = BI . isArray ( a ) ? a : [ a ] ; var d , e = BI . Tree . transformToArrayFormat ( b ) ; return BI . any ( e , function ( b , c ) { if ( BI . deepContains ( a , c . value ) ) return d = { text : c . text || c . value , iconCls : c . iconCls } , ! 0 } ) , BI . isNotNull ( d ) ? { text : d . text , textCls : "" , iconCls : d . iconCls } : { text : BI . isFunction ( c . text ) ? c . text ( ) : c . text , textCls : "bi-water-mark" , iconCls : c . iconCls } } , setValue : function ( a ) { var b = this . _digist ( a , this . options . items ) ; this . trigger . setText ( b . text ) , this . trigger . setIcon ( b . iconCls ) , this . trigger . setTextCls ( b . textCls ) } , populate : function ( a ) { this . options . items = a } } ) , BI . shortcut ( "bi.select_icon_text_trigger" , BI . SelectIconTextTrigger ) , BI . TextTrigger = BI . inherit ( BI . Trigger , { _const : { hgap : 4 } , _defaultConfig : function ( ) { var a = BI . TextTrigger . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-text-trigger" , height : 24 , textCls : "" } ) } , _init : function ( ) { BI . TextTrigger . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = this . _const ; this . text = BI . createWidget ( { type : "bi.label" , cls : "select-text-label" + ( BI . isKey ( b . textCls ) ? " " + b . textCls : "" ) , textAlign : "left" , height : b . height , text : b . text , title : function ( ) { return a . text . getText ( ) } , tipType : b . tipType , warningTitle : b . w
} ) , this . datePicker . on ( BI . DatePicker . EVENT _CHANGE , function ( ) { var b = a . datePicker . getValue ( ) , c = BI . getMonthDays ( BI . getDate ( b . year , b . month - 1 , 1 ) ) , d = a . selectedTime . day || 0 ; d > c && ( d = c ) , a . selectedTime = BI . extend ( a . selectedTime , { year : b . year , month : b . month , day : d } ) , 0 !== d && ( a . selectedTime . day = d ) , a . calendar . setSelect ( BI . Calendar . getPageByDateJSON ( a . selectedTime ) ) , a . calendar . setValue ( a . selectedTime ) , 0 !== d && a . fireEvent ( BI . DateCalendarPopup . EVENT _CHANGE ) } ) , this . calendar = BI . createWidget ( { direction : "custom" , type : "bi.navigation" , tab : this . datePicker , cardCreator : BI . bind ( this . _createNav , this ) } ) , this . calendar . on ( BI . Navigation . EVENT _CHANGE , function ( ) { a . selectedTime = BI . extend ( a . calendar . getValue ( ) , a . timeSelect . getValue ( ) ) , a . calendar . empty ( ) , a . setValue ( a . selectedTime ) , a . fireEvent ( BI . DateCalendarPopup . EVENT _CHANGE ) } ) , BI . createWidget ( { type : "bi.vtape" , element : this , hgap : 10 , items : [ { el : this . datePicker , height : 40 } , this . calendar , { el : { type : "bi.dynamic_date_time_select" , cls : "bi-split-top" , ref : function ( ) { a . timeSelect = this } , listeners : [ { eventName : BI . DynamicDateTimeSelect . EVENT _CONFIRM , action : function ( ) { a . selectedTime = BI . extend ( a . calendar . getValue ( ) , a . timeSelect . getValue ( ) ) , a . fireEvent ( "EVENT_CHANGE" ) } } ] } , height : 40 } ] } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : { type : "bi.layout" , cls : "bi-split-top" } , height : 1 , top : 40 , left : 0 , right : 0 } ] } ) , this . setValue ( b . selectedTime ) } , _createNav : function ( a ) { var b = BI . Calendar . getDateJSONByPage ( a ) , c = BI . createWidget ( { type : "bi.calendar" , logic : { dynamic : ! 1 } , min : this . options . min , max : this . options . max , year : b . year , month : b . month , day : this . selectedTime . day } ) ; return c } , _getNewCurrentDate : function ( ) { var a = BI . getDate ( ) ; return { year : a . getFullYear ( ) , month : a . getMonth ( ) + 1 } } , _setCalenderValue : function ( a ) { this . calendar . setSelect ( BI . Calendar . getPageByDateJSON ( a ) ) , this . calendar . setValue ( a ) , this . selectedTime = BI . extend ( { } , this . timeSelect . getValue ( ) , a ) } , _setDatePicker : function ( a ) { BI . isNull ( a ) || BI . isNull ( a . year ) || BI . isNull ( a . month ) ? this . datePicker . setValue ( this . _getNewCurrentDate ( ) ) : this . datePicker . setValue ( a ) } , _setCalendar : function ( a ) { BI . isNull ( a ) || BI . isNull ( a . day ) ? ( this . calendar . empty ( ) , this . _setCalenderValue ( this . _getNewCurrentDate ( ) ) ) : this . _setCalenderValue ( a ) } , setValue : function ( a ) { a = a || { } , this . _setDatePicker ( a ) , this . _setCalendar ( a ) , this . timeSelect . setValue ( { hour : a . hour , minute : a . minute , second : a . second } ) } , getValue : function ( ) { return this . selectedTime } } ) , BI . shortcut ( "bi.static_date_time_pane_card" , BI . StaticDateTimePaneCard ) , BI . DynamicDateTimePane = BI . inherit ( BI . Widget , { props : { baseCls : "bi-dynamic-date-pane" } , render : function ( ) { var a = this , b = this . options ; return { type : "bi.vtape" , items : [ { el : { type : "bi.linear_segment" , cls : "bi-split-bottom" , height : 30 , items : BI . createItems ( [ { text : BI . i18nText ( "BI-Multi_Date_YMD" ) , value : BI . DynamicDateTimePane . Static } , { text : BI . i18nText ( "BI-Basic_Dynamic_Title" ) , value : BI . DynamicDateTimePane . Dynamic } ] , { textAlign : "center" } ) , listeners : [ { eventName : BI . ButtonGroup . EVENT _CHANGE , action : function ( ) { var b = this . getValue ( ) [ 0 ] ; switch ( a . dateTab . setSelect ( b ) , b ) { case BI . DynamicDateTimePane . Static : var c = BI . DynamicDateHelper . getCalculation ( a . dynamicPane . getValue ( ) ) ; a . ymd . setValue ( { year : c . getFullYear ( ) , month : c . getMonth ( ) + 1 , day : c . getDate ( ) } ) ; break ; case BI . DynamicDateTimePane . Dynamic : a . dynamicPane . setValue ( { year : 0 } ) } } } ] , ref : function ( ) { a . switcher = this } } , height : 30 } , { type : "bi.tab" , ref : function ( ) { a . dateTab = this } , showIndex : BI . DynamicDateTimePane . Static , cardCreator : function ( c ) { switch ( c ) { case BI . DynamicDateTimePane . Static : return { type : "bi.static_date_time_pane_card" , behaviors : b . behaviors , listeners : [ { eventName : "EVENT_CHANGE" , action : function ( ) { a . fireEvent ( "EVENT_CHANGE" ) } } ] , ref : function ( ) { a . ymd = this } } ; case BI . DynamicDateTimePane . Dynamic : default : return { type : "bi.dynamic_date_card" , listeners : [ { eventName : "EVENT_CHANGE" , action : function ( ) { a . _checkValue ( a . getValue ( ) ) && a . fireEvent ( "EVENT_CHANGE" ) } } ] , ref : function ( ) { a . dynamicPane = this } } } } } ] } } , mounted : function ( ) { this . setValue ( this . options . value ) } , _checkValueValid : function ( a ) { return BI . isNull ( a ) || BI . isEmptyObject ( a ) || BI . isEmptyString ( a ) } , _checkValue : function ( a ) { switch ( a . type ) { case BI . DynamicDateCombo . Dynamic : return BI . isNot
eventName : BI . TextButton . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . DynamicDatePopup . BUTTON _lABEL _EVENT _CHANGE ) } } ] } , { type : "bi.text_button" , cls : "bi-high-light bi-split-top" , textHeight : c . buttonHeight - 1 , shadow : ! 0 , text : BI . i18nText ( "BI-Basic_OK" ) , listeners : [ { eventName : BI . TextButton . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . DynamicDatePopup . BUTTON _OK _EVENT _CHANGE ) } } ] } ] ] } , height : 24 } ] } ) , this . setValue ( b . value ) } , _getTabJson : function ( ) { var a = this , b = this . options ; return { type : "bi.tab" , ref : function ( ) { a . dateTab = this } , tab : { type : "bi.linear_segment" , cls : "bi-split-bottom" , height : this . constants . tabHeight , items : BI . createItems ( [ { text : BI . i18nText ( "BI-Multi_Date_YMD" ) , value : BI . DynamicDateCombo . Static } , { text : BI . i18nText ( "BI-Basic_Dynamic_Title" ) , value : BI . DynamicDateCombo . Dynamic } ] , { textAlign : "center" } ) } , cardCreator : function ( c ) { switch ( c ) { case BI . DynamicDateCombo . Dynamic : return { type : "bi.dynamic_date_card" , listeners : [ { eventName : "EVENT_CHANGE" , action : function ( ) { a . _setInnerValue ( a . year , c ) } } ] , ref : function ( ) { a . dynamicPane = this } } ; case BI . DynamicDateCombo . Static : default : return { type : "bi.date_calendar_popup" , behaviors : b . behaviors , min : a . options . min , max : a . options . max , listeners : [ { eventName : BI . DateCalendarPopup . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . DynamicDatePopup . EVENT _CHANGE ) } } ] , ref : function ( ) { a . ymd = this } } } } , listeners : [ { eventName : BI . Tab . EVENT _CHANGE , action : function ( ) { var b = a . dateTab . getSelect ( ) ; switch ( b ) { case BI . DynamicDateCombo . Static : var c = BI . DynamicDateHelper . getCalculation ( a . dynamicPane . getValue ( ) ) ; a . ymd . setValue ( { year : c . getFullYear ( ) , month : c . getMonth ( ) + 1 , day : c . getDate ( ) } ) , a . _setInnerValue ( ) ; break ; case BI . DynamicDateCombo . Dynamic : default : a . storeValue && a . storeValue . type === BI . DynamicDateCombo . Dynamic ? a . dynamicPane . setValue ( a . storeValue . value ) : a . dynamicPane . setValue ( { year : 0 } ) , a . _setInnerValue ( ) } } } ] } } , _setInnerValue : function ( ) { if ( this . dateTab . getSelect ( ) === BI . DynamicDateCombo . Static ) this . textButton . setValue ( BI . i18nText ( "BI-Multi_Date_Today" ) ) , this . textButton . setEnable ( ! 0 ) ; else { var a = BI . DynamicDateHelper . getCalculation ( this . dynamicPane . getValue ( ) ) ; a = BI . print ( a , "%Y-%X-%d" ) , this . textButton . setValue ( a ) , this . textButton . setEnable ( ! 1 ) } } , _checkValueValid : function ( a ) { return BI . isNull ( a ) || BI . isEmptyObject ( a ) || BI . isEmptyString ( a ) } , setValue : function ( a ) { this . storeValue = a ; var b , c , d = this ; switch ( a = a || { } , b = a . type || BI . DynamicDateCombo . Static , c = a . value || a , this . dateTab . setSelect ( b ) , b ) { case BI . DynamicDateCombo . Dynamic : this . dynamicPane . setValue ( c ) , d . _setInnerValue ( ) ; break ; case BI . DynamicDateCombo . Static : default : if ( this . _checkValueValid ( c ) ) { var e = BI . getDate ( ) ; this . ymd . setValue ( { year : e . getFullYear ( ) , month : e . getMonth ( ) + 1 , day : e . getDate ( ) } ) , this . textButton . setValue ( BI . i18nText ( "BI-Multi_Date_Today" ) ) } else this . ymd . setValue ( c ) , this . textButton . setValue ( BI . i18nText ( "BI-Multi_Date_Today" ) ) ; this . textButton . setEnable ( ! 0 ) } } , getValue : function ( ) { return { type : this . dateTab . getSelect ( ) , value : this . dateTab . getValue ( ) } } } ) , BI . DynamicDatePopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . DynamicDatePopup . BUTTON _OK _EVENT _CHANGE = "BUTTON_OK_EVENT_CHANGE" , BI . DynamicDatePopup . BUTTON _lABEL _EVENT _CHANGE = "BUTTON_lABEL_EVENT_CHANGE" , BI . DynamicDatePopup . BUTTON _CLEAR _EVENT _CHANGE = "BUTTON_CLEAR_EVENT_CHANGE" , BI . shortcut ( "bi.dynamic_date_popup" , BI . DynamicDatePopup ) , BI . DynamicDateTrigger = BI . inherit ( BI . Trigger , { _const : { hgap : 4 , vgap : 2 , yearLength : 4 , yearMonthLength : 6 , yearFullMonthLength : 7 , compareFormat : "%Y-%X-%d" } , props : { extraCls : "bi-date-trigger" , min : "1900-01-01" , max : "2099-12-31" , height : 24 , format : "" , allowEdit : ! 0 , watermark : "" } , _init : function ( ) { BI . DynamicDateTrigger . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = this . _const ; this . storeTriggerValue = "" , this . editor = BI . createWidget ( { type : "bi.sign_editor" , height : b . height , validationChecker : function ( c ) { var d = a . _getStandardDateStr ( c ) , e = d . match ( /\d+/g ) ; return ! BI . isKey ( b . format ) && a . _autoAppend ( c , e ) , a . _dateCheck ( d ) && BI . checkDateLegal ( d ) && a . _checkVoid ( { year : 0 | e [ 0 ] , month : 0 | e [ 1 ] , day : 0 | e [ 2 ] } ) } , quitChecker : function ( ) { return ! 1 } , hgap : c . hgap , vgap : c . vgap , allowBlank : ! 0 , watermark : BI . isKey ( b . watermark ) ? b . watermark : BI . i18nText ( "BI-Basic_Unrestricted" ) , errorText : function ( ) { var
switch ( this . storeValue = a , BI . isNotNull ( a ) && ( b = a . type || BI . DynamicDateCombo . Static , c = a . value || a ) , b ) { case BI . DynamicDateCombo . Dynamic : var e = this . _getText ( c ) ; d = BI . DynamicDateHelper . getCalculation ( c ) , this . _setInnerValue ( d , e ) ; break ; case BI . DynamicDateCombo . Static : default : if ( BI . isNull ( c ) || BI . isNull ( c . day ) ) this . editor . setState ( "" ) , this . editor . setValue ( "" ) ; else { var f = BI . print ( BI . getDate ( c . year , c . month - 1 , c . day , c . hour || 0 , c . minute || 0 , c . second || 0 ) , this . _getFormatString ( ) ) ; this . editor . setState ( f ) , this . editor . setValue ( f ) } } } , getKey : function ( ) { return this . editor . getValue ( ) } , getValue : function ( ) { return this . storeValue } , isValid : function ( ) { return this . editor . isValid ( ) } } ) , BI . DynamicDateTimeTrigger . EVENT _BLUR = "EVENT_BLUR" , BI . DynamicDateTimeTrigger . EVENT _FOCUS = "EVENT_FOCUS" , BI . DynamicDateTimeTrigger . EVENT _START = "EVENT_START" , BI . DynamicDateTimeTrigger . EVENT _STOP = "EVENT_STOP" , BI . DynamicDateTimeTrigger . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . DynamicDateTimeTrigger . EVENT _CHANGE = "EVENT_CHANGE" , BI . DynamicDateTimeTrigger . EVENT _VALID = "EVENT_VALID" , BI . DynamicDateTimeTrigger . EVENT _ERROR = "EVENT_ERROR" , BI . DynamicDateTimeTrigger . EVENT _TRIGGER _CLICK = "EVENT_TRIGGER_CLICK" , BI . DynamicDateTimeTrigger . EVENT _KEY _DOWN = "EVENT_KEY_DOWN" , BI . shortcut ( "bi.dynamic_date_time_trigger" , BI . DynamicDateTimeTrigger ) , BI . SearchEditor = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { var a = BI . SearchEditor . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : "bi-search-editor bi-border bi-focus-shadow" , height : 24 , errorText : "" , watermark : BI . i18nText ( "BI-Basic_Search" ) , validationChecker : BI . emptyFn , quitChecker : BI . emptyFn } ) } , _init : function ( ) { this . options . height -= 2 , BI . SearchEditor . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = BI . createWidget ( { type : "bi.editor" , height : b . height , watermark : b . watermark , allowBlank : ! 0 , hgap : 1 , errorText : b . errorText , validationChecker : b . validationChecker , quitChecker : b . quitChecker , value : b . value } ) , this . clear = BI . createWidget ( { type : "bi.icon_button" , stopEvent : ! 0 , cls : "close-font" } ) , this . clear . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . setValue ( "" ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . STOPEDIT ) , a . fireEvent ( BI . SearchEditor . EVENT _CHANGE ) , a . fireEvent ( BI . SearchEditor . EVENT _CLEAR ) } ) , BI . createWidget ( { element : this , type : "bi.htape" , items : [ { el : { type : "bi.icon_label" , cls : "search-font" } , width : 24 } , { el : a . editor } , { el : this . clear , width : 24 } ] } ) , this . editor . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . Editor . EVENT _FOCUS , function ( ) { a . fireEvent ( BI . SearchEditor . EVENT _FOCUS ) } ) , this . editor . on ( BI . Editor . EVENT _BLUR , function ( ) { a . fireEvent ( BI . SearchEditor . EVENT _BLUR ) } ) , this . editor . on ( BI . Editor . EVENT _CLICK , function ( ) { a . fireEvent ( BI . SearchEditor . EVENT _CLICK ) } ) , this . editor . on ( BI . Editor . EVENT _CHANGE , function ( ) { a . _checkClear ( ) , a . fireEvent ( BI . SearchEditor . EVENT _CHANGE ) } ) , this . editor . on ( BI . Editor . EVENT _KEY _DOWN , function ( b ) { a . fireEvent ( BI . SearchEditor . EVENT _KEY _DOWN , b ) } ) , this . editor . on ( BI . Editor . EVENT _SPACE , function ( ) { a . fireEvent ( BI . SearchEditor . EVENT _SPACE ) } ) , this . editor . on ( BI . Editor . EVENT _BACKSPACE , function ( ) { a . fireEvent ( BI . SearchEditor . EVENT _BACKSPACE ) } ) , this . editor . on ( BI . Editor . EVENT _VALID , function ( ) { a . fireEvent ( BI . SearchEditor . EVENT _VALID ) } ) , this . editor . on ( BI . Editor . EVENT _ERROR , function ( ) { a . fireEvent ( BI . SearchEditor . EVENT _ERROR ) } ) , this . editor . on ( BI . Editor . EVENT _ENTER , function ( ) { a . fireEvent ( BI . SearchEditor . EVENT _ENTER ) } ) , this . editor . on ( BI . Editor . EVENT _RESTRICT , function ( ) { a . fireEvent ( BI . SearchEditor . EVENT _RESTRICT ) } ) , this . editor . on ( BI . Editor . EVENT _EMPTY , function ( ) { a . _checkClear ( ) , a . fireEvent ( BI . SearchEditor . EVENT _EMPTY ) } ) , this . editor . on ( BI . Editor . EVENT _REMOVE , function ( ) { a . fireEvent ( BI . SearchEditor . EVENT _REMOVE ) } ) , this . editor . on ( BI . Editor . EVENT _CONFIRM , function ( ) { a . fireEvent ( BI . SearchEditor . EVENT _CONFIRM ) } ) , this . editor . on ( BI . Editor . EVENT _CHANGE _CONFIRM , function ( ) { a . fireEvent ( BI . SearchEditor . EVENT _CHANGE _CONFIRM ) } ) , this . editor . on ( BI . Editor . EVENT _START , function ( ) { a . fireEvent ( BI . SearchEditor . EVENT _START ) } ) , this . editor . on ( BI . Editor . EVENT _PAUSE , function ( ) { a . fireEvent ( BI . SearchEditor . EVENT _PAUS
return { el : { type : "bi.multilayer_select_tree_trigger" , allowInsertValue : b . allowInsertValue , allowSearchValue : b . allowSearchValue , allowEdit : b . allowEdit , cls : "multilayer-select-tree-trigger" , ref : function ( b ) { a . trigger = b } , items : b . items , itemsCreator : b . itemsCreator , valueFormatter : b . valueFormatter , watermark : b . watermark , height : b . height - 2 , text : b . text , value : b . value , tipType : b . tipType , warningTitle : b . warningTitle , title : b . title , listeners : [ { eventName : BI . MultiLayerSelectTreeTrigger . EVENT _CHANGE , action : function ( ) { a . setValue ( this . getValue ( ) ) , a . combo . hideView ( ) , a . fireEvent ( BI . MultiLayerSelectTreeCombo . EVENT _CHANGE ) } } , { eventName : BI . MultiLayerSelectTreeTrigger . EVENT _FOCUS , action : function ( ) { a . fireEvent ( BI . MultiLayerSelectTreeCombo . EVENT _FOCUS ) } } , { eventName : BI . MultiLayerSelectTreeTrigger . EVENT _BLUR , action : function ( ) { a . fireEvent ( BI . MultiLayerSelectTreeCombo . EVENT _BLUR ) } } , { eventName : BI . MultiLayerSelectTreeTrigger . EVENT _SEARCHING , action : function ( ) { a . fireEvent ( BI . MultiLayerSelectTreeCombo . EVENT _SEARCHING ) } } , { eventName : BI . MultiLayerSelectTreeTrigger . EVENT _ADD _ITEM , action : function ( ) { var b = a . trigger . getSearcher ( ) . getKeyword ( ) ; a . combo . setValue ( [ b ] ) , a . combo . hideView ( ) } } ] } , hideChecker : function ( b ) { return 0 === a . triggerBtn . element . find ( b . target ) . length } , listeners : [ { eventName : BI . Combo . EVENT _AFTER _HIDEVIEW , action : function ( ) { a . trigger . stopEditing ( ) } } ] } } , _getSyncConfig : function ( ) { var a = this . options , b = this . _getBaseConfig ( ) ; return BI . extend ( b , a . allowEdit ? this . _getSearchConfig ( ) : { el : { type : "bi.single_tree_trigger" , text : a . text , height : a . height , items : a . items , value : a . value } } ) } , _getAsyncConfig : function ( ) { var a = this . _getBaseConfig ( ) ; return BI . extend ( a , this . _getSearchConfig ( ) ) } , setValue : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] , this . combo . setValue ( a ) } , getValue : function ( ) { return this . combo . getValue ( ) } , populate : function ( a ) { this . combo . populate ( a ) } } ) , BI . MultiLayerSelectTreeCombo . EVENT _SEARCHING = "EVENT_SEARCHING" , BI . MultiLayerSelectTreeCombo . EVENT _BLUR = "EVENT_BLUR" , BI . MultiLayerSelectTreeCombo . EVENT _FOCUS = "EVENT_FOCUS" , BI . MultiLayerSelectTreeCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multilayer_select_tree_combo" , BI . MultiLayerSelectTreeCombo ) , BI . MultiLayerSelectTreeInsertSearchPane = BI . inherit ( BI . Widget , { props : function ( ) { return { baseCls : "bi-multilayer-select-tree-popup" , tipText : BI . i18nText ( "BI-No_Selected_Item" ) , isDefaultInit : ! 1 , itemsCreator : BI . emptyFn , items : [ ] , value : "" } } , render : function ( ) { var a = this , b = this . options ; return this . tree = BI . createWidget ( { type : "bi.multilayer_select_level_tree" , isDefaultInit : b . isDefaultInit , items : b . items , itemsCreator : b . itemsCreator === BI . emptyFn ? BI . emptyFn : function ( c , d ) { b . itemsCreator ( c , function ( c ) { d ( c ) , a . setKeyword ( b . keywordGetter ( ) ) } ) } , keywordGetter : b . keywordGetter , value : b . value , scrollable : null , listeners : [ { eventName : BI . Controller . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } } , { eventName : BI . MultiLayerSelectLevelTree . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . MultiLayerSelectTreeInsertSearchPane . EVENT _CHANGE ) } } ] } ) , { type : "bi.vertical" , scrolly : ! 1 , scrollable : ! 0 , vgap : 5 , items : [ { type : "bi.text_button" , invisible : ! 0 , text : BI . i18nText ( "BI-Basic_Click_To_Add_Text" , "" ) , height : 24 , cls : "bi-high-light" , hgap : 5 , ref : function ( b ) { a . addNotMatchTip = b } , handler : function ( ) { a . fireEvent ( BI . MultiLayerSelectTreeInsertSearchPane . EVENT _ADD _ITEM , b . keywordGetter ( ) ) } } , this . tree ] } } , setKeyword : function ( a ) { var b = BI . isEmptyArray ( this . tree . getAllLeaves ( ) ) ; this . addNotMatchTip . setVisible ( b ) , b && this . addNotMatchTip . setText ( BI . i18nText ( "BI-Basic_Click_To_Add_Text" , a ) ) } , getValue : function ( ) { return this . tree . getValue ( ) } , setValue : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] , this . tree . setValue ( a ) } , populate : function ( a ) { this . tree . populate ( a ) } } ) , BI . MultiLayerSelectTreeInsertSearchPane . EVENT _ADD _ITEM = "EVENT_ADD_ITEM" , BI . MultiLayerSelectTreeInsertSearchPane . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multilayer_select_tree_insert_search_pane" , BI . MultiLayerSelectTreeInsertSearchPane ) , BI . MultiLayerSelectLevelTree = BI . inherit ( BI . Pane , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiLayerSelectLevelTree . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : " bi - multilayer - select - level - t
} , _getSearchItems : function ( a ) { var b = this , c = this . options , d = [ ] ; return this . tree . traverse ( function ( e ) { var f = BI . Func . getSearchResult ( b . tree . isRoot ( e ) ? [ ] : BI . concat ( [ e . text ] , c . allowSearchValue ? [ e . value ] : [ ] ) , a ) ; if ( f . find . length > 0 || f . match . length > 0 ) return d . push ( e ) , ! 0 } ) , this . _fillTreeStructure4Search ( d , "id" ) } , _createJson : function ( a , b ) { return { id : a . id , pId : a . pId , text : a . text , value : a . value , isParent : BI . isNotEmptyArray ( a . children ) , open : b } } , _getChildren : function ( a ) { var b = this ; a . children = a . children || [ ] ; var c = [ ] ; return BI . each ( a . children , function ( a , d ) { var e = b . _getChildren ( d ) ; c = c . concat ( e ) } ) , a . children . concat ( c ) } , _fillTreeStructure4Search : function ( a ) { var b = this , c = [ ] , d = [ ] ; for ( BI . each ( a , function ( a , e ) { d . push ( { pId : e . pId } ) , c . push ( e ) , c = c . concat ( b . _getChildren ( e ) ) } ) ; BI . isNotEmptyArray ( d ) ; ) { var e = d . pop ( ) , f = this . tree . search ( this . tree . getRoot ( ) , e . pId , "id" ) ; null != f && ( f . open = ! 0 , d . push ( { pId : f . pId } ) , c . push ( f ) ) } return BI . uniqBy ( BI . map ( c , function ( a , c ) { return b . _createJson ( c , c . open ) } ) , "id" ) } , _digest : function ( a ) { var b = this . options ; if ( b . itemsCreator === BI . emptyFn ) { var c = BI . find ( b . items , function ( b , c ) { return c . value === a } ) ; return BI . isNotNull ( c ) ? c . text : b . text } return b . valueFormatter ( a ) } , stopEditing : function ( ) { this . searcher . stopSearch ( ) } , getSearcher : function ( ) { return this . searcher } , populate : function ( a ) { this . options . items = a , this . _initData ( ) } , setValue : function ( a ) { this . editor . setState ( this . _digest ( a [ 0 ] ) ) } , getValue : function ( ) { return this . searcher . getValue ( ) } } ) , BI . MultiLayerSingleTreeTrigger . EVENT _FOCUS = "EVENT_FOCUS" , BI . MultiLayerSingleTreeTrigger . EVENT _BLUR = "EVENT_BLUR" , BI . MultiLayerSingleTreeTrigger . EVENT _SEARCHING = "EVENT_SEARCHING" , BI . MultiLayerSingleTreeTrigger . EVENT _STOP = "EVENT_STOP" , BI . MultiLayerSingleTreeTrigger . EVENT _START = "EVENT_START" , BI . MultiLayerSingleTreeTrigger . EVENT _CHANGE = "EVENT_CHANGE" , BI . MultiLayerSingleTreeTrigger . EVENT _ADD _ITEM = "EVENT_ADD_ITEM" , BI . shortcut ( "bi.multilayer_single_tree_trigger" , BI . MultiLayerSingleTreeTrigger ) , BI . MultiLayerSingleTreeFirstPlusGroupNode = BI . inherit ( BI . NodeButton , { _defaultConfig : function ( ) { var a = BI . MultiLayerSingleTreeFirstPlusGroupNode . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { extraCls : "bi-multilayer-single-tree-first-plus-group-node bi-list-item" , layer : 0 , id : "" , pId : "" , open : ! 1 , height : 24 } ) } , _init : function ( ) { BI . MultiLayerSingleTreeFirstPlusGroupNode . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . node = this . _createNode ( ) ; for ( var b = [ ] , c = a . pNode ; c ; ) c . isLastNode && b . push ( c . layer ) , c = c . pNode ; var d = [ ] ; BI . count ( 0 , a . layer , function ( c ) { d . push ( { type : "bi.layout" , cls : BI . contains ( b , c ) ? "" : "base-line-conn-background" , width : 12 , height : a . height } ) } ) , d . push ( this . node ) , BI . createWidget ( { type : "bi.td" , element : this , columnSize : BI . makeArray ( a . layer , 12 ) , items : [ d ] } ) } , doRedMark : function ( ) { this . node . doRedMark . apply ( this . node , arguments ) } , unRedMark : function ( ) { this . node . unRedMark . apply ( this . node , arguments ) } , doClick : function ( ) { BI . MultiLayerSingleTreeFirstPlusGroupNode . superclass . doClick . apply ( this , arguments ) , this . node . setSelected ( this . isSelected ( ) ) } , setOpened : function ( a ) { BI . MultiLayerSingleTreeFirstPlusGroupNode . superclass . setOpened . apply ( this , arguments ) , BI . isNotNull ( this . node ) && this . node . setOpened ( a ) } , _createNode : function ( ) { var a = this , b = this . options ; return BI . createWidget ( { type : "bi.first_plus_group_node" , cls : "bi-list-item-none" , logic : { dynamic : ! 0 } , id : b . id , pId : b . pId , open : b . open , isLastNode : b . isLastNode , height : b . height , hgap : b . hgap , text : b . text , value : b . value , py : b . py , keyword : b . keyword , listeners : [ { eventName : BI . Controller . EVENT _CHANGE , action : function ( b ) { b !== BI . Events . CLICK && a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } } ] } ) } } ) , BI . shortcut ( "bi.multilayer_single_tree_first_plus_group_node" , BI . MultiLayerSingleTreeFirstPlusGroupNode ) , BI . MultiLayerSingleTreeLastPlusGroupNode = BI . inherit ( BI . NodeButton , { _defaultConfig : function ( ) { var a = BI . MultiLayerSingleTreeLastPlusGroupNode . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { extraCls : "bi-multilayer-single-tree-last-plus-group-node bi-list-item" , layer : 0 , id : "" , pId : "" , open : ! 1 , height : 24 } ) } , _init : function ( ) { BI . MultiLayerSingleTreeLastPlusGroupNode . superclass . _init . apply (
delete g [ b ] ) } ) , f && ( c . storeValue . value = BI . values ( g ) ) , void c . _adjust ( b ) } var h = c . _makeMap ( c . storeValue . value ) , i = c . _makeMap ( a . value ) , j = [ ] ; BI . each ( e , function ( a , b ) { BI . isNotNull ( h [ e [ a ] ] ) && ( c . storeValue . assist && c . storeValue . assist . push ( h [ e [ a ] ] ) , delete h [ e [ a ] ] ) , BI . isNull ( i [ e [ a ] ] ) && ( BI . remove ( c . storeValue . assist , b ) , j . push ( b ) ) } ) , c . storeValue . value = j . concat ( BI . values ( h ) ) , c . _adjust ( b ) } ) } , _adjust : function ( a ) { function b ( ) { c . wants2Quit === ! 0 && ( c . fireEvent ( BI . MultiSelectInsertCombo . EVENT _CONFIRM ) , c . wants2Quit = ! 1 ) , c . requesting = ! 1 } var c = this ; this . options ; b ( ) , a ( ) } , _join : function ( a , b ) { var c = this ; this . options ; if ( this . _assertValue ( a ) , this . _assertValue ( this . storeValue ) , this . storeValue . type === a . type ) { var d = this . _makeMap ( this . storeValue . value ) ; BI . each ( a . value , function ( a , b ) { d [ b ] || ( c . storeValue . value . push ( b ) , BI . remove ( c . storeValue . assist , b ) , d [ b ] = b ) } ) ; var e = ! 1 ; return BI . each ( a . assist , function ( a , b ) { BI . isNotNull ( d [ b ] ) && ( e = ! 0 , c . storeValue . assist && c . storeValue . assist . push ( d [ b ] ) , delete d [ b ] ) } ) , e && ( this . storeValue . value = BI . values ( d ) ) , void c . _adjust ( b ) } this . _joinAll ( a , b ) } , _setStartValue : function ( a ) { this . _startValue = a , this . popup . setStartValue ( a ) } , setValue : function ( a ) { this . storeValue = a || { } , this . _assertValue ( this . storeValue ) , this . combo . setValue ( this . storeValue ) , this . numberCounter . setValue ( this . storeValue ) } , getValue : function ( ) { return BI . deepClone ( this . storeValue ) } , populate : function ( ) { this . combo . populate . apply ( this . combo , arguments ) } } ) , BI . extend ( BI . MultiSelectInsertCombo , { REQ _GET _DATA _LENGTH : 1 , REQ _GET _ALL _DATA : - 1 } ) , BI . MultiSelectInsertCombo . EVENT _FOCUS = "EVENT_FOCUS" , BI . MultiSelectInsertCombo . EVENT _BLUR = "EVENT_BLUR" , BI . MultiSelectInsertCombo . EVENT _STOP = "EVENT_STOP" , BI . MultiSelectInsertCombo . EVENT _SEARCHING = "EVENT_SEARCHING" , BI . MultiSelectInsertCombo . EVENT _CLICK _ITEM = "EVENT_CLICK_ITEM" , BI . MultiSelectInsertCombo . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . shortcut ( "bi.multi_select_insert_combo" , BI . MultiSelectInsertCombo ) , BI . MultiSelectInsertNoBarCombo = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectInsertNoBarCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-insert-combo" , itemsCreator : BI . emptyFn , valueFormatter : BI . emptyFn , height : 24 , attributes : { tabIndex : 0 } } ) } , _init : function ( ) { BI . MultiSelectInsertNoBarCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = function ( ) { BI . isKey ( a . _startValue ) && ( a . storeValue . type === BI . Selection . All ? BI . remove ( a . storeValue . value , a . _startValue ) : BI . pushDistinct ( a . storeValue . value , a . _startValue ) ) , a . trigger . getSearcher ( ) . setState ( a . storeValue ) , a . numberCounter . setButtonChecked ( a . storeValue ) } ; this . storeValue = { type : BI . Selection . Multi , value : b . value || [ ] } , this . requesting = ! 1 , this . trigger = BI . createWidget ( { type : "bi.multi_select_insert_trigger" , height : b . height , text : b . text , masker : { offset : { left : 0 , top : 0 , right : 0 , bottom : 25 } } , valueFormatter : b . valueFormatter , itemsCreator : BI . bind ( this . _itemsCreator4Trigger , this ) , value : { type : BI . Selection . Multi , value : b . value } } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _START , function ( ) { a . _setStartValue ( "" ) , this . getSearcher ( ) . setValue ( a . storeValue ) } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _STOP , function ( ) { a . _setStartValue ( "" ) } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _PAUSE , function ( ) { this . getSearcher ( ) . hasMatched ( ) && a . _addItem ( c ) } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _ADD _ITEM , function ( ) { this . getSearcher ( ) . hasMatched ( ) || ( a . _addItem ( c ) , a . _stopEditing ( ) ) } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _SEARCHING , function ( b ) { var d = BI . last ( b ) ; b = BI . initial ( b || [ ] ) , b . length > 0 && a . _joinKeywords ( b , function ( ) { BI . isEndWithBlank ( d ) ? ( a . combo . setValue ( a . storeValue ) , c ( ) , a . combo . populate ( ) , a . _setStartValue ( "" ) ) : ( a . combo . setValue ( a . storeValue ) , c ( ) ) } ) } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _CHANGE , function ( b , d ) { d instanceof BI . MultiSelectBar ? a . _joinAll ( this . getValue ( ) , function ( ) { c ( ) } ) : a . _join ( this . getValue ( ) , function ( ) { c ( ) } ) } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _BEFORE _COUNTER _POPUPVIEW , function ( ) { a . numberCounter . updateSelectedValue ( a . storeValue ) } ) , this . trigger . on ( BI . MultiSelectInsertTrigger . EVENT _COUNTER _CLICK , fun
itemsCreator : function ( c , d ) { b . itemsCreator . apply ( a , [ c , function ( c ) { d ( c ) , a . setKeyword ( b . keywordGetter ( ) ) } ] ) } , value : b . value } ) , this . loader . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . resizer = BI . createWidget ( { type : "bi.vtape" , element : this , items : [ { el : this . tooltipClick , height : 0 } , { el : this . loader } ] } ) , this . tooltipClick . setVisible ( ! 1 ) } , setKeyword : function ( a ) { var b , c = this . loader . getAllButtons ( ) . length > 0 && ( b = this . loader . getAllButtons ( ) [ 0 ] ) && a === b . getValue ( ) ; c !== this . tooltipClick . isVisible ( ) && ( this . tooltipClick . setVisible ( c ) , this . resizer . attr ( "items" ) [ 0 ] . height = c ? this . constants . height : 0 , this . resizer . resize ( ) ) } , isAllSelected : function ( ) { return this . loader . isAllSelected ( ) } , hasMatched : function ( ) { return this . tooltipClick . isVisible ( ) } , setValue : function ( a ) { this . loader . setValue ( a ) } , getValue : function ( ) { return this . loader . getValue ( ) } , empty : function ( ) { this . loader . empty ( ) } , populate : function ( a ) { this . loader . populate . apply ( this . loader , arguments ) } } ) , BI . MultiSelectSearchPane . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multi_select_search_pane" , BI . MultiSelectSearchPane ) , BI . MultiSelectCheckSelectedButton = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectCheckSelectedButton . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-check-selected-button" , itemsCreator : BI . emptyFn } ) } , _init : function ( ) { BI . MultiSelectCheckSelectedButton . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . numberCounter = BI . createWidget ( { type : "bi.text_button" , element : this , hgap : 4 , text : "0" , textAlign : "center" , textHeight : 16 , cls : "bi-high-light-background count-tip" } ) , this . numberCounter . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . numberCounter . on ( BI . TextButton . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiSelectCheckSelectedButton . EVENT _CHANGE , arguments ) } ) , this . numberCounter . element . hover ( function ( ) { a . numberCounter . setTag ( a . numberCounter . getText ( ) ) , a . numberCounter . setText ( BI . i18nText ( "BI-Check_Selected" ) ) } , function ( ) { a . numberCounter . setText ( a . numberCounter . getTag ( ) ) } ) , this . setVisible ( ! 1 ) , BI . isNotNull ( b . value ) && this . setValue ( b . value ) } , setValue : function ( a ) { var b = this , c = this . options ; return a || ( a = { } ) , a . type || ( a . type = BI . Selection . Multi ) , a . value || ( a . value = [ ] ) , a . type === BI . Selection . All ? void c . itemsCreator ( { type : BI . MultiSelectCombo . REQ _GET _DATA _LENGTH } , function ( c ) { var d = c . count - a . value . length ; BI . nextTick ( function ( ) { b . numberCounter . setText ( d ) , b . setVisible ( d > 0 ) } ) } ) : void BI . nextTick ( function ( ) { b . numberCounter . setText ( a . value . length ) , b . setVisible ( a . value . length > 0 ) } ) } , getValue : function ( ) { } } ) , BI . MultiSelectCheckSelectedButton . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multi_select_check_selected_button" , BI . MultiSelectCheckSelectedButton ) , BI . MultiSelectEditor = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectEditor . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-editor" , el : { } , watermark : BI . i18nText ( "BI-Basic_Search" ) } ) } , _init : function ( ) { BI . MultiSelectEditor . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = BI . createWidget ( b . el , { type : "bi.state_editor" , element : this , height : b . height , watermark : b . watermark , allowBlank : ! 0 , value : b . value , defaultText : b . text , text : b . text , tipType : b . tipType , warningTitle : b . warningTitle } ) , this . editor . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . editor . on ( BI . StateEditor . EVENT _PAUSE , function ( ) { a . fireEvent ( BI . MultiSelectEditor . EVENT _PAUSE ) } ) , this . editor . on ( BI . StateEditor . EVENT _FOCUS , function ( ) { a . fireEvent ( BI . MultiSelectEditor . EVENT _FOCUS ) } ) , this . editor . on ( BI . StateEditor . EVENT _BLUR , function ( ) { a . fireEvent ( BI . MultiSelectEditor . EVENT _BLUR ) } ) } , focus : function ( ) { this . editor . focus ( ) } , blur : function ( ) { this . editor . blur ( ) } , setState : function ( a ) { this . editor . setState ( a ) } , setValue : function ( a ) { this . editor . setValue ( a ) } , setTipType : function ( a ) { this . editor . setTipType ( a ) } , getValue : function ( ) { var a = this . editor . getState ( ) ; return BI . isArray ( a ) && a . length > 0 ? a [ a . length - 1 ] : "" } , getKeywords : function ( ) { var a = this . editor . g
REQ _GET _ALL _DATA : - 1 } ) , BI . MultiSelectList . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multi_select_list" , BI . MultiSelectList ) , BI . MultiSelectTree = BI . inherit ( BI . Single , { _constant : { EDITOR _HEIGHT : 24 } , _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectTree . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-tree" , itemsCreator : BI . emptyFn } ) } , _init : function ( ) { BI . MultiSelectTree . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . storeValue = { value : { } } , this . adapter = BI . createWidget ( { type : "bi.multi_select_tree_popup" , itemsCreator : b . itemsCreator } ) , this . adapter . on ( BI . MultiSelectTreePopup . EVENT _CHANGE , function ( ) { a . searcher . isSearching ( ) ? a . storeValue = { value : a . searcherPane . getValue ( ) } : a . storeValue = { value : a . adapter . getValue ( ) } , a . setSelectedValue ( a . storeValue . value ) , a . fireEvent ( BI . MultiSelectTree . EVENT _CHANGE ) } ) , this . searcherPane = BI . createWidget ( { type : "bi.multi_tree_search_pane" , cls : "bi-border-left bi-border-right bi-border-bottom" , keywordGetter : function ( ) { return a . searcher . getKeyword ( ) } , itemsCreator : function ( c , d ) { c . keyword = a . searcher . getKeyword ( ) , b . itemsCreator ( c , d ) } } ) , this . searcherPane . setVisible ( ! 1 ) , this . searcher = BI . createWidget ( { type : "bi.searcher" , isAutoSearch : ! 1 , isAutoSync : ! 1 , onSearch : function ( b , c ) { c ( { keyword : a . searcher . getKeyword ( ) } ) } , adapter : this . adapter , popup : this . searcherPane , masker : ! 1 , listeners : [ { eventName : BI . Searcher . EVENT _START , action : function ( ) { a . _showSearcherPane ( ) } } , { eventName : BI . Searcher . EVENT _STOP , action : function ( ) { a . _showAdapter ( ) , BI . nextTick ( function ( ) { a . adapter . populate ( ) } ) } } , { eventName : BI . Searcher . EVENT _CHANGE , action : function ( ) { a . searcher . isSearching ( ) ? a . storeValue = { value : a . searcherPane . getValue ( ) } : a . storeValue = { value : a . adapter . getValue ( ) } , a . setSelectedValue ( a . storeValue . value ) , a . fireEvent ( BI . MultiSelectTree . EVENT _CHANGE ) } } , { eventName : BI . Searcher . EVENT _PAUSE , action : function ( ) { a . _showAdapter ( ) } } ] } ) , BI . createWidget ( { type : "bi.vtape" , element : this , items : [ { el : this . searcher , height : this . _constant . EDITOR _HEIGHT } , { el : this . adapter , height : "fill" } ] } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . searcherPane , top : this . _constant . EDITOR _HEIGHT , bottom : 0 , left : 0 , right : 0 } ] } ) } , _showAdapter : function ( ) { this . adapter . setVisible ( ! 0 ) , this . searcherPane . setVisible ( ! 1 ) } , _showSearcherPane : function ( ) { this . searcherPane . setVisible ( ! 0 ) , this . adapter . setVisible ( ! 1 ) } , resize : function ( ) { } , setSelectedValue : function ( a ) { this . storeValue . value = a || { } , this . adapter . setSelectedValue ( a ) , this . searcherPane . setSelectedValue ( a ) , this . searcher . setValue ( { value : a || { } } ) } , setValue : function ( a ) { this . adapter . setValue ( a ) } , stopSearch : function ( ) { this . searcher . stopSearch ( ) } , updateValue : function ( a ) { this . adapter . updateValue ( a ) } , getValue : function ( ) { return this . storeValue . value } , populate : function ( ) { this . searcher . populate . apply ( this . searcher , arguments ) , this . adapter . populate . apply ( this . adapter , arguments ) } } ) , BI . MultiSelectTree . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multi_select_tree" , BI . MultiSelectTree ) , BI . MultiSelectTreePopup = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectTreePopup . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-tree-popup bi-border-left bi-border-right bi-border-bottom" , itemsCreator : BI . emptyFn } ) } , _init : function ( ) { BI . MultiSelectTreePopup . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . popup = BI . createWidget ( { type : "bi.async_tree" , element : this , itemsCreator : b . itemsCreator } ) , this . popup . on ( BI . TreeView . EVENT _AFTERINIT , function ( ) { a . fireEvent ( BI . MultiSelectTreePopup . EVENT _AFTER _INIT ) } ) , this . popup . on ( BI . TreeView . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiSelectTreePopup . EVENT _CHANGE ) } ) } , hasChecked : function ( ) { return this . popup . hasChecked ( ) } , getValue : function ( ) { return this . popup . getValue ( ) } , setValue : function ( a ) { a || ( a = { } ) , this . popup . setValue ( a ) } , setSelectedValue : function ( a ) { a || ( a = { } ) , this . popup . setSelectedValue ( a ) } , updateValue : function ( a ) { this . popup . updateValue ( a ) , this . popup . refresh ( ) } , populate : function ( a ) { this . popup . stroke ( a ) } } ) , BI . MultiSelectTreePopup . EVENT _AFTER _INIT = "EVENT_AFTER_INIT" , BI . MultiSelectTreePopup . EVENT _CHANGE = "EVENT_CHANGE"
this . editor = BI . createWidget ( { type : "bi.multi_select_editor" , height : b . height , el : { type : "bi.simple_state_editor" , height : b . height } } ) , this . searcher = BI . createWidget ( { type : "bi.searcher" , element : this , isAutoSearch : ! 1 , isAutoSync : ! 1 , onSearch : function ( b , c ) { c ( { keyword : a . editor . getValue ( ) } ) } , el : this . editor , popup : BI . extend ( { type : "bi.multi_tree_search_pane" , keywordGetter : function ( ) { return a . editor . getValue ( ) } , itemsCreator : function ( c , d ) { c . keyword = a . editor . getValue ( ) , b . itemsCreator ( c , d ) } , value : b . value } , b . popup ) , adapter : b . adapter , masker : b . masker } ) , this . searcher . on ( BI . Searcher . EVENT _START , function ( ) { a . fireEvent ( BI . MultiListTreeSearcher . EVENT _START ) } ) , this . searcher . on ( BI . Searcher . EVENT _PAUSE , function ( ) { this . hasMatched ( ) , a . fireEvent ( BI . MultiListTreeSearcher . EVENT _PAUSE ) } ) , this . searcher . on ( BI . Searcher . EVENT _STOP , function ( ) { a . fireEvent ( BI . MultiListTreeSearcher . EVENT _STOP ) } ) , this . searcher . on ( BI . Searcher . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiListTreeSearcher . EVENT _CHANGE , arguments ) } ) , BI . isNotNull ( b . value ) && this . setState ( b . value ) } , adjustView : function ( ) { this . searcher . adjustView ( ) } , setAdapter : function ( a ) { this . searcher . setAdapter ( a ) } , isSearching : function ( ) { return this . searcher . isSearching ( ) } , stopSearch : function ( ) { this . searcher . stopSearch ( ) } , getKeyword : function ( ) { return this . editor . getValue ( ) } , hasMatched : function ( ) { return this . searcher . hasMatched ( ) } , hasChecked : function ( ) { return this . searcher . getView ( ) && this . searcher . getView ( ) . hasChecked ( ) } , setState : function ( a ) { var b = this . options ; a || ( a = { } ) , a . value || ( a . value = [ ] ) ; var c = 0 ; if ( BI . isNumber ( a ) ) this . editor . setState ( a ) ; else if ( 0 === BI . size ( a . value ) ) this . editor . setState ( BI . Selection . None ) ; else { var d = "" ; BI . each ( a . value , function ( a , e ) { var f = BI . last ( e ) ; d += ( b . valueFormatter ( f + "" ) || f ) + "; " , c ++ } ) , c > 20 ? this . editor . setState ( BI . Selection . Multi ) : this . editor . setState ( d ) } } , setValue : function ( a ) { this . setState ( a ) , this . searcher . setValue ( a ) } , getKey : function ( ) { return this . editor . getValue ( ) } , getValue : function ( ) { return this . searcher . getValue ( ) } , populate : function ( a ) { this . searcher . populate . apply ( this . searcher , arguments ) } } ) , BI . MultiListTreeSearcher . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . MultiListTreeSearcher . EVENT _CHANGE = "EVENT_CHANGE" , BI . MultiListTreeSearcher . EVENT _START = "EVENT_START" , BI . MultiListTreeSearcher . EVENT _STOP = "EVENT_STOP" , BI . MultiListTreeSearcher . EVENT _PAUSE = "EVENT_PAUSE" , BI . shortcut ( "bi.multi_list_tree_searcher" , BI . MultiListTreeSearcher ) , BI . MultiTreeSearcher = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiTreeSearcher . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-tree-searcher" , itemsCreator : BI . emptyFn , valueFormatter : function ( a ) { return a } , popup : { } , adapter : null , masker : { } } ) } , _init : function ( ) { BI . MultiTreeSearcher . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = BI . createWidget ( { type : "bi.multi_select_editor" , watermark : b . watermark , height : b . height , el : { type : "bi.simple_state_editor" , text : b . text , height : b . height } , listeners : [ { eventName : BI . MultiSelectEditor . EVENT _FOCUS , action : function ( ) { a . fireEvent ( BI . MultiSelectSearcher . EVENT _FOCUS ) } } , { eventName : BI . MultiSelectEditor . EVENT _BLUR , action : function ( ) { a . fireEvent ( BI . MultiSelectSearcher . EVENT _BLUR ) } } ] } ) , this . searcher = BI . createWidget ( { type : "bi.searcher" , element : this , isAutoSearch : ! 1 , isAutoSync : ! 1 , onSearch : function ( b , c ) { c ( { keyword : a . editor . getValue ( ) } ) } , el : this . editor , popup : BI . extend ( { type : "bi.multi_tree_search_pane" , keywordGetter : function ( ) { return a . editor . getValue ( ) } , itemsCreator : function ( c , d ) { c . keyword = a . editor . getValue ( ) , b . itemsCreator ( c , d ) } , value : b . value } , b . popup ) , adapter : b . adapter , masker : b . masker } ) , this . searcher . on ( BI . Searcher . EVENT _START , function ( ) { a . fireEvent ( BI . MultiTreeSearcher . EVENT _START ) } ) , this . searcher . on ( BI . Searcher . EVENT _PAUSE , function ( ) { this . hasMatched ( ) , a . fireEvent ( BI . MultiTreeSearcher . EVENT _PAUSE ) } ) , this . searcher . on ( BI . Searcher . EVENT _STOP , function ( ) { a . fireEvent ( BI . MultiTreeSearcher . EVENT _STOP ) } ) , this . searcher . on ( BI . Searcher . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiTreeSearcher . EVENT _CHANGE , arguments ) } ) , this . searcher . on ( BI . Searcher . EVENT _SEARCHING , function ( ) { var b = this . getKeywords ( ) ; a .
} , setValue : function ( a ) { this . searcher . setValue ( a ) , this . numberCounter . setValue ( a ) } , setTipType : function ( a ) { this . searcher . setTipType ( a ) } , getKey : function ( ) { return this . searcher . getKey ( ) } , getValue : function ( ) { return this . searcher . getValue ( ) } } ) , BI . SearchMultiSelectTrigger . EVENT _TRIGGER _CLICK = "EVENT_TRIGGER_CLICK" , BI . SearchMultiSelectTrigger . EVENT _COUNTER _CLICK = "EVENT_COUNTER_CLICK" , BI . SearchMultiSelectTrigger . EVENT _CHANGE = "EVENT_CHANGE" , BI . SearchMultiSelectTrigger . EVENT _START = "EVENT_START" , BI . SearchMultiSelectTrigger . EVENT _STOP = "EVENT_STOP" , BI . SearchMultiSelectTrigger . EVENT _PAUSE = "EVENT_PAUSE" , BI . SearchMultiSelectTrigger . EVENT _SEARCHING = "EVENT_SEARCHING" , BI . SearchMultiSelectTrigger . EVENT _BEFORE _COUNTER _POPUPVIEW = "EVENT_BEFORE_COUNTER_POPUPVIEW" , BI . shortcut ( "bi.search_multi_select_trigger" , BI . SearchMultiSelectTrigger ) , BI . SearchMultiSelectLoader = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SearchMultiSelectLoader . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-loader" , logic : { dynamic : ! 0 } , el : { height : 400 } , valueFormatter : BI . emptyFn , itemsCreator : BI . emptyFn , onLoaded : BI . emptyFn } ) } , _init : function ( ) { BI . SearchMultiSelectLoader . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = ! 1 ; this . storeValue = b . value || { } , this . _assertValue ( this . storeValue ) , this . button _group = BI . createWidget ( { type : "bi.select_list" , element : this , logic : b . logic , el : BI . extend ( { onLoaded : b . onLoaded , el : { type : "bi.loader" , isDefaultInit : ! 1 , logic : { dynamic : ! 0 , scrolly : ! 0 } , el : { chooseType : BI . ButtonGroup . CHOOSE _TYPE _MULTI , behaviors : { redmark : function ( ) { return ! 0 } } , layouts : [ { type : "bi.vertical" } ] } } } , b . el ) , itemsCreator : function ( d , e ) { var f = a . _startValue ; a . storeValue && ( d = BI . extend ( d || { } , { selectedValues : BI . isKey ( f ) && a . storeValue . type === BI . Selection . Multi ? a . storeValue . value . concat ( f ) : a . storeValue . value } ) ) , b . itemsCreator ( d , function ( g ) { c = g . hasNext ; var h = [ ] ; if ( 1 === d . times && a . storeValue ) { var i = BI . map ( a . storeValue . value , function ( c , d ) { var e = b . valueFormatter ( d ) || d ; return { text : e , value : d , title : e , selected : a . storeValue . type === BI . Selection . Multi } } ) ; if ( BI . isKey ( a . _startValue ) && ! BI . contains ( a . storeValue . value , a . _startValue ) ) { var j = b . valueFormatter ( f ) || f ; i . unshift ( { text : j , value : f , title : j , selected : ! 0 } ) } h = a . _createItems ( i ) } e ( h . concat ( a . _createItems ( g . items ) ) , g . keyword || "" ) , 1 === d . times && a . storeValue && ( BI . isKey ( f ) && ( a . storeValue . type === BI . Selection . All ? BI . remove ( a . storeValue . value , f ) : BI . pushDistinct ( a . storeValue . value , f ) ) , a . setValue ( a . storeValue ) ) , 1 === d . times && a . _scrollToTop ( ) } ) } , hasNext : function ( ) { return c } , value : this . storeValue } ) , this . button _group . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . button _group . on ( BI . SelectList . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . SearchMultiSelectLoader . EVENT _CHANGE , arguments ) } ) } , _createItems : function ( a ) { return BI . createItems ( a , { type : "bi.multi_select_item" , logic : this . options . logic , cls : "bi-list-item-active" , height : 24 , selected : this . isAllSelected ( ) , iconWrapperWidth : 36 } ) } , _scrollToTop : function ( ) { var a = this ; BI . delay ( function ( ) { a . button _group . element . scrollTop ( 0 ) } , 30 ) } , isAllSelected : function ( ) { return this . button _group . isAllSelected ( ) } , _assertValue : function ( a ) { a || ( a = { } ) , a . type || ( a . type = BI . Selection . Multi ) , a . value || ( a . value = [ ] ) } , setStartValue : function ( a ) { this . _startValue = a } , setValue : function ( a ) { this . storeValue = a || { } , this . _assertValue ( this . storeValue ) , this . button _group . setValue ( this . storeValue ) } , getValue : function ( ) { return this . button _group . getValue ( ) } , getAllButtons : function ( ) { return this . button _group . getAllButtons ( ) } , empty : function ( ) { this . button _group . empty ( ) } , populate : function ( a ) { arguments [ 0 ] = this . _createItems ( a ) , this . button _group . populate . apply ( this . button _group , arguments ) } , resetHeight : function ( a ) { this . button _group . resetHeight ( a ) } , resetWidth : function ( a ) { this . button _group . resetWidth ( a ) } } ) , BI . SearchMultiSelectLoader . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.search_multi_select_loader" , BI . SearchMultiSelectLoader ) , BI . SearchMultiSelectPopupView = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SearchMultiSelectPopupView . superclass . _defaultConfig . apply ( this , argume
allowNoSelect : ! 1 , itemsCreator : BI . emptyFn , valueFormatter : BI . emptyFn , height : 24 , attributes : { tabIndex : 0 } , allowEdit : ! 0 } ) } , _init : function ( ) { BI . SingleSelectInsertCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = function ( ) { BI . isKey ( a . _startValue ) && ( a . storeValue = a . _startValue ) , a . trigger . getSearcher ( ) . setState ( a . storeValue ) } ; this . storeValue = b . value , this . requesting = ! 1 , this . trigger = BI . createWidget ( { type : "bi.single_select_trigger" , height : b . height , allowNoSelect : b . allowNoSelect , allowEdit : b . allowEdit , valueFormatter : b . valueFormatter , itemsCreator : function ( c , d ) { b . itemsCreator ( c , function ( b ) { 1 === c . times && BI . isNotNull ( c . keywords ) && a . trigger . setValue ( a . getValue ( ) ) , d . apply ( a , arguments ) } ) } , text : b . text , value : this . storeValue , searcher : { popup : { type : "bi.single_select_search_insert_pane" , listeners : [ { eventName : BI . SingleSelectSearchInsertPane . EVENT _ADD _ITEM , action : function ( ) { a . trigger . getSearcher ( ) . hasMatched ( ) || ( a . storeValue = a . trigger . getSearcher ( ) . getKeyword ( ) , c ( ) , a . _defaultState ( ) ) } } ] } } } ) , this . trigger . on ( BI . SingleSelectTrigger . EVENT _FOCUS , function ( ) { a . fireEvent ( BI . SingleSelectInsertCombo . EVENT _FOCUS ) } ) , this . trigger . on ( BI . SingleSelectTrigger . EVENT _BLUR , function ( ) { a . fireEvent ( BI . SingleSelectInsertCombo . EVENT _BLUR ) } ) , this . trigger . on ( BI . SingleSelectTrigger . EVENT _START , function ( ) { a . _setStartValue ( ) , this . getSearcher ( ) . setValue ( a . storeValue ) } ) , this . trigger . on ( BI . SingleSelectTrigger . EVENT _STOP , function ( ) { a . _setStartValue ( ) , a . fireEvent ( BI . SingleSelectInsertCombo . EVENT _STOP ) } ) , this . trigger . on ( BI . SingleSelectTrigger . EVENT _PAUSE , function ( ) { var b = this . getSearcher ( ) . getKeyword ( ) ; a . storeValue = b , a . combo . setValue ( a . storeValue ) , a . _setStartValue ( b ) , c ( ) , a . populate ( ) , a . _setStartValue ( ) } ) , this . trigger . on ( BI . SingleSelectTrigger . EVENT _SEARCHING , function ( b ) { var d = BI . last ( b ) ; b = BI . initial ( b || [ ] ) , b . length > 0 && a . _joinKeywords ( b , function ( ) { BI . isEndWithBlank ( d ) ? ( a . combo . setValue ( a . storeValue ) , c ( ) , a . combo . populate ( ) , a . _setStartValue ( ) ) : ( a . combo . setValue ( a . storeValue ) , c ( ) ) } ) , a . fireEvent ( BI . SingleSelectInsertCombo . EVENT _SEARCHING ) } ) , this . trigger . on ( BI . SingleSelectTrigger . EVENT _CHANGE , function ( b , d ) { a . storeValue = this . getValue ( ) , c ( ) , a . _defaultState ( ) } ) , this . trigger . on ( BI . SingleSelectTrigger . EVENT _COUNTER _CLICK , function ( ) { a . combo . isViewVisible ( ) || a . combo . showView ( ) } ) , this . combo = BI . createWidget ( { type : "bi.combo" , container : b . container , toggle : ! 1 , el : this . trigger , adjustLength : 1 , popup : { type : "bi.single_select_popup_view" , allowNoSelect : b . allowNoSelect , ref : function ( ) { a . popup = this , a . trigger . setAdapter ( this ) } , listeners : [ { eventName : BI . SingleSelectPopupView . EVENT _CHANGE , action : function ( ) { a . storeValue = this . getValue ( ) , a . _adjust ( function ( ) { c ( ) , a . _defaultState ( ) } ) , a . fireEvent ( BI . SingleSelectInsertCombo . EVENT _CLICK _ITEM ) } } ] , itemsCreator : b . itemsCreator , valueFormatter : b . valueFormatter , onLoaded : function ( ) { BI . nextTick ( function ( ) { a . combo . adjustWidth ( ) , a . combo . adjustHeight ( ) , a . trigger . getSearcher ( ) . adjustView ( ) } ) } } , hideChecker : function ( a ) { return 0 === d . element . find ( a . target ) . length } , value : b . value } ) , this . combo . on ( BI . Combo . EVENT _BEFORE _POPUPVIEW , function ( ) { this . setValue ( a . storeValue ) , BI . nextTick ( function ( ) { a . populate ( ) } ) } ) , this . wants2Quit = ! 1 , this . combo . on ( BI . Combo . EVENT _AFTER _HIDEVIEW , function ( ) { a . trigger . stopEditing ( ) , a . requesting === ! 0 ? a . wants2Quit = ! 0 : a . fireEvent ( BI . SingleSelectInsertCombo . EVENT _CONFIRM ) } ) ; var d = BI . createWidget ( { type : "bi.trigger_icon_button" , width : b . height , height : b . height , cls : "single-select-trigger-icon-button" } ) ; d . on ( BI . TriggerIconButton . EVENT _CHANGE , function ( ) { a . combo . isViewVisible ( ) ? a . combo . hideView ( ) : a . combo . showView ( ) } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . combo , left : 0 , right : 0 , top : 0 , bottom : 0 } , { el : d , right : 0 , top : 0 , bottom : 0 } ] } ) } , _defaultState : function ( ) { this . trigger . stopEditing ( ) , this . combo . hideView ( ) } , _assertValue : function ( a ) { } , _makeMap : function ( a ) { return BI . makeObject ( a || [ ] ) } , _joinKeywords : function ( a , b ) { function c ( c ) { var e = d . _makeMap ( c ) ; BI . each ( a , function ( a , b ) { BI . isNotNull ( e [ b ] ) && BI . remove ( d . storeValue . value , b ) } ) , d . _adjust ( b ) } var d = this , e = this . options ; this . _assertValue ( this . storeValue ) , this . requesting = ! 0 , e . itemsCreator ( { type : BI . SingleSelectIn
c . fireEvent ( BI . SingleSlider . EVENT _CHANGE ) } , window ) ; a . element . on ( "mousedown" , function ( c ) { a . isEnabled ( ) && ( h = this . offsetLeft , b ( h ) , i . captureMouseMoves ( c ) ) } ) } , _createTrackWrapper : function ( ) { return BI . createWidget ( { type : "bi.absolute" , items : [ { el : { type : "bi.vertical" , items : [ { type : "bi.absolute" , items : [ { el : this . grayTrack , top : 0 , left : 0 , width : "100%" } , { el : this . blueTrack , top : 0 , left : 0 , width : "0%" } ] } ] , hgap : 8 , height : 8 } , top : 8 , left : 0 , width : "100%" } ] } ) } , _checkValidation : function ( a ) { var b = this . options , c = ! 1 ; if ( BI . isNumeric ( a ) && ! ( BI . isNull ( a ) || a < this . min || a > this . max ) ) if ( b . digit === ! 1 ) c = ! 0 ; else { var d = ( a + "" ) . split ( "." ) [ 1 ] || "" ; c = d . length === b . digit } return c } , _setBlueTrack : function ( a ) { this . blueTrack . element . css ( { width : a + "%" } ) } , _setLabelPosition : function ( a ) { } , _setSliderPosition : function ( a ) { this . slider . element . css ( { left : a + "%" } ) } , _setAllPosition : function ( a ) { this . _setSliderPosition ( a ) , this . _setLabelPosition ( a ) , this . _setBlueTrack ( a ) } , _setVisible : function ( a ) { this . slider . setVisible ( a ) , this . label . setVisible ( a ) } , _getGrayTrackLength : function ( ) { return this . grayTrack . element [ 0 ] . scrollWidth } , _getValueByPercent : function ( a ) { var b = BI . parseInt ( 10 * a ) ; return ( this . max - this . min ) * b / 1e3 + this . min } , _getPercentByValue : function ( a ) { return 100 * ( a - this . min ) / ( this . max - this . min ) } , getValue : function ( ) { return this . value } , setValue : function ( a ) { var b = this . options ; a = BI . parseFloat ( a ) , a = b . digit === ! 1 ? a : a . toFixed ( b . digit ) , isNaN ( a ) || ( this . _checkValidation ( a ) && ( this . value = a ) , a > this . max && ( this . value = this . max ) , a < this . min && ( this . value = this . min ) ) } , _setEnable : function ( a ) { BI . SingleSlider . superclass . _setEnable . apply ( this , [ a ] ) , a ? this . blueTrack . element . removeClass ( "disabled-blue-track" ) . addClass ( "blue-track" ) : this . blueTrack . element . removeClass ( "blue-track" ) . addClass ( "disabled-blue-track" ) } , setMinAndMax : function ( a ) { var b = BI . parseFloat ( a . min ) , c = BI . parseFloat ( a . max ) ; ! isNaN ( b ) && ! isNaN ( c ) && c > b && ( this . min = b , this . max = c ) } , reset : function ( ) { this . _setVisible ( ! 1 ) , this . enable = ! 1 , this . value = "" , this . min = 0 , this . max = 0 , this . _setBlueTrack ( 0 ) } , populate : function ( ) { isNaN ( this . min ) || isNaN ( this . max ) || ( this . _setVisible ( ! 0 ) , this . enable = ! 0 , this . label . setErrorText ( BI . i18nText ( "BI-Basic_Please_Enter_Number_Between" , this . min , this . max ) ) , BI . isNumeric ( this . value ) || BI . isNotEmptyString ( this . value ) ? ( this . label . setValue ( this . value ) , this . _setAllPosition ( this . _getPercentByValue ( this . value ) ) ) : ( this . label . setValue ( this . max ) , this . _setAllPosition ( 100 ) ) ) } } ) , BI . SingleSlider . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.single_slider" , BI . SingleSlider ) , BI . SingleSliderLabel = BI . inherit ( BI . Single , { _constant : { EDITOR _WIDTH : 90 , EDITOR _HEIGHT : 20 , HEIGHT : 20 , SLIDER _WIDTH _HALF : 15 , SLIDER _WIDTH : 30 , SLIDER _HEIGHT : 30 , TRACK _HEIGHT : 24 } , _defaultConfig : function ( ) { return BI . extend ( BI . SingleSliderLabel . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-single-slider-label bi-slider-track" , digit : ! 1 , unit : "" } ) } , _init : function ( ) { BI . SingleSliderLabel . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = this . _constant ; this . enable = ! 1 , this . value = "" , this . grayTrack = BI . createWidget ( { type : "bi.layout" , cls : "gray-track" , height : 6 } ) , this . blueTrack = BI . createWidget ( { type : "bi.layout" , cls : "blue-track bi-high-light-background" , height : 6 } ) , this . track = this . _createTrackWrapper ( ) , this . slider = BI . createWidget ( { type : "bi.single_slider_button" } ) , this . _draggable ( this . slider ) ; var d = BI . createWidget ( { type : "bi.vertical" , items : [ { type : "bi.absolute" , items : [ this . slider ] } ] , hgap : c . SLIDER _WIDTH _HALF , height : c . SLIDER _HEIGHT } ) ; d . element . click ( function ( d ) { if ( a . enable && a . isEnabled ( ) ) { var e = d . clientX - a . element . offset ( ) . left - c . SLIDER _WIDTH _HALF , f = a . track . element [ 0 ] . scrollWidth , g = 0 ; e < 0 && ( g = 0 ) , e > 0 && e < f - c . SLIDER _WIDTH && ( g = 100 * e / a . _getGrayTrackLength ( ) ) , e > f - c . SLIDER _WIDTH && ( g = 100 ) ; var h = BI . parseFloat ( g . toFixed ( 1 ) ) ; a . _setAllPosition ( h ) ; var i = a . _getValueByPercent ( h ) ; i = b . digit === ! 1 ? i : i . toFixed ( b . digit ) , a . label . setText ( i + b . unit ) , a . value = i , a . fireEvent ( BI . SingleSliderLabel . EVENT _CHANGE ) } } ) , this . label = BI . createWidget ( { type : "bi.label" , height : c . HEIGHT , width : c . EDITOR _WIDTH - 2 } ) , this . _setVisible ( ! 1 ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : { type : "bi.vertical" , items : [ { type : "bi.absolute" , items : [ { el : th
b . element . addClass ( b . constants . timeErrorCls ) , BI . Bubbles . show ( "error" , BI . i18nText ( "BI-Time_Interval_Error_Text" ) , b , { offsetStyle : "center" } ) , b . fireEvent ( BI . TimeInterval . EVENT _ERROR ) ) : ( b . _clearTitle ( ) , b . element . removeClass ( b . constants . timeErrorCls ) ) } ) , d . on ( BI . DynamicDateTimeCombo . EVENT _BEFORE _POPUPVIEW , function ( ) { b . left . hidePopupView ( ) , b . right . hidePopupView ( ) } ) , d . on ( BI . DynamicDateTimeCombo . EVENT _CONFIRM , function ( ) { BI . Bubbles . hide ( "error" ) ; var a = b . left . getKey ( ) , c = b . right . getKey ( ) ; b . left . isValid ( ) && b . right . isValid ( ) && b . _check ( a , c ) && b . _compare ( a , c ) ? ( b . _setTitle ( BI . i18nText ( "BI-Time_Interval_Error_Text" ) ) , b . element . addClass ( b . constants . timeErrorCls ) , b . fireEvent ( BI . TimeInterval . EVENT _ERROR ) ) : ( b . _clearTitle ( ) , b . element . removeClass ( b . constants . timeErrorCls ) , b . fireEvent ( BI . TimeInterval . EVENT _CHANGE ) ) } ) , d } , _dateCheck : function ( a ) { return BI . print ( BI . parseDateTime ( a , "%Y-%x-%d %H:%M:%S" ) , "%Y-%x-%d %H:%M:%S" ) === a || BI . print ( BI . parseDateTime ( a , "%Y-%X-%d %H:%M:%S" ) , "%Y-%X-%d %H:%M:%S" ) === a || BI . print ( BI . parseDateTime ( a , "%Y-%x-%e %H:%M:%S" ) , "%Y-%x-%e %H:%M:%S" ) === a || BI . print ( BI . parseDateTime ( a , "%Y-%X-%e %H:%M:%S" ) , "%Y-%X-%e %H:%M:%S" ) === a } , _checkVoid : function ( a ) { var b = this . options ; return ! BI . checkDateVoid ( a . year , a . month , a . day , b . minDate , b . maxDate ) [ 0 ] } , _check : function ( a , b ) { var c = a . match ( /\d+/g ) , d = b . match ( /\d+/g ) ; return this . _dateCheck ( a ) && BI . checkDateLegal ( a ) && this . _checkVoid ( { year : c [ 0 ] , month : c [ 1 ] , day : c [ 2 ] } ) && this . _dateCheck ( b ) && BI . checkDateLegal ( b ) && this . _checkVoid ( { year : d [ 0 ] , month : d [ 1 ] , day : d [ 2 ] } ) } , _compare : function ( a , b ) { return a = BI . print ( BI . parseDateTime ( a , "%Y-%X-%d %H:%M:%S" ) , "%Y-%X-%d %H:%M:%S" ) , b = BI . print ( BI . parseDateTime ( b , "%Y-%X-%d %H:%M:%S" ) , "%Y-%X-%d %H:%M:%S" ) , BI . isNotNull ( a ) && BI . isNotNull ( b ) && a > b } , _setTitle : function ( a ) { this . left . setTitle ( a ) , this . right . setTitle ( a ) , this . label . setTitle ( a ) } , _clearTitle : function ( ) { this . left . setTitle ( "" ) , this . right . setTitle ( "" ) , this . label . setTitle ( "" ) } , setValue : function ( a ) { a = a || { } , this . left . setValue ( a . start ) , this . right . setValue ( a . end ) } , getValue : function ( ) { return { start : this . left . getValue ( ) , end : this . right . getValue ( ) } } } ) , BI . TimeInterval . EVENT _VALID = "EVENT_VALID" , BI . TimeInterval . EVENT _ERROR = "EVENT_ERROR" , BI . TimeInterval . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.time_interval" , BI . TimeInterval ) , ! function ( ) { BI . TimePeriods = BI . inherit ( BI . Single , { constants : { height : 24 , width : 24 , lgap : 15 , offset : 0 } , props : { extraCls : "bi-time-interval" , value : { } } , render : function ( ) { var a = this , b = this . options ; return { type : "bi.absolute" , height : this . constants . height , items : [ { el : { type : "bi.horizontal_auto" , items : [ { type : "bi.label" , height : this . constants . height , width : this . constants . width , text : "-" , ref : function ( b ) { a . label = b } } ] } , top : 0 , left : 0 , right : 0 , bottom : 0 } , { el : { type : "bi.center" , height : this . constants . height , items : [ { type : "bi.absolute" , items : [ { el : BI . extend ( { ref : function ( b ) { a . left = b } } , this . _createCombo ( b . value . start ) ) , left : this . constants . offset , right : this . constants . width / 2 , top : 0 , bottom : 0 } ] } , { type : "bi.absolute" , items : [ { el : BI . extend ( { ref : function ( b ) { a . right = b } } , this . _createCombo ( b . value . end ) ) , left : this . constants . width / 2 , right : this . constants . offset , top : 0 , bottom : 0 } ] } ] } , top : 0 , left : 0 , right : 0 , bottom : 0 } ] } } , _createCombo : function ( a ) { var b = this ; return { type : "bi.time_combo" , value : a , listeners : [ { eventName : BI . TimeCombo . EVENT _BEFORE _POPUPVIEW , action : function ( ) { b . left . hidePopupView ( ) , b . right . hidePopupView ( ) } } , { eventName : BI . TimeCombo . EVENT _CHANGE , action : function ( ) { b . fireEvent ( BI . TimePeriods . EVENT _CHANGE ) } } , { eventName : BI . TimeCombo . EVENT _CONFIRM , action : function ( ) { b . fireEvent ( BI . TimePeriods . EVENT _CONFIRM ) } } ] } } , setValue : function ( a ) { a = a || { } , this . left . setValue ( a . start ) , this . right . setValue ( a . end ) } , getValue : function ( ) { return { start : this . left . getValue ( ) , end : this . right . getValue ( ) } } } ) , BI . TimePeriods . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . TimePeriods . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.time_periods" , BI . TimePeriods ) } ( ) , BI . DynamicYearCard = BI . inherit ( BI . Widget , { props : { baseCls : "bi-year-card" } , render : function ( ) { var a = this ; return { type : "bi.vertical" , items : [ { type : "bi.label" , text : BI . i18nText ( "BI-Multi_Date_Relative_Current_Time" ) , textAlign : "left" , height : 24 } , { type : "bi.dynamic_date_param_item" , re
default : return c = c || { } , this . _getStaticTitle ( c ) } } , _doEditorConfirm : function ( a ) { var b = a . getValue ( ) ; BI . isNotNull ( b ) && a . setValue ( b ) ; var c = this . monthEditor . getValue ( ) ; this . storeValue = { type : BI . DynamicDateCombo . Static , value : { year : this . yearEditor . getValue ( ) , month : BI . isEmptyString ( this . monthEditor . getValue ( ) ) ? "" : c } } } , _yearCheck : function ( a ) { var b = BI . print ( BI . parseDateTime ( a , "%Y-%X-%d" ) , "%Y-%X-%d" ) ; return BI . print ( BI . parseDateTime ( a , "%Y" ) , "%Y" ) === a && b >= this . options . min && b <= this . options . max } , _autoSwitch : function ( a ) { var b = a . getValue ( ) ; BI . isNotEmptyString ( b ) && BI . checkDateLegal ( b ) && 4 === b . length && this . _yearCheck ( b ) && ( this . _doEditorConfirm ( a ) , this . fireEvent ( BI . DynamicYearMonthTrigger . EVENT _CONFIRM ) , this . monthEditor . focus ( ) ) } , _getText : function ( a ) { var b = "" ; return BI . isNotNull ( a . year ) && 0 !== BI . parseInt ( a . year ) && ( b += Math . abs ( a . year ) + BI . i18nText ( "BI-Basic_Year" ) + ( a . year < 0 ? BI . i18nText ( "BI-Basic_Front" ) : BI . i18nText ( "BI-Basic_Behind" ) ) ) , BI . isNotNull ( a . month ) && 0 !== BI . parseInt ( a . month ) && ( b += Math . abs ( a . month ) + BI . i18nText ( "BI-Basic_Month" ) + ( a . month < 0 ? BI . i18nText ( "BI-Basic_Front" ) : BI . i18nText ( "BI-Basic_Behind" ) ) ) , b } , _setInnerValue : function ( a , b ) { this . yearEditor . setValue ( a . getFullYear ( ) ) , this . monthEditor . setValue ( a . getMonth ( ) + 1 ) } , _getStaticTitle : function ( a ) { a = a || { } ; var b = ! ( BI . isNull ( a . year ) || BI . isEmptyString ( a . year ) ) , c = ! ( BI . isNull ( a . month ) || BI . isEmptyString ( a . month ) ) ; switch ( b << 1 | c ) { case 0 : return "" ; case 1 : return a . month ; case 2 : return a . year ; case 3 : default : return a . year + "-" + a . month } } , setValue : function ( a ) { var b , c , d = BI . getDate ( ) ; switch ( this . storeValue = a , BI . isNotNull ( a ) && ( b = a . type || BI . DynamicDateCombo . Static , c = a . value || a ) , b ) { case BI . DynamicDateCombo . Dynamic : var e = this . _getText ( c ) ; d = BI . DynamicDateHelper . getCalculation ( c ) , this . _setInnerValue ( d , e ) ; break ; case BI . DynamicDateCombo . Static : default : c = c || { } ; var f = BI . isNull ( c . month ) ? null : c . month ; this . yearEditor . setValue ( c . year ) , this . monthEditor . setValue ( f ) } } , getValue : function ( ) { return this . storeValue } , getKey : function ( ) { return this . yearEditor . getValue ( ) + "-" + this . monthEditor . getValue ( ) } , isValid : function ( ) { return this . yearEditor . isValid ( ) && this . monthEditor . isValid ( ) } } ) , BI . DynamicYearMonthTrigger . EVENT _VALID = "EVENT_VALID" , BI . DynamicYearMonthTrigger . EVENT _FOCUS = "EVENT_FOCUS" , BI . DynamicYearMonthTrigger . EVENT _ERROR = "EVENT_ERROR" , BI . DynamicYearMonthTrigger . EVENT _START = "EVENT_START" , BI . DynamicYearMonthTrigger . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . DynamicYearMonthTrigger . EVENT _STOP = "EVENT_STOP" , BI . DynamicYearMonthTrigger . EVENT _KEY _DOWN = "EVENT_KEY_DOWN" , BI . shortcut ( "bi.dynamic_year_month_trigger" , BI . DynamicYearMonthTrigger ) , BI . YearMonthInterval = BI . inherit ( BI . Single , { constants : { height : 24 , width : 25 , lgap : 15 , offset : - 15 , timeErrorCls : "time-error" } , props : { extraCls : "bi-year-month-interval" , minDate : "1900-01-01" , maxDate : "2099-12-31" } , _init : function ( ) { var a = this , b = this . options ; BI . YearMonthInterval . superclass . _init . apply ( this , arguments ) , b . value = b . value || { } , this . left = this . _createCombo ( b . value . start ) , this . right = this . _createCombo ( b . value . end ) , this . label = BI . createWidget ( { type : "bi.label" , height : this . constants . height , width : this . constants . width , text : "-" } ) , BI . createWidget ( { element : a , type : "bi.center" , hgap : 15 , height : this . constants . height , items : [ { type : "bi.absolute" , items : [ { el : a . left , left : this . constants . offset , right : 0 , top : 0 , bottom : 0 } ] } , { type : "bi.absolute" , items : [ { el : a . right , left : 0 , right : this . constants . offset , top : 0 , bottom : 0 } ] } ] } ) , BI . createWidget ( { type : "bi.horizontal_auto" , element : this , items : [ a . label ] } ) } , _createCombo : function ( a ) { var b = this , c = this . options , d = BI . createWidget ( { type : "bi.dynamic_year_month_combo" , behaviors : c . behaviors , value : a , listeners : [ { eventName : BI . DynamicYearMonthCombo . EVENT _BEFORE _POPUPVIEW , action : function ( ) { b . fireEvent ( BI . YearMonthInterval . EVENT _BEFORE _POPUPVIEW ) } } ] } ) ; return d . on ( BI . DynamicYearMonthCombo . EVENT _ERROR , function ( ) { b . _clearTitle ( ) , BI . Bubbles . hide ( "error" ) , b . element . removeClass ( b . constants . timeErrorCls ) , b . fireEvent ( BI . YearMonthInterval . EVENT _ERROR ) } ) , d . on ( BI . DynamicYearMonthCombo . EVENT _VALID , function ( ) { b . _checkValid ( ) } ) , d . on ( BI . DynamicYearMonthCombo . EVENT _FOCUS , function ( ) { b . _checkValid ( ) } ) , d . on ( BI . DynamicYearMonthCombo . EVENT _BEFORE _P
if ( BI . has ( c , a ) ) if ( 1 === c [ a ] [ 0 ] ) { var j = BI . clone ( b ) ; j . push ( a ) ; var k = e . _getChildCount ( j ) ; k > 0 && k !== c [ a ] [ 1 ] && ( i = ! 0 ) } else 2 === c [ a ] [ 0 ] && ( h = ! 0 ) ; var l ; return l = f || i || h ? ( h || f ) && ! g || BI . has ( c , a ) : BI . has ( c , a ) , [ l , i ] } var e = this , f = this . options , g = [ ] , h = a . times , i = a . checkState || { } , j = a . parentValues || [ ] , k = a . selectedValues || { } , l = { } ; l = c ( j , k ) ; for ( var m = this . _getChildren ( j ) , n = ( h - 1 ) * this . _const . perPage ; m [ n ] && n < h * this . _const . perPage ; n ++ ) { var o = d ( m [ n ] . value , j , l , i ) ; g . push ( { id : m [ n ] . id , pId : m [ n ] . pId , value : m [ n ] . value , text : m [ n ] . text , times : 1 , isParent : m [ n ] . getChildrenLength ( ) > 0 , checked : o [ 0 ] , halfCheck : o [ 1 ] , open : f . open } ) } if ( f . open ) { var p = [ ] ; BI . each ( m , function ( a , b ) { p = BI . concat ( p , e . _getAllChildren ( j . concat ( [ b . value ] ) ) ) } ) , BI . each ( p , function ( a , b ) { var f = c ( b . parentValues , k ) , h = d ( b . value , b . parentValues , f , i ) ; g . push ( { id : b . id , pId : b . pId , value : b . value , text : b . text , times : 1 , isParent : b . getChildrenLength ( ) > 0 , checked : h [ 0 ] , halfCheck : h [ 1 ] , open : e . options . open } ) } ) } 0 === j . length && 1 === h && ( g = BI . concat ( e . _getAddedValueNode ( j , k ) , g ) ) , BI . nextTick ( function ( ) { b ( { items : g , hasNext : m . length > h * e . _const . perPage } ) } ) } , _getAddedValueNode : function ( a , b ) { var c = this . _getChildren ( a ) ; return BI . map ( BI . difference ( BI . keys ( b ) , BI . map ( c , "value" ) ) , function ( a , b ) { return { id : BI . UUID ( ) , pId : c . length > 0 ? c [ 0 ] . pId : BI . UUID ( ) , value : b , text : b , times : 1 , isParent : ! 1 , checked : ! 0 , halfCheck : ! 1 } } ) } , _getNode : function ( a , b ) { for ( var c = a , d = 0 , e = b . length ; d < e ; d ++ ) { if ( null == c ) return null ; c = c [ b [ d ] ] } return c } , _deleteNode : function ( a , b ) { var c = b [ b . length - 1 ] , d = b . slice ( 0 , b . length - 1 ) , e = this . _getNode ( a , d ) ; if ( null != e && e [ c ] ) for ( delete e [ c ] ; d . length > 0 && BI . isEmpty ( e ) ; ) c = d [ d . length - 1 ] , d = d . slice ( 0 , d . length - 1 ) , e = this . _getNode ( a , d ) , null != e && delete e [ c ] } , _buildTree : function ( a , b ) { var c = a ; BI . each ( b , function ( a , b ) { BI . has ( c , b ) || ( c [ b ] = { } ) , c = c [ b ] } ) } , _isMatch : function ( a , b , c ) { var d = this . options , e = this . _getTreeNode ( a , b ) ; if ( ! e ) return ! 1 ; var f = BI . Func . getSearchResult ( [ e . text || e . value ] , c ) ; if ( d . allowSearchValue && e . value ) { var g = BI . Func . getSearchResult ( [ e . value ] , c ) ; return g . find . length > 0 || g . match . length > 0 || f . find . length > 0 || f . match . length > 0 } return f . find . length > 0 || f . match . length > 0 } , _getTreeNode : function ( a , b ) { var c , d = this , e = 0 ; return this . tree . traverse ( function ( f ) { if ( ! d . tree . isRoot ( f ) ) return ! ( e > a . length ) && ( e === a . length && f . value === b ? ( c = f , ! 1 ) : f . value !== a [ e ] || void e ++ ) } ) , c } , _getChildren : function ( a ) { if ( a . length > 0 ) var b = BI . last ( a ) , c = this . _getTreeNode ( a . slice ( 0 , a . length - 1 ) , b ) ; else var c = this . tree . getRoot ( ) ; return c . getChildren ( ) } , _getAllChildren : function ( a ) { var b = this . _getChildren ( a ) , c = [ ] . concat ( b ) ; BI . each ( c , function ( b , c ) { c . parentValues = a } ) ; for ( var d = BI . map ( b , function ( b , c ) { return { parentValues : a , value : c . value } } ) ; BI . isNotEmptyArray ( d ) ; ) { var e = d . shift ( ) , f = e . parentValues . concat ( e . value ) , g = this . _getChildren ( f ) ; BI . each ( g , function ( a , b ) { b . parentValues = f } ) , d = d . concat ( g ) , c = c . concat ( g ) } return c } , _getChildCount : function ( a ) { return this . _getChildren ( a ) . length } } ) , BI . AbstractListTreeValueChooser = BI . inherit ( BI . AbstractTreeValueChooser , { _reqDisplayTreeNode : function ( a , b ) { function c ( a , b , c ) { BI . each ( c , function ( a , b ) { BI . each ( b , function ( a , c ) { var g = c , h = e . _getTreeNode ( b . slice ( 0 , a ) , g ) ; BI . isNull ( h ) ? d ( { id : BI . UUID ( ) , text : g , value : g , isLeaf : ! 0 } , BI . UUID ( ) ) : ( BI . has ( f , h . id ) || d ( h , h . parent && h . parent . id ) , f [ h . id ] . isLeaf !== ! 0 && ( f [ h . id ] . isLeaf = a === b . length - 1 ) ) } ) } ) } function d ( a , b ) { f [ a . id ] = { id : a . id , pId : b , text : a . text , value : a . value , open : ! 0 , isLeaf : a . isLeaf } } var e = this , f = { } , g = a . selectedValues ; return null == g || BI . isEmpty ( g ) ? void b ( { } ) : ( c ( [ ] , this . tree . getRoot ( ) , g ) , void b ( { items : BI . values ( f ) } ) ) } , _reqInitTreeNode : function ( a , b ) { function c ( ) { var b = g . _getChildren ( [ ] ) , c = b . length ; if ( "" !== k ) { for ( var e = 0 , f = c ; e < f ; e ++ ) if ( b [ e ] . value === k ) { c = e + 1 ; break } } else c = 0 ; for ( var l = [ ] , m = c , f = b . length ; m < f ; m ++ ) { if ( l . length < g . _const . perPage ) var n = d ( 1 , [ ] , b [ m ] . value , h ) ; else if ( l . length === g . _const . perPage ) var n = d ( 1 , [ ] , b [ m ] . value , [ ] ) ; if ( n [ 0 ] === ! 0 && l . push ( b [ m ] . value ) , l . length > g . _const . perPage ) break } if ( 1 === a . times ) { var o = g . _getAddedValueNode ( [ ] , j ) ; h = BI . concat ( BI . filter ( o , function ( a , b ) { var c = BI . Func . getSearchResult ( [ b . text || b . value ] , i ) ; return c . find . length > 0 || c . match . length > 0 } ) , h ) } return l } function d ( a , b , c , h ) { if ( g . _isMatch ( b , c , i ) ) { var j = f ( c ) ; return e ( b , c , ! 1 , j , ! 0 , h ) , [ ! 0 , j ] } va