/*! fineui 2019-03-07 16:17:25 */
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 ) && ( si ( a ) || "string" == typeof a || "function" == typeof a . splice || ti ( a ) || yi ( a ) || ri ( 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 || ! si ( 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
case "%S" : o = parseInt ( g [ k ] , 10 ) } if ( isNaN ( d ) && ( d = c . getFullYear ( ) ) , isNaN ( e ) && ( e = c . getMonth ( ) ) , isNaN ( f ) && ( f = c . getDate ( ) ) , isNaN ( m ) && ( m = c . getHours ( ) ) , isNaN ( n ) && ( n = c . getMinutes ( ) ) , isNaN ( o ) && ( o = c . getSeconds ( ) ) , 0 != d ) return BI . getDate ( d , e , f , m , n , o ) ; for ( d = 0 , e = - 1 , f = 0 , k = 0 ; k < g . length ; ++ k ) if ( g [ k ] . search ( /[a-zA-Z]+/ ) != - 1 ) { var p = - 1 ; for ( l = 0 ; l < 12 ; ++ l ) if ( BI . Date . _MN [ l ] . substr ( 0 , g [ k ] . length ) . toLowerCase ( ) == g [ k ] . toLowerCase ( ) ) { p = l ; break } p != - 1 && ( e != - 1 && ( f = e + 1 ) , e = p ) } else parseInt ( g [ k ] , 10 ) <= 12 && e == - 1 ? e = g [ k ] - 1 : parseInt ( g [ k ] , 10 ) > 31 && 0 == d ? ( d = parseInt ( g [ k ] , 10 ) , d < 100 && ( d += d > 29 ? 1900 : 2e3 ) ) : 0 == f && ( f = g [ k ] ) ; return 0 == d && ( d = c . getFullYear ( ) ) , e != - 1 && 0 != f ? BI . getDate ( d , e , f , m , n , o ) : c } , getDate : function ( ) { var a , b = arguments . length , c = arguments ; switch ( b ) { case 0 : a = new Date ; break ; case 1 : a = new Date ( c [ 0 ] ) ; break ; case 2 : a = new Date ( c [ 0 ] , c [ 1 ] ) ; break ; case 3 : a = new Date ( c [ 0 ] , c [ 1 ] , c [ 2 ] ) ; break ; case 4 : a = new Date ( c [ 0 ] , c [ 1 ] , c [ 2 ] , c [ 3 ] ) ; break ; case 5 : a = new Date ( c [ 0 ] , c [ 1 ] , c [ 2 ] , c [ 3 ] , c [ 4 ] ) ; break ; case 6 : a = new Date ( c [ 0 ] , c [ 1 ] , c [ 2 ] , c [ 3 ] , c [ 4 ] , c [ 5 ] ) ; break ; case 7 : a = new Date ( c [ 0 ] , c [ 1 ] , c [ 2 ] , c [ 3 ] , c [ 4 ] , c [ 5 ] , c [ 6 ] ) ; break ; default : a = new Date } if ( BI . isNotNull ( BI . timeZone ) && ( 0 === arguments . length || 1 === arguments . length && BI . isNumber ( arguments [ 0 ] ) ) ) { var d = a . getTime ( ) , e = 6e4 * ( new Date ) . getTimezoneOffset ( ) , f = d + e ; return new Date ( f + BI . timeZone ) } return a } , getTime : function ( ) { var a , b = arguments . length , c = arguments ; switch ( b ) { case 0 : a = new Date ; break ; case 1 : a = new Date ( c [ 0 ] ) ; break ; case 2 : a = new Date ( c [ 0 ] , c [ 1 ] ) ; break ; case 3 : a = new Date ( c [ 0 ] , c [ 1 ] , c [ 2 ] ) ; break ; case 4 : a = new Date ( c [ 0 ] , c [ 1 ] , c [ 2 ] , c [ 3 ] ) ; break ; case 5 : a = new Date ( c [ 0 ] , c [ 1 ] , c [ 2 ] , c [ 3 ] , c [ 4 ] ) ; break ; case 6 : a = new Date ( c [ 0 ] , c [ 1 ] , c [ 2 ] , c [ 3 ] , c [ 4 ] , c [ 5 ] ) ; break ; case 7 : a = new Date ( c [ 0 ] , c [ 1 ] , c [ 2 ] , c [ 3 ] , c [ 4 ] , c [ 5 ] , c [ 6 ] ) ; break ; default : a = new Date } return BI . isNotNull ( BI . timeZone ) ? a . getTime ( ) - BI . timeZone - 6e4 * ( new Date ) . getTimezoneOffset ( ) : a . getTime ( ) } } ) } ( ) , ! function ( ) { 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 ( b ) { var c = this . props ; BI . isFunction ( this . props ) && ( c = this . props ( b ) ) , this . options = a ( this . _defaultConfig ( b ) , c , b ) , this . _init ( ) , this . _initRef ( ) } , _ . extend ( BI . OB . prototype , { props : { } , init : null , destroyed : null , _defaultConfig : function ( a ) { return { } } , _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 : "" } ) } , 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 ) , thi
19969 : "DZ" , 19975 : "WM" , 19988 : "QJ" , 20048 : "YL" , 20056 : "SC" , 20060 : "NM" , 20094 : "QG" , 20127 : "QJ" , 20167 : "QC" , 20193 : "YG" , 20250 : "KH" , 20256 : "ZC" , 20282 : "SC" , 20285 : "QJG" , 20291 : "TD" , 20314 : "YD" , 20315 : "BF" , 20340 : "NE" , 20375 : "TD" , 20389 : "YJ" , 20391 : "CZ" , 20415 : "PB" , 20446 : "YS" , 20447 : "SQ" , 20504 : "TC" , 20608 : "KG" , 20854 : "QJ" , 20857 : "ZC" , 20911 : "PF" , 20985 : "AW" , 21032 : "PB" , 21048 : "XQ" , 21049 : "SC" , 21089 : "YS" , 21119 : "JC" , 21242 : "SB" , 21273 : "SC" , 21305 : "YP" , 21306 : "QO" , 21330 : "ZC" , 21333 : "SDC" , 21345 : "QK" , 21378 : "CA" , 21397 : "SC" , 21414 : "XS" , 21442 : "SC" , 21477 : "JG" , 21480 : "TD" , 21484 : "ZS" , 21494 : "YX" , 21505 : "YX" , 21512 : "HG" , 21523 : "XH" , 21537 : "PB" , 21542 : "PF" , 21549 : "KH" , 21571 : "E" , 21574 : "DA" , 21588 : "TD" , 21589 : "O" , 21618 : "ZC" , 21621 : "KHA" , 21632 : "ZJ" , 21654 : "KG" , 21679 : "LKG" , 21683 : "KH" , 21710 : "A" , 21719 : "YH" , 21734 : "WOE" , 21769 : "A" , 21780 : "WN" , 21804 : "XH" , 21834 : "A" , 21899 : "ZD" , 21903 : "RN" , 21908 : "WO" , 21939 : "ZC" , 21956 : "SA" , 21964 : "YA" , 21970 : "TD" , 22003 : "A" , 22031 : "JG" , 22040 : "XS" , 22060 : "ZC" , 22066 : "ZC" , 22079 : "MH" , 22129 : "XJ" , 22179 : "XA" , 22237 : "NJ" , 22244 : "TD" , 22280 : "JQ" , 22300 : "YH" , 22313 : "XW" , 22331 : "YQ" , 22343 : "YJ" , 22351 : "PH" , 22395 : "DC" , 22412 : "TD" , 22484 : "PB" , 22500 : "PB" , 22534 : "ZD" , 22549 : "DH" , 22561 : "PB" , 22612 : "TD" , 22771 : "KQ" , 22831 : "HB" , 22841 : "JG" , 22855 : "QJ" , 22865 : "XQ" , 23013 : "ML" , 23081 : "WM" , 23487 : "SX" , 23558 : "QJ" , 23561 : "YW" , 23586 : "YW" , 23614 : "YW" , 23615 : "SN" , 23631 : "PB" , 23646 : "ZS" , 23663 : "ZT" , 23673 : "YG" , 23762 : "TD" , 23769 : "ZS" , 23780 : "QJ" , 23884 : "QK" , 24055 : "XH" , 24113 : "DC" , 24162 : "ZC" , 24191 : "GA" , 24273 : "QJ" , 24324 : "NL" , 24377 : "TD" , 24378 : "QJ" , 24439 : "PF" , 24554 : "ZS" , 24683 : "TD" , 24694 : "WE" , 24733 : "LK" , 24925 : "TN" , 25094 : "ZG" , 25100 : "XQ" , 25103 : "XH" , 25153 : "PB" , 25170 : "PB" , 25179 : "KG" , 25203 : "PB" , 25240 : "ZS" , 25282 : "FB" , 25303 : "NA" , 25324 : "KG" , 25341 : "ZY" , 25373 : "WZ" , 25375 : "XJ" , 25384 : "A" , 25457 : "A" , 25528 : "SD" , 25530 : "SC" , 25552 : "TD" , 25774 : "ZC" , 25874 : "ZC" , 26044 : "YW" , 26080 : "WM" , 26292 : "PB" , 26333 : "PB" , 26355 : "ZY" , 26366 : "CZ" , 26397 : "ZC" , 26399 : "QJ" , 26415 : "ZS" , 26451 : "SB" , 26526 : "ZC" , 26552 : "JG" , 26561 : "TD" , 26588 : "JG" , 26597 : "CZ" , 26629 : "ZS" , 26638 : "YL" , 26646 : "XQ" , 26653 : "KG" , 26657 : "XJ" , 26727 : "HG" , 26894 : "ZC" , 26937 : "ZS" , 26946 : "ZC" , 26999 : "KJ" , 27099 : "KJ" , 27449 : "YQ" , 27481 : "XS" , 27542 : "ZS" , 27663 : "ZS" , 27748 : "TS" , 27784 : "SC" , 27788 : "ZD" , 27795 : "TD" , 27812 : "O" , 27850 : "PB" , 27852 : "MB" , 27895 : "SL" , 27898 : "PL" , 27973 : "QJ" , 27981 : "KH" , 27986 : "HX" , 27994 : "XJ" , 28044 : "YC" , 28065 : "WG" , 28177 : "SM" , 28267 : "QJ" , 28291 : "KH" , 28337 : "ZQ" , 28463 : "TL" , 28548 : "DC" , 28601 : "TD" , 28689 : "PB" , 28805 : "JG" , 28820 : "QG" , 28846 : "PB" , 28952 : "TD" , 28975 : "ZC" , 29100 : "A" , 29325 : "QJ" , 29575 : "SL" , 29602 : "FB" , 30010 : "TD" , 30044 : "CX" , 30058 : "PF" , 30091 : "YSP" , 30111 : "YN" , 30229 : "XJ" , 30427 : "SC" , 30465 : "SX" , 30631 : "YQ" , 30655 : "QJ" , 30684 : "QJG" , 30707 : "SD" , 30729 : "XH" , 30796 : "LG" , 30917 : "PB" , 31074 : "NM" , 31085 : "JZ" , 31109 : "SC" , 31181 : "ZC" , 31192 : "MLB" , 31293 : "JQ" , 31400 : "YX" , 31584 : "YJ" , 31896 : "ZN" , 31909 : "ZY" , 31995 : "XJ" , 32321 : "PF" , 32327 : "ZY" , 32418 : "HG" , 32420 : "XQ" , 32421 : "HG" , 32438 : "LG" , 32473 : "GJ" , 32488 : "TD" , 32521 : "QJ" , 32527 : "PB" , 32562 : "ZSQ" , 32564 : "JZ" , 32735 : "ZD" , 32793 : "PB" , 33071 : "PF" , 33098 : "XL" , 33100 : "YA" , 33152 : "PB" , 33261 : "CX" , 33324 : "BP" , 33333 : "TD" , 33406 : "YA" , 33426 : "WM" , 33432 : "PB" , 33445 : "JG" , 33486 : "ZN" , 33493 : "TS" , 33507 : "QJ" , 33540 : "QJ" , 33544 : "ZC" , 33564 : "XQ" , 33617 : "YT" , 33632 : "QJ" , 33636 : "XH" , 33637 : "YX" , 33694 : "WG" , 33705 : "PF" , 33728 : "YW" , 33882 : "SR" , 34067 : "WM" , 34074 : "YW" , 34121 : "QJ" , 34255 : "ZC" , 34259 : "XL" , 34425 : "JH" , 34430 : "XH" , 34485 : "KH" , 34503 : "YS" , 34532 : "HG" , 34552 : "XS" , 34558 : "YE" , 34593 : "ZL" , 34660 : "YQ" , 34892 : "XH" , 34928 : "SC" , 34999 : "QJ" , 35048 : "PB" , 35059 : "SC" , 35098 : "ZC" , 35203 : "TQ" , 35265 : "JX" , 35299 : "JX" , 35782 : "SZ" , 35828 : "YS" , 35830 : "E" , 35843 : "TD" , 35895 : "YG" , 35977 : "MH" , 36158 : "JG" , 36228 : "QJ" , 36426 : "XQ" , 36466 : "DC" , 36710 : "JC" , 36711 : "ZYG" , 36767 : "PB" , 36866 : "SK" , 36951 : "YW" , 37034 : "YX" , 37063 : "XH" , 37218 : "ZC" , 37325 : "ZC" , 38063 : "PB" , 38079 : "TD" , 38085 : "QY" , 38107 : "DC" , 38116 : "TD" , 38123 : "YD" , 38224 : "HG" , 38241 : "XTC" , 38271 : "ZC" , 38415 : "YE" , 38426 : "KH" , 38461 : "YD" , 38463 : "AE" , 38466 : "PB" , 38477 : "XJ" , 38518 : "YT" , 38551 : "WK" , 38585 : "ZC" , 38704 : "XS" , 38739 : "LJ" , 38761 : "GJ" , 38808 : "SQ" , 39048 : "JG" , 39049 : "XJ" , 39052 : "HG" , 39076 : "CZ" , 39271 : "XT" , 39534 : "TD" , 39552 : "TD" , 39584 : "PB" , 39647 : "SB" , 39730 : "LG" , 39748 : "TPB" , 40109 : "ZQ" , 40479 : "ND" , 40516 : "HG" , 40536 : "HG" , 40583 : "QJ" , 40765 : "YQ" , 40784 : "QJ" , 40840 : "YK" , 40863 : "QJG" } , c = function (
actionBack : function ( a , b , c ) { } } ) , BI . ActionFactory = { createAction : function ( a , b ) { var c ; switch ( a ) { case "show" : c = BI . ShowAction } return new c ( b ) } } , BI . ShowAction = BI . inherit ( BI . Action , { _defaultConfig : function ( ) { return BI . extend ( BI . ShowAction . superclass . _defaultConfig . apply ( this , arguments ) , { } ) } , _init : function ( ) { BI . ShowAction . superclass . _init . apply ( this , arguments ) } , actionPerformed : function ( a , b , c ) { b = b || this . options . tar , b . setVisible ( ! 0 ) , c && c ( ) } , actionBack : function ( a , b , c ) { a = a || this . options . tar , a . setVisible ( ! 1 ) , c && c ( ) } } ) , function ( ) { function isEmpty ( a ) { var b = "" === a || null === a || void 0 === a ; return b } function isInvalidDate ( a ) { return "Invalid Date" == a || "NaN" == a } function _eFormat ( a , b ) { function c ( a , b ) { var c = a < 0 ? ( a *= - 1 , "-" ) : "" , h = "" , i = a > 0 && a < 1 ? "floor" : "ceil" , j = Math [ i ] ( Math . log ( a ) / Math . log ( 10 ) ) ; if ( ! isFinite ( j ) ) return b . replace ( /#/gi , "" ) . replace ( /\.e/gi , "E" ) ; a /= Math . pow ( 10 , j ) , a > 0 && a < 1 && ( a *= 10 , j -= 1 ) ; var k = f ( j , b ) ; k > 1 && ( j -= k - 1 , a *= Math . pow ( 10 , k - 1 ) ) , j < 0 && ( h = "-" , j *= - 1 ) ; var l = e ( b ) , m = g ( a ) ; return a *= Math . pow ( 10 , l ) , a = Math . round ( a ) , m && ( a /= 10 , j += "-" === h ? - 1 : 1 ) , a /= Math . pow ( 10 , l ) , a = a . toFixed ( l ) , j = d ( b , j , h ) , c + a + "E" + j } function d ( a , b , c ) { if ( b += "" , ! /e/gi . test ( a ) ) return b ; for ( a = a . split ( /e/gi ) [ 1 ] ; b . length < a . length ; ) b = "0" + b ; for ( var d = ! 0 , e = 0 , f = b . length ; e < f ; e ++ ) d && ( d = "0" === b . charAt ( e ) ) ; return c = d ? "" : c , c + b } function e ( a ) { if ( ! /e/gi . test ( a ) ) return 0 ; var b = a . split ( /e/gi ) [ 0 ] . split ( "." ) ; return b . length > 1 ? b [ 1 ] . length : 0 } function f ( a , b ) { if ( ! /e/gi . test ( b ) ) return 0 ; var c , d , e = b . split ( /e/gi ) [ 0 ] . split ( "." ) [ 0 ] , f = e . length , g = 0 ; for ( c = 0 ; c < f ; c ++ ) d = e . charAt ( c ) , ( 0 == d || "#" == d && f - c <= a + 1 ) && g ++ ; return g } function g ( a ) { var b = Math . round ( a ) ; return a = ( a + "" ) . split ( "." ) [ 0 ] , b = ( b + "" ) . split ( "." ) [ 0 ] , a . length !== b . length } return a = + a , c ( a , b ) } function _dealNumberPrecision ( a , b ) { if ( /[eE]/ . test ( a ) ) { var c , d = 0 , e = 0 ; /[%‰]$/ . test ( b ) && ( d = /[%]$/ . test ( b ) ? 2 : 3 ) ; for ( var f = b . length ; e < f ; e ++ ) "0" != ( c = b . charAt ( e ) ) && "#" != c || d ++ ; return Number ( a ) . toFixed ( d ) } return a } function _numberFormat ( a , b ) { var a = a + "" ; if ( ! /[0-9]/ . test ( a ) || ! b ) return a ; var c = b . indexOf ( ";" ) ; if ( c > - 1 ) return a >= 0 ? _numberFormat ( a + "" , b . substring ( 0 , c ) ) : _numberFormat ( - a + "" , b . substr ( c + 1 ) ) ; if ( + a < 0 && "-" !== b . charAt ( 0 ) ) return _numberFormat ( - a + "" , "-" + b ) ; var d = b . split ( "." ) , e = d [ 0 ] || "" , f = d [ 1 ] || "" ; a = _dealNumberPrecision ( a , f ) ; var g = a . split ( "." ) , h = g [ 0 ] || "" , i = g [ 1 ] || "" ; if ( /[%‰]$/ . test ( b ) ) { var j = /[%]$/ . test ( b ) ? "00" : "000" ; i += j , h += i . substr ( 0 , j . length ) , h = h . replace ( /^0+/gi , "" ) , i = i . substr ( j . length ) . replace ( /0+$/gi , "" ) } var k = _dealWithRight ( i , f ) ; k . leftPlus && ( h = parseInt ( h ) + 1 + "" , h = isNaN ( h ) ? "1" : h ) , k = k . num ; var l = _dealWithLeft ( h , e ) ; return /[0-9]/ . test ( l ) || ( l += "0" ) , /[0-9]/ . test ( k ) ? l + "." + k : l + k } function _dealWithRight ( a , b ) { for ( var c = "" , d = 0 , e = 0 , f = b . length ; e < f ; e ++ ) { var g = b . charAt ( e ) , h = a . charAt ( d ) ; switch ( g ) { case "0" : isEmpty ( h ) && ( h = "0" ) , c += h , d ++ ; break ; case "#" : c += h , d ++ ; break ; default : c += g } } var i = a . substr ( d ) , j = { } ; if ( ! isEmpty ( i ) && i . charAt ( 0 ) > 4 ) { j . leftPlus = ! 0 ; var k = c . match ( /^[0-9]+/ ) ; if ( k ) { var l = k [ 0 ] , m = l . length , n = parseInt ( l ) + 1 + "" ; n . length > m ? n = n . substr ( 1 ) : ( n = BI . leftPad ( n , m , "0" ) , j . leftPlus = ! 1 ) , c = c . replace ( /^[0-9]+/ , n ) } } return j . num = c , j } function _dealWithLeft ( a , b ) { for ( var c = "" , d = a . length - 1 , e = - 1 , f = - 1 , g = b . length - 1 ; g >= 0 ; g -- ) { var h = b . charAt ( g ) , i = a . charAt ( d ) ; switch ( h ) { case "0" : isEmpty ( i ) && ( i = "0" ) , f = - 1 , c = i + c , d -- ; break ; case "#" : f = g , c = i + c , d -- ; break ; case "," : if ( ! isEmpty ( i ) ) { var j = b . match ( /,[#0]+/ ) ; j && ( e = j [ 0 ] . length - 1 ) , c = "," + c } break ; default : c = h + c } } if ( f > - 1 ) { var k = a . substr ( 0 , d + 1 ) ; c = c . substr ( 0 , f ) + k + c . substr ( f ) } if ( e > 0 ) { var l = c . match ( /[0-9]+,/ ) ; if ( l ) { l = l [ 0 ] ; for ( var m = "" , n = l . length - 1 - e ; n >= 0 ; n -= e ) m = l . substr ( n , e ) + "," + m ; var o = l . substr ( 0 , n + e ) ; isEmpty ( o ) || ( m = o + "," + m ) } c = c . replace ( /[0-9]+,/ , m ) } return c } var _global ; _global = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this , _global . BI || ( _global . BI = { } ) , BI . cjkEncode = function ( a ) { if ( "string" != typeof a ) return a ; for ( var b = "" , c = 0 ; c < a . length ; c ++ ) { var d = a . charCodeAt ( c ) ; b += d >= 128 || 91 === d || 93 === d ? "[" + d . toString ( 16 ) + "]" : a . charAt ( c ) } return b } , BI . cjkDecode = function ( text ) { if ( null == text ) return "" ; if ( ! isNaN ( text ) || text . indexOf ( "[" ) == - 1 ) return text ; for ( var newText = "" , i = 0 ; i < text . length ; i ++ ) { var ch = text . charAt ( i ) ; if ( "[" == ch ) { var rightIdx = text . indexOf ( "]" , i + 1 ) ; if ( righ
} } ) , { match : h , find : i } } } ) , _ . extend ( BI , { beforeFunc : function ( a , b ) { var c = a ; return function ( ) { return b . apply ( a , arguments ) !== ! 1 && c . apply ( a , arguments ) } } , afterFunc : function ( a ) { var b = sFunc ; return function ( ) { var c = b . apply ( sFunc , arguments ) ; return c !== ! 1 && ( a . apply ( sFunc , arguments ) , c ) } } } ) , _ . extend ( BI , { add : function ( a , b ) { function c ( a , b ) { var c , d , e , f ; try { c = a . toString ( ) . split ( "." ) [ 1 ] . length } catch ( g ) { c = 0 } try { d = b . toString ( ) . split ( "." ) [ 1 ] . length } catch ( g ) { d = 0 } if ( f = Math . abs ( c - d ) , e = Math . pow ( 10 , Math . max ( c , d ) ) , f > 0 ) { var h = Math . pow ( 10 , f ) ; c > d ? ( a = Number ( a . toString ( ) . replace ( "." , "" ) ) , b = Number ( b . toString ( ) . replace ( "." , "" ) ) * h ) : ( a = Number ( a . toString ( ) . replace ( "." , "" ) ) * h , b = Number ( b . toString ( ) . replace ( "." , "" ) ) ) } else a = Number ( a . toString ( ) . replace ( "." , "" ) ) , b = Number ( b . toString ( ) . replace ( "." , "" ) ) ; return ( a + b ) / e } return c ( b , a ) } , sub : function ( a , b ) { function c ( a , b ) { var c , d , e , f ; try { c = a . toString ( ) . split ( "." ) [ 1 ] . length } catch ( g ) { c = 0 } try { d = b . toString ( ) . split ( "." ) [ 1 ] . length } catch ( g ) { d = 0 } return e = Math . pow ( 10 , Math . max ( c , d ) ) , f = c >= d ? c : d , ( ( a * e - b * e ) / e ) . toFixed ( f ) } return c ( a , b ) } , mul : function ( a , b ) { function c ( a , b ) { var c = 0 , d = a . toString ( ) , e = b . toString ( ) ; try { c += d . split ( "." ) [ 1 ] . length } catch ( f ) { } try { c += e . split ( "." ) [ 1 ] . length } catch ( f ) { } return Number ( d . replace ( "." , "" ) ) * Number ( e . replace ( "." , "" ) ) / Math . pow ( 10 , c ) } return c ( b , a ) } , div : function ( a , b ) { function c ( a ) { var b = a . toString ( ) . split ( /[eE]/ ) , c = ( b [ 0 ] . split ( "." ) [ 1 ] || "" ) . length - + ( b [ 1 ] || 0 ) ; return c > 0 ? c : 0 } function d ( a ) { if ( a . toString ( ) . indexOf ( "e" ) === - 1 ) return Number ( a . toString ( ) . replace ( "." , "" ) ) ; var b = c ( a ) ; return b > 0 ? a * Math . pow ( 10 , b ) : a } function e ( a , b ) { for ( var f = [ ] , g = 2 ; g < arguments . length ; g ++ ) f [ g - 2 ] = arguments [ g ] ; if ( f . length > 0 ) return e . apply ( void 0 , [ e ( a , b ) , f [ 0 ] ] . concat ( f . slice ( 1 ) ) ) ; var h = d ( a ) , i = d ( b ) , j = c ( a ) + c ( b ) , k = h * i ; return k / Math . pow ( 10 , j ) } function f ( a , b ) { for ( var g = [ ] , h = 2 ; h < arguments . length ; h ++ ) g [ h - 2 ] = arguments [ h ] ; if ( g . length > 0 ) return f . apply ( void 0 , [ f ( a , b ) , g [ 0 ] ] . concat ( g . slice ( 1 ) ) ) ; var i = d ( a ) , j = d ( b ) ; return e ( i / j , Math . pow ( 10 , c ( b ) - c ( a ) ) ) } return f ( a , b ) } } ) , _ . extend ( BI , { startWith : function ( a , b ) { return a = a || "" , ! ( null == b || "" == b || 0 === a . length || b . length > a . length ) && a . substr ( 0 , b . length ) == b } , endWith : function ( a , b ) { return ! ( null == b || "" == b || 0 === a . length || b . length > a . length ) && a . substring ( a . length - b . length ) == b } , getQuery : function ( a , b ) { var c = new RegExp ( "(^|&)" + b + "=([^&]*)(&|$)" ) , d = a . substr ( a . indexOf ( "?" ) + 1 ) . match ( c ) ; return d ? unescape ( d [ 2 ] ) : null } , appendQuery : function ( a , b ) { if ( ! b ) return a ; var c = a ; return c . indexOf ( "?" ) === - 1 && ( c += "?" ) , c . endWith ( "?" ) !== ! 1 || ( c += "&" ) , _ . each ( b , function ( a , b ) { "string" == typeof b && ( c += b + "=" + a + "&" ) } ) , c = c . substr ( 0 , c . length - 1 ) } , replaceAll : function ( a , b , c ) { return a . replace ( new RegExp ( b , "gm" ) , c ) } , perfectStart : function ( a , b ) { return a . startWith ( b ) ? a : b + a } , allIndexOf : function ( a , b ) { if ( "string" != typeof b ) return [ ] ; for ( var c = [ ] , d = 0 ; a . length > 0 ; ) { var e = a . indexOf ( b ) ; if ( e === - 1 ) break ; c . push ( d + e ) , a = a . substring ( e + b . length , a . length ) , d += e + b . length } return c } } ) , function ( ) { var a = { } ; BI . module = function ( b , c ) { null != a [ b ] && _global . console && console . error ( "module:[" + b + "] has been registed" ) , a [ b ] = c } ; var b = { } ; BI . constant = function ( a , c ) { null != b [ a ] && _global . console && console . error ( "constant:[" + a + "] has been registed" ) , b [ a ] = c } ; var c = { } ; BI . model = function ( a , b ) { null != c [ a ] && _global . console && console . error ( "model:[" + a + "] has been registed" ) , c [ a ] = b } ; var d = { } ; BI . store = function ( a , b ) { null != d [ a ] && _global . console && console . error ( "store:[" + a + "] has been registed" ) , d [ a ] = b } ; var e = { } ; BI . service = function ( a , b ) { null != e [ a ] && _global . console && console . error ( "service:[" + a + "] has been registed" ) , e [ a ] = b } ; var f = { } ; BI . provider = function ( a , b ) { null != f [ a ] && _global . console && console . error ( "provider:[" + a + "] has been registed" ) , f [ a ] = b } , BI . config = function ( a , c ) { return b [ a ] ? b [ a ] = c ( b [ a ] ) : f [ a ] ? ( m [ a ] || ( m [ a ] = new f [ a ] ) , c ( m [ a ] ) ) : void BI . Plugin . configWidget ( a , c ) } ; var g = { } , h = [ ] ; BI . action = function ( a , b ) { return BI . isFunction ( a ) ? ( h . push ( a ) , function ( ) { BI . remove ( h , function ( a ) { return h . indexOf ( b ) === a } ) } ) : ( g [ a ] || ( g [ a ] = [ ] ) , g [ a ] . push ( b ) , function ( ) { BI . remove ( g [ a ] , function ( c ) { return g [ a ] . indexOf ( b ) === c } ) , 0 === g [ a ] . length && delete g [ a ] } ) } ; var i = { } ; BI . point = function ( a , b , c , d ) { i [ a ] || ( i [ a ] = { } ) , i [ a ] [ b ] || ( i [ a ] [ b ] = { } ) , i [ a ] [ b ] [ d ? "after" : "before" ] || ( i [ a ] [ b ] [ d ? " a
for ( var c , d = 0 ; null != ( c = a [ d ] ) ; d ++ ) ia . _data ( c , "globalEval" , ! b || ia . _data ( b [ d ] , "globalEval" ) ) } function r ( a , b ) { if ( 1 === b . nodeType && ia . hasData ( a ) ) { var c , d , e , f = ia . _data ( a ) , g = ia . _data ( b , f ) , h = f . events ; if ( h ) { delete g . handle , g . events = { } ; for ( c in h ) for ( d = 0 , e = h [ c ] . length ; d < e ; d ++ ) ia . event . add ( b , c , h [ c ] [ d ] ) } g . data && ( g . data = ia . extend ( { } , g . data ) ) } } function s ( a , b ) { var c , d , e ; if ( 1 === b . nodeType ) { if ( c = b . nodeName . toLowerCase ( ) , ! ia . support . noCloneEvent && b [ ia . expando ] ) { e = ia . _data ( b ) ; for ( d in e . events ) ia . removeEvent ( b , d , e . handle ) ; b . removeAttribute ( ia . expando ) } "script" === c && b . text !== a . text ? ( o ( b ) . text = a . text , p ( b ) ) : "object" === c ? ( b . parentNode && ( b . outerHTML = a . outerHTML ) , ia . support . html5Clone && a . innerHTML && ! ia . trim ( b . innerHTML ) && ( b . innerHTML = a . innerHTML ) ) : "input" === c && bb . test ( a . type ) ? ( b . defaultChecked = b . checked = a . checked , b . value !== a . value && ( b . value = a . value ) ) : "option" === c ? b . defaultSelected = b . selected = a . defaultSelected : "input" !== c && "textarea" !== c || ( b . defaultValue = a . defaultValue ) } } function t ( a , c ) { var d , e , f = 0 , g = typeof a . getElementsByTagName !== V ? a . getElementsByTagName ( c || "*" ) : typeof a . querySelectorAll !== V ? a . querySelectorAll ( c || "*" ) : b ; if ( ! g ) for ( g = [ ] , d = a . childNodes || a ; null != ( e = d [ f ] ) ; f ++ ) ! c || ia . nodeName ( e , c ) ? g . push ( e ) : ia . merge ( g , t ( e , c ) ) ; return c === b || c && ia . nodeName ( a , c ) ? ia . merge ( [ a ] , g ) : g } function u ( a ) { bb . test ( a . type ) && ( a . defaultChecked = a . checked ) } function v ( a , b ) { if ( b in a ) return b ; for ( var c = b . charAt ( 0 ) . toUpperCase ( ) + b . slice ( 1 ) , d = b , e = yb . length ; e -- ; ) if ( b = yb [ e ] + c , b in a ) return b ; return d } function w ( a , b ) { return a = b || a , "none" === ia . css ( a , "display" ) || ! ia . contains ( a . ownerDocument , a ) } function x ( a , b ) { for ( var c , d , e , f = [ ] , g = 0 , h = a . length ; g < h ; g ++ ) d = a [ g ] , d . style && ( f [ g ] = ia . _data ( d , "olddisplay" ) , c = d . style . display , b ? ( f [ g ] || "none" !== c || ( d . style . display = "" ) , "" === d . style . display && w ( d ) && ( f [ g ] = ia . _data ( d , "olddisplay" , B ( d . nodeName ) ) ) ) : f [ g ] || ( e = w ( d ) , ( c && "none" !== c || ! e ) && ia . _data ( d , "olddisplay" , e ? c : ia . css ( d , "display" ) ) ) ) ; for ( g = 0 ; g < h ; g ++ ) d = a [ g ] , d . style && ( b && "none" !== d . style . display && "" !== d . style . display || ( d . style . display = b ? f [ g ] || "" : "none" ) ) ; return a } function y ( a , b , c ) { var d = rb . exec ( b ) ; return d ? Math . max ( 0 , d [ 1 ] - ( c || 0 ) ) + ( d [ 2 ] || "px" ) : b } function z ( a , b , c , d , e ) { for ( var f = c === ( d ? "border" : "content" ) ? 4 : "width" === b ? 1 : 0 , g = 0 ; f < 4 ; f += 2 ) "margin" === c && ( g += ia . css ( a , c + xb [ f ] , ! 0 , e ) ) , d ? ( "content" === c && ( g -= ia . css ( a , "padding" + xb [ f ] , ! 0 , e ) ) , "margin" !== c && ( g -= ia . css ( a , "border" + xb [ f ] + "Width" , ! 0 , e ) ) ) : ( g += ia . css ( a , "padding" + xb [ f ] , ! 0 , e ) , "padding" !== c && ( g += ia . css ( a , "border" + xb [ f ] + "Width" , ! 0 , e ) ) ) ; return g } function A ( a , b , c ) { var d = ! 0 , e = "width" === b ? a . offsetWidth : a . offsetHeight , f = kb ( a ) , g = ia . support . boxSizing && "border-box" === ia . css ( a , "boxSizing" , ! 1 , f ) ; if ( e <= 0 || null == e ) { if ( e = lb ( a , b , f ) , ( e < 0 || null == e ) && ( e = a . style [ b ] ) , sb . test ( e ) ) return e ; d = g && ( ia . support . boxSizingReliable || e === a . style [ b ] ) , e = parseFloat ( e ) || 0 } return e + z ( a , b , c || ( g ? "border" : "content" ) , d , f ) + "px" } function B ( a ) { var b = W , c = ub [ a ] ; return c || ( c = C ( a , b ) , "none" !== c && c || ( jb = ( jb || ia ( "<iframe frameborder='0' width='0' height='0'/>" ) . css ( "cssText" , "display:block !important" ) ) . appendTo ( b . documentElement ) , b = ( jb [ 0 ] . contentWindow || jb [ 0 ] . contentDocument ) . document , b . write ( "<!doctype html><html><body>" ) , b . close ( ) , c = C ( a , b ) , jb . detach ( ) ) , ub [ a ] = c ) , c } function C ( a , b ) { var c = ia ( b . createElement ( a ) ) . appendTo ( b . body ) , d = ia . css ( c [ 0 ] , "display" ) ; return c . remove ( ) , d } function D ( a , b , c , d ) { var e ; if ( ia . isArray ( b ) ) ia . each ( b , function ( b , e ) { c || Ab . test ( a ) ? d ( a , e ) : D ( a + "[" + ( "object" == typeof e ? b : "" ) + "]" , e , c , d ) } ) ; else if ( c || "object" !== ia . type ( b ) ) d ( a , b ) ; else for ( e in b ) D ( a + "[" + e + "]" , b [ e ] , c , d ) } function E ( a ) { return function ( b , c ) { "string" != typeof b && ( c = b , b = "*" ) ; var d , e = 0 , f = b . toLowerCase ( ) . match ( ka ) || [ ] ; if ( ia . isFunction ( c ) ) for ( ; d = f [ e ++ ] ; ) "+" === d [ 0 ] ? ( d = d . slice ( 1 ) || "*" , ( a [ d ] = a [ d ] || [ ] ) . unshift ( c ) ) : ( a [ d ] = a [ d ] || [ ] ) . push ( c ) } } function F ( a , b , c , d ) { function e ( h ) { var i ; return f [ h ] = ! 0 , ia . each ( a [ h ] || [ ] , function ( a , h ) { var j = h ( b , c , d ) ; return "string" != typeof j || g || f [ j ] ? g ? ! ( i = j ) : void 0 : ( b . dataTypes . unshift ( j ) , e ( j ) , ! 1 ) } ) , i } var f = { } , g = a === Rb ; return e ( b . dataTypes [ 0 ] ) || ! f [ "*" ] && e ( "*" ) } function G ( a , c ) { var d , e , f = ia . ajaxSettings . flatOptions || { } ; for ( e in c ) c [ e ] !== b && ( ( f [ e ] ? a : d || ( d = { } ) ) [ e ] = c [ e ] ) ; return d && ia . extend ( ! 0 , a , d ) , a } function H ( a , c , d ) { var e , f , g ,
} , l . elem = a ) , c = ( c || "" ) . match ( ka ) || [ "" ] , i = c . length ; i -- ; ) g = Oa . exec ( c [ i ] ) || [ ] , o = q = g [ 1 ] , p = ( g [ 2 ] || "" ) . split ( "." ) . sort ( ) , k = ia . event . special [ o ] || { } , o = ( f ? k . delegateType : k . bindType ) || o , k = ia . event . special [ o ] || { } , m = ia . extend ( { type : o , origType : q , data : e , handler : d , guid : d . guid , selector : f , needsContext : f && ia . expr . match . needsContext . test ( f ) , namespace : p . join ( "." ) } , j ) , ( n = h [ o ] ) || ( n = h [ o ] = [ ] , n . delegateCount = 0 , k . setup && k . setup . call ( a , e , p , l ) !== ! 1 || ( a . addEventListener ? a . addEventListener ( o , l , ! 1 ) : a . attachEvent && a . attachEvent ( "on" + o , l ) ) ) , k . add && ( k . add . call ( a , m ) , m . handler . guid || ( m . handler . guid = d . guid ) ) , f ? n . splice ( n . delegateCount ++ , 0 , m ) : n . push ( m ) , ia . event . global [ o ] = ! 0 ; a = null } } , remove : function ( a , b , c , d , e ) { var f , g , h , i , j , k , l , m , n , o , p , q = ia . hasData ( a ) && ia . _data ( a ) ; if ( q && ( k = q . events ) ) { for ( b = ( b || "" ) . match ( ka ) || [ "" ] , j = b . length ; j -- ; ) if ( h = Oa . exec ( b [ j ] ) || [ ] , n = p = h [ 1 ] , o = ( h [ 2 ] || "" ) . split ( "." ) . sort ( ) , n ) { for ( l = ia . event . special [ n ] || { } , n = ( d ? l . delegateType : l . bindType ) || n , m = k [ n ] || [ ] , h = h [ 2 ] && new RegExp ( "(^|\\.)" + o . join ( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) , i = f = m . length ; f -- ; ) g = m [ f ] , ! e && p !== g . origType || c && c . guid !== g . guid || h && ! h . test ( g . namespace ) || d && d !== g . selector && ( "**" !== d || ! g . selector ) || ( m . splice ( f , 1 ) , g . selector && m . delegateCount -- , l . remove && l . remove . call ( a , g ) ) ; i && ! m . length && ( l . teardown && l . teardown . call ( a , o , q . handle ) !== ! 1 || ia . removeEvent ( a , n , q . handle ) , delete k [ n ] ) } else for ( n in k ) ia . event . remove ( a , n + b [ j ] , c , d , ! 0 ) ; ia . isEmptyObject ( k ) && ( delete q . handle , ia . _removeData ( a , "events" ) ) } } , trigger : function ( c , d , e , f ) { var g , h , i , j , k , l , m , n = [ e || W ] , o = ga . call ( c , "type" ) ? c . type : c , p = ga . call ( c , "namespace" ) ? c . namespace . split ( "." ) : [ ] ; if ( i = l = e = e || W , 3 !== e . nodeType && 8 !== e . nodeType && ! Na . test ( o + ia . event . triggered ) && ( o . indexOf ( "." ) >= 0 && ( p = o . split ( "." ) , o = p . shift ( ) , p . sort ( ) ) , h = o . indexOf ( ":" ) < 0 && "on" + o , c = c [ ia . expando ] ? c : new ia . Event ( o , "object" == typeof c && c ) , c . isTrigger = ! 0 , c . namespace = p . join ( "." ) , c . namespace _re = c . namespace ? new RegExp ( "(^|\\.)" + p . join ( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) : null , c . result = b , c . target || ( c . target = e ) , d = null == d ? [ c ] : ia . makeArray ( d , [ c ] ) , k = ia . event . special [ o ] || { } , f || ! k . trigger || k . trigger . apply ( e , d ) !== ! 1 ) ) { if ( ! f && ! k . noBubble && ! ia . isWindow ( e ) ) { for ( j = k . delegateType || o , Na . test ( j + o ) || ( i = i . parentNode ) ; i ; i = i . parentNode ) n . push ( i ) , l = i ; l === ( e . ownerDocument || W ) && n . push ( l . defaultView || l . parentWindow || a ) } for ( m = 0 ; ( i = n [ m ++ ] ) && ! c . isPropagationStopped ( ) ; ) c . type = m > 1 ? j : k . bindType || o , g = ( ia . _data ( i , "events" ) || { } ) [ c . type ] && ia . _data ( i , "handle" ) , g && g . apply ( i , d ) , g = h && i [ h ] , g && ia . acceptData ( i ) && g . apply && g . apply ( i , d ) === ! 1 && c . preventDefault ( ) ; if ( c . type = o , ! f && ! c . isDefaultPrevented ( ) && ( ! k . _default || k . _default . apply ( e . ownerDocument , d ) === ! 1 ) && ( "click" !== o || ! ia . nodeName ( e , "a" ) ) && ia . acceptData ( e ) && h && e [ o ] && ! ia . isWindow ( e ) ) { l = e [ h ] , l && ( e [ h ] = null ) , ia . event . triggered = o ; try { e [ o ] ( ) } catch ( q ) { } ia . event . triggered = b , l && ( e [ h ] = l ) } return c . result } } , dispatch : function ( a ) { a = ia . event . fix ( a ) ; var c , d , e , f , g , h = [ ] , i = da . call ( arguments ) , j = ( ia . _data ( this , "events" ) || { } ) [ a . type ] || [ ] , k = ia . event . special [ a . type ] || { } ; if ( i [ 0 ] = a , a . delegateTarget = this , ! k . preDispatch || k . preDispatch . call ( this , a ) !== ! 1 ) { for ( h = ia . event . handlers . call ( this , a , j ) , c = 0 ; ( f = h [ c ++ ] ) && ! a . isPropagationStopped ( ) ; ) for ( a . currentTarget = f . elem , g = 0 ; ( e = f . handlers [ g ++ ] ) && ! a . isImmediatePropagationStopped ( ) ; ) if ( ! a . namespace _re || a . namespace _re . test ( e . namespace ) ) { a . handleObj = e , a . data = e . data ; var l = ( ia . event . special [ e . origType ] || { } ) . handle || e . handler ; l . apply && ( d = l . apply ( f . elem , i ) ) , d !== b && ( a . result = d ) === ! 1 && ( a . preventDefault ( ) , a . stopPropagation ( ) ) } return k . postDispatch && k . postDispatch . call ( this , a ) , a . result } } , handlers : function ( a , c ) { var d , e , f , g , h = [ ] , i = c . delegateCount , j = a . target ; if ( i && j . nodeType && ( ! a . button || "click" !== a . type ) ) for ( ; j != this ; j = j . parentNode || this ) if ( 1 === j . nodeType && ( j . disabled !== ! 0 || "click" !== a . type ) ) { for ( f = [ ] , g = 0 ; g < i ; g ++ ) e = c [ g ] , d = e . selector + " " , f [ d ] === b && ( f [ d ] = e . needsContext ? ia ( d , this ) . index ( j ) >= 0 : ia . find ( d , this , null , [ j ] ) . length ) , f [ d ] && f . push ( e ) ; f . length && h . push ( { elem : j , handlers : f } ) } return i < c . length && h . push ( { elem : this , handlers : c . slice ( i ) } ) , h } , fix : function ( a ) { if ( a [ ia . expando ] ) return a ; var b , c , d , e = a . type , f = a , g = this . fixHooks [ e ] ; for ( g || ( this . fixHooks [ e ] = g = Ma . test ( e ) ? this . mouseHooks : La . test ( e ) ? this . keyHooks : { } ) , d = g
if ( ia . isFunction ( a ) ) return this . each ( function ( b ) { ia ( this ) . wrapAll ( a . call ( this , b ) ) } ) ; if ( this [ 0 ] ) { var b = ia ( a , this [ 0 ] . ownerDocument ) . eq ( 0 ) . clone ( ! 0 ) ; this [ 0 ] . parentNode && b . insertBefore ( this [ 0 ] ) , b . map ( function ( ) { for ( var a = this ; a . firstChild && 1 === a . firstChild . nodeType ; ) a = a . firstChild ; return a } ) . append ( this ) } return this } , wrapInner : function ( a ) { return ia . isFunction ( a ) ? this . each ( function ( b ) { ia ( this ) . wrapInner ( a . call ( this , b ) ) } ) : this . each ( function ( ) { var b = ia ( this ) , c = b . contents ( ) ; c . length ? c . wrapAll ( a ) : b . append ( a ) } ) } , wrap : function ( a ) { var b = ia . isFunction ( a ) ; return this . each ( function ( c ) { ia ( this ) . wrapAll ( b ? a . call ( this , c ) : a ) } ) } , unwrap : function ( ) { return this . parent ( ) . each ( function ( ) { ia . nodeName ( this , "body" ) || ia ( this ) . replaceWith ( this . childNodes ) } ) . end ( ) } , append : function ( ) { return this . domManip ( arguments , ! 0 , function ( a ) { 1 !== this . nodeType && 11 !== this . nodeType && 9 !== this . nodeType || this . appendChild ( a ) } ) } , prepend : function ( ) { return this . domManip ( arguments , ! 0 , function ( a ) { 1 !== this . nodeType && 11 !== this . nodeType && 9 !== this . nodeType || this . insertBefore ( a , this . firstChild ) } ) } , before : function ( ) { return this . domManip ( arguments , ! 1 , function ( a ) { this . parentNode && this . parentNode . insertBefore ( a , this ) } ) } , after : function ( ) { return this . domManip ( arguments , ! 1 , function ( a ) { this . parentNode && this . parentNode . insertBefore ( a , this . nextSibling ) } ) } , remove : function ( a , b ) { for ( var c , d = 0 ; null != ( c = this [ d ] ) ; d ++ ) ( ! a || ia . filter ( a , [ c ] ) . length > 0 ) && ( b || 1 !== c . nodeType || ia . cleanData ( t ( c ) ) , c . parentNode && ( b && ia . contains ( c . ownerDocument , c ) && q ( t ( c , "script" ) ) , c . parentNode . removeChild ( c ) ) ) ; return this } , empty : function ( ) { for ( var a , b = 0 ; null != ( a = this [ b ] ) ; b ++ ) { for ( 1 === a . nodeType && ia . cleanData ( t ( a , ! 1 ) ) ; a . firstChild ; ) a . removeChild ( a . firstChild ) ; a . options && ia . nodeName ( a , "select" ) && ( a . options . length = 0 ) } return this } , clone : function ( a , b ) { return a = null != a && a , b = null == b ? a : b , this . map ( function ( ) { return ia . clone ( this , a , b ) } ) } , html : function ( a ) { return ia . access ( this , function ( a ) { var c = this [ 0 ] || { } , d = 0 , e = this . length ; if ( a === b ) return 1 === c . nodeType ? c . innerHTML . replace ( Va , "" ) : b ; if ( "string" == typeof a && ! ab . test ( a ) && ( ia . support . htmlSerialize || ! Wa . test ( a ) ) && ( ia . support . leadingWhitespace || ! Xa . test ( a ) ) && ! gb [ ( Za . exec ( a ) || [ "" , "" ] ) [ 1 ] . toLowerCase ( ) ] ) { a = a . replace ( Ya , "<$1></$2>" ) ; try { for ( ; d < e ; d ++ ) c = this [ d ] || { } , 1 === c . nodeType && ( ia . cleanData ( t ( c , ! 1 ) ) , c . innerHTML = a ) ; c = 0 } catch ( f ) { } } c && this . empty ( ) . append ( a ) } , null , a , arguments . length ) } , replaceWith : function ( a ) { var b = ia . isFunction ( a ) ; return b || "string" == typeof a || ( a = ia ( a ) . not ( this ) . detach ( ) ) , this . domManip ( [ a ] , ! 0 , function ( a ) { var b = this . nextSibling , c = this . parentNode ; c && ( ia ( this ) . remove ( ) , c . insertBefore ( a , b ) ) } ) } , detach : function ( a ) { return this . remove ( a , ! 0 ) } , domManip : function ( a , c , d ) { a = ba . apply ( [ ] , a ) ; var e , f , g , h , i , j , k = 0 , l = this . length , m = this , q = l - 1 , r = a [ 0 ] , s = ia . isFunction ( r ) ; if ( s || ! ( l <= 1 || "string" != typeof r || ia . support . checkClone ) && cb . test ( r ) ) return this . each ( function ( e ) { var f = m . eq ( e ) ; s && ( a [ 0 ] = r . call ( this , e , c ? f . html ( ) : b ) ) , f . domManip ( a , c , d ) } ) ; if ( l && ( j = ia . buildFragment ( a , this [ 0 ] . ownerDocument , ! 1 , this ) , e = j . firstChild , 1 === j . childNodes . length && ( j = e ) , e ) ) { for ( c = c && ia . nodeName ( e , "tr" ) , h = ia . map ( t ( j , "script" ) , o ) , g = h . length ; k < l ; k ++ ) f = j , k !== q && ( f = ia . clone ( f , ! 0 , ! 0 ) , g && ia . merge ( h , t ( f , "script" ) ) ) , d . call ( c && ia . nodeName ( this [ k ] , "table" ) ? n ( this [ k ] , "tbody" ) : this [ k ] , f , k ) ; if ( g ) for ( i = h [ h . length - 1 ] . ownerDocument , ia . map ( h , p ) , k = 0 ; k < g ; k ++ ) f = h [ k ] , db . test ( f . type || "" ) && ! ia . _data ( f , "globalEval" ) && ia . contains ( i , f ) && ( f . src ? ia . ajax ( { url : f . src , type : "GET" , dataType : "script" , async : ! 1 , global : ! 1 , "throws" : ! 0 } ) : ia . globalEval ( ( f . text || f . textContent || f . innerHTML || "" ) . replace ( fb , "" ) ) ) ; j = e = null } return this } } ) , ia . each ( { appendTo : "append" , prependTo : "prepend" , insertBefore : "before" , insertAfter : "after" , replaceAll : "replaceWith" } , function ( a , b ) { ia . fn [ a ] = function ( a ) { for ( var c , d = 0 , e = [ ] , f = ia ( a ) , g = f . length - 1 ; d <= g ; d ++ ) c = d === g ? this : this . clone ( ! 0 ) , ia ( f [ d ] ) [ b ] ( c ) , ca . apply ( e , c . get ( ) ) ; return this . pushStack ( e ) } } ) , ia . extend ( { clone : function ( a , b , c ) { var d , e , f , g , h , i = ia . contains ( a . ownerDocument , a ) ; if ( ia . support . html5Clone || ia . isXMLDoc ( a ) || ! Wa . test ( "<" + a . nodeName + ">" ) ? f = a . cloneNode ( ! 0 ) : ( ib . innerHTML = a . outerHTML , ib . removeChild ( f = ib . firstChild ) ) , ! ( ia . support . noCloneEvent && ia . supp
j = n <= g ? i + "0.0000000000000000000" . slice ( 0 , g - n + 2 ) + j : i + j . slice ( 0 , n - g ) + "." + j . slice ( n - g ) ) : j = i + j , j } } ( ) , _ . extend ( BI , { MAX : 0x1000000000000000 , MIN : - 0x1000000000000000 , EVENT _RESPONSE _TIME : 200 , zIndex _layer : 1e5 , zIndex _popover : 1e6 , zIndex _popup : 1e7 , zIndex _masker : 1e8 , zIndex _tip : 1e9 , emptyStr : "" , emptyFn : function ( ) { } , empty : null , Key : { 48 : "0" , 49 : "1" , 50 : "2" , 51 : "3" , 52 : "4" , 53 : "5" , 54 : "6" , 55 : "7" , 56 : "8" , 57 : "9" , 65 : "a" , 66 : "b" , 67 : "c" , 68 : "d" , 69 : "e" , 70 : "f" , 71 : "g" , 72 : "h" , 73 : "i" , 74 : "j" , 75 : "k" , 76 : "l" , 77 : "m" , 78 : "n" , 79 : "o" , 80 : "p" , 81 : "q" , 82 : "r" , 83 : "s" , 84 : "t" , 85 : "u" , 86 : "v" , 87 : "w" , 88 : "x" , 89 : "y" , 90 : "z" , 96 : "0" , 97 : "1" , 98 : "2" , 99 : "3" , 100 : "4" , 101 : "5" , 102 : "6" , 103 : "7" , 104 : "8" , 105 : "9" , 106 : "*" , 107 : "+" , 109 : "-" , 110 : "." , 111 : "/" } , KeyCode : { BACKSPACE : 8 , COMMA : 188 , DELETE : 46 , DOWN : 40 , END : 35 , ENTER : 13 , ESCAPE : 27 , HOME : 36 , LEFT : 37 , NUMPAD _ADD : 107 , NUMPAD _DECIMAL : 110 , NUMPAD _DIVIDE : 111 , NUMPAD _ENTER : 108 , NUMPAD _MULTIPLY : 106 , NUMPAD _SUBTRACT : 109 , PAGE _DOWN : 34 , PAGE _UP : 33 , PERIOD : 190 , RIGHT : 39 , SPACE : 32 , TAB : 9 , UP : 38 } , Status : { SUCCESS : 1 , WRONG : 2 , START : 3 , END : 4 , WAITING : 5 , READY : 6 , RUNNING : 7 , OUTOFBOUNDS : 8 , NULL : - 1 } , Direction : { Top : "top" , Bottom : "bottom" , Left : "left" , Right : "right" , Custom : "custom" } , Axis : { Vertical : "vertical" , Horizontal : "horizontal" } , Selection : { Default : - 2 , None : - 1 , Single : 0 , Multi : 1 , All : 2 } , HorizontalAlign : { Left : "left" , Right : "right" , Center : "center" , Stretch : "stretch" } , VerticalAlign : { Middle : "middle" , Top : "top" , Bottom : "bottom" , Stretch : "stretch" } , StartOfWeek : 1 } ) , BI . version = "2.0" , BI . AbsoluteCenterLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . AbsoluteCenterLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-absolute-center-layout" , hgap : 0 , lgap : 0 , rgap : 0 , vgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . AbsoluteCenterLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , _addElement : function ( a , b ) { var c = this . options , d = BI . AbsoluteCenterLayout . superclass . _addElement . apply ( this , arguments ) ; return d . element . css ( { position : "absolute" , left : c . hgap + c . lgap + ( b . lgap || 0 ) + ( b . hgap || 0 ) , right : c . hgap + c . rgap + ( b . rgap || 0 ) + ( b . hgap || 0 ) , top : c . vgap + c . tgap + ( b . tgap || 0 ) + ( b . vgap || 0 ) , bottom : c . vgap + c . bgap + ( b . bgap || 0 ) + ( b . vgap || 0 ) , margin : "auto" } ) , d } , resize : function ( ) { } , populate : function ( a ) { BI . AbsoluteCenterLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.absolute_center_adapt" , BI . AbsoluteCenterLayout ) , BI . AbsoluteHorizontalLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . AbsoluteHorizontalLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-absolute-horizontal-layout" , hgap : 0 , lgap : 0 , rgap : 0 , vgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . AbsoluteHorizontalLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , _addElement : function ( a , b ) { var c = this . options , d = BI . AbsoluteHorizontalLayout . superclass . _addElement . apply ( this , arguments ) ; return d . element . css ( { position : "absolute" , left : c . hgap + c . lgap + ( b . lgap || 0 ) + ( b . hgap || 0 ) , right : c . hgap + c . rgap + ( b . rgap || 0 ) + ( b . hgap || 0 ) , margin : "auto" } ) , c . vgap + c . tgap + ( b . vgap || 0 ) + ( b . tgap || 0 ) !== 0 && d . element . css ( "top" , c . vgap + c . tgap + ( b . tgap || 0 ) + ( b . vgap || 0 ) ) , c . vgap + c . bgap + ( b . vgap || 0 ) + ( b . bgap || 0 ) !== 0 && d . element . css ( "bottom" , c . vgap + c . bgap + ( b . bgap || 0 ) + ( b . vgap || 0 ) ) , d } , resize : function ( ) { } , populate : function ( a ) { BI . AbsoluteHorizontalLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.absolute_horizontal_adapt" , BI . AbsoluteHorizontalLayout ) , BI . AbsoluteVerticalLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . AbsoluteVerticalLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-absolute-vertical-layout" , hgap : 0 , lgap : 0 , rgap : 0 , vgap : 0 , tgap : 0 , bgap : 0 } ) } , render : function ( ) { BI . AbsoluteVerticalLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , _addElement : function ( a , b ) { var c = this . options , d = BI . AbsoluteVerticalLayout . superclass . _addElement . apply ( this , arguments ) ; return d . element . css ( { position : "absolute" , left : b . lgap , right : b . rgap , top : c . vgap + c . tgap + ( b . tgap || 0 ) + ( b . vgap || 0 ) , bottom : c . vgap + c . bgap + ( b . bgap || 0 ) + ( b . vgap || 0 ) , margin : "auto" } ) , c . hgap + c . lgap + ( b . hgap || 0 ) + ( b . lgap || 0 ) !== 0 && d . element . css ( "left" , c . hgap + c . lgap + ( b . lgap || 0 ) + ( b . hgap || 0 ) ) , c . hgap + c . rgap + ( b . hgap || 0 ) +
BI . shortcut ( "bi.card" , BI . CardLayout ) , BI . DefaultLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . DefaultLayout . superclass . props . apply ( this , arguments ) , { hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 , items : [ ] } ) } , render : function ( ) { BI . DefaultLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , _addElement : function ( a , b ) { var c = this . options , d = BI . DefaultLayout . superclass . _addElement . apply ( this , arguments ) ; return c . vgap + c . tgap + ( b . tgap || 0 ) !== 0 && d . element . css ( { "margin-top" : c . vgap + c . tgap + ( b . tgap || 0 ) + "px" } ) , c . hgap + c . lgap + ( b . lgap || 0 ) !== 0 && d . element . css ( { "margin-left" : c . hgap + c . lgap + ( b . lgap || 0 ) + "px" } ) , c . hgap + c . rgap + ( b . rgap || 0 ) !== 0 && d . element . css ( { "margin-right" : c . hgap + c . rgap + ( b . rgap || 0 ) + "px" } ) , c . vgap + c . bgap + ( b . bgap || 0 ) !== 0 && d . element . css ( { "margin-bottom" : c . vgap + c . bgap + ( b . bgap || 0 ) + "px" } ) , d } , resize : function ( ) { } , populate : function ( a ) { BI . DefaultLayout . superclass . populate . apply ( this , arguments ) , this . _mount ( ) } } ) , BI . shortcut ( "bi.default" , BI . DefaultLayout ) , BI . DivisionLayout = BI . inherit ( BI . Layout , { props : function ( ) { return BI . extend ( BI . DivisionLayout . superclass . props . apply ( this , arguments ) , { baseCls : "bi-division-layout" , columns : null , rows : null , items : [ ] } ) } , render : function ( ) { BI . DivisionLayout . superclass . render . apply ( this , arguments ) , this . populate ( this . options . items ) } , resize : function ( ) { this . stroke ( this . opitons . items ) } , addItem : function ( a ) { throw new Error ( "cannot be added" ) } , stroke : function ( a ) { function b ( a , b , c ) { 0 === b && a . addClass ( "first-row" ) , 0 === c && a . addClass ( "first-col" ) , a . addClass ( BI . isOdd ( b + 1 ) ? "odd-row" : "even-row" ) , a . addClass ( BI . isOdd ( c + 1 ) ? "odd-col" : "even-col" ) , a . addClass ( "center-element" ) } function c ( a , b , c ) { var d = "" ; 0 === b && ( d += " first-row" ) , 0 === c && ( d += " first-col" ) , d += BI . isOdd ( b + 1 ) ? " odd-row" : " even-row" , d += BI . isOdd ( c + 1 ) ? " odd-col" : " even-col" , a . cls = ( a . cls || "" ) + d + " center-element" } function d ( a , d , e ) { a instanceof BI . Widget ? b ( a . element , d , e ) : a . el instanceof BI . Widget ? b ( a . el . element , d , e ) : a . el ? c ( a . el , d , e ) : c ( a , d , e ) } var e = this . options , f = e . rows || e . items . length , g = e . columns || 0 | ( e . items [ 0 ] && e . items [ 0 ] . length ) , h = BI . makeArray ( f ) , i = { } , j = { } ; BI . each ( h , function ( a ) { h [ a ] = BI . makeArray ( g ) } ) , 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 } } , 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 . v
for ( var c = 0 ; c < b . length ; c ++ ) { if ( ! a ) return ; a = a [ b [ c ] ] } return a } } } function k ( a ) { var b = void 0 ; if ( c . isArray ( a ) ) { b = [ ] ; for ( var d = 0 , e = a . length ; d < e ; d ++ ) b [ d ] = k ( a [ d ] ) } else if ( a && i ( a ) ) { b = { } ; for ( var f in a ) c . has ( L , f ) || ( b [ f ] = k ( a [ f ] ) ) } else b = a ; return b } function l ( a ) { if ( null === a ) return null ; if ( Array . isArray ( a ) ) { var b = [ ] . concat ( a ) ; return void 0 !== a . _ _ref _ _ && ( b . _ _ref _ _ = a . _ _ref _ _ ) , b } return k ( a ) } function m ( a , b , d ) { "object" == typeof b && ( d = b , b = a , a = function ( ) { return b . apply ( this , arguments ) } ) ; var e = function ( ) { } , f = b . prototype ; return e . prototype = f , a . prototype = new e , a . superclass = f , c . extend ( a . prototype , d , { superclass : b } ) , a } function n ( a , b ) { return W ( a , b ) } function o ( a ) { return X [ a ] } function p ( a , b ) { X [ a ] = _ . cloneDeep ( b ) } function q ( a ) { for ( var b = "" , d = 0 , e = a . length ; d < e ; d ++ ) b += c . isBoolean ( a [ d ] ) || c . has ( Z , a [ d ] ) ? a [ d ] : "false" ; return new Function ( "return " + b ) ( ) } function r ( a , b , d ) { var e = arguments . length > 3 && void 0 !== arguments [ 3 ] ? arguments [ 3 ] : { } , f = a ; ! f . $watch && f . $vm && ( f = f . $vm ) , i ( d ) && ( e = d , d = d . handler ) , "string" == typeof d && ( d = f [ d ] ) , e = e || { } , e . user = ! 0 ; var g = void 0 ; if ( c . isFunction ( b ) || ! ( g = b . match ( /[a-zA-Z0-9_.*]+|[|][|]|[&][&]|[(]|[)]/g ) ) || 1 === g . length && ! /\*/ . test ( b ) ) return f . $watch ( b , d , e ) , [ ] ; var h = [ ] , j = g . slice ( ) , k = ! 1 , l = ! 1 , m = function ( b , c , f , h ) { k !== ! 0 && ( j [ b ] = ! 0 , 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 ( Z , 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 L || ( 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 L || ( e [ b + c ] = a ) } ) } ) : c . each ( a , function ( a , b ) { b + h [ d ] in L || ( 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 da ( { id : a . _modelHashId + "-" + d , get : function ( ) { return a . model [ d ] } , last : e , listener : a . options . defaultCallback || ba } ) } ; 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 da ( { id : a . _modelHashId + "-" + f , get : c . bind ( g , h ) , last : void 0 , listener : ba } ) } } 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 da ( { 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 da ( { 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 , b , d , e ) { var f = { id : b . id , cb : c . bind ( b . listener , a , d , e , a ) } ; b . sync === ! 0 ? a . syncListeners . push ( f ) : a . asyncListeners . push ( f ) } function B ( a ) { var b =
} , setNotSelectedValue : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] , BI . each ( this . buttons , function ( b , c ) { return BI . isFunction ( c . setSelected ) ? void ( BI . deepContains ( a , c . getValue ( ) ) ? c . setSelected ( ! 1 ) : c . setSelected ( ! 0 ) ) : void c . setNotSelectedValue ( a ) } ) } , setEnabledValue : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] , BI . each ( this . buttons , function ( b , c ) { return BI . isFunction ( c . setEnabledValue ) ? void c . setEnabledValue ( a ) : void ( BI . deepContains ( a , c . getValue ( ) ) ? c . setEnable ( ! 0 ) : c . setEnable ( ! 1 ) ) } ) } , setValue : function ( a ) { a = BI . isArray ( a ) ? a : [ a ] , BI . each ( this . buttons , function ( b , c ) { return BI . isFunction ( c . setSelected ) ? void ( BI . deepContains ( a , c . getValue ( ) ) ? c . setSelected ( ! 0 ) : c . setSelected ( ! 1 ) ) : void c . setValue ( a ) } ) } , getNotSelectedValue : function ( ) { var a = [ ] ; return BI . each ( this . buttons , function ( b , c ) { return c . isEnabled ( ) && ! BI . isFunction ( c . setSelected ) ? void ( a = BI . concat ( a , c . getNotSelectedValue ( ) ) ) : void ( c . isEnabled ( ) && c . isSelected && ! c . isSelected ( ) && a . push ( c . getValue ( ) ) ) } ) , a } , getValue : function ( ) { var a = [ ] ; return BI . each ( this . buttons , function ( b , c ) { return c . isEnabled ( ) && ! BI . isFunction ( c . setSelected ) ? void ( a = BI . concat ( a , c . getValue ( ) ) ) : void ( c . isEnabled ( ) && c . isSelected && c . isSelected ( ) && a . push ( c . getValue ( ) ) ) } ) , a } , getSelectedButtons : function ( ) { var a = [ ] ; return BI . each ( this . buttons , function ( b , c ) { return c . isEnabled ( ) && ! BI . isFunction ( c . setSelected ) ? void ( a = a . concat ( c . getSelectedButtons ( ) ) ) : void ( c . isSelected && c . isSelected ( ) && a . push ( c ) ) } ) , a } , getNotSelectedButtons : function ( ) { var a = [ ] ; return BI . each ( this . buttons , function ( b , c ) { return c . isEnabled ( ) && ! BI . isFunction ( c . setSelected ) ? void ( a = a . concat ( c . getNotSelectedButtons ( ) ) ) : void ( c . isSelected && ! c . isSelected ( ) && a . push ( c ) ) } ) , a } , getAllLeaves : function ( ) { var a = [ ] ; return BI . each ( this . buttons , function ( b , c ) { return c . isEnabled ( ) && ! BI . isFunction ( c . setSelected ) ? void ( a = a . concat ( c . getAllLeaves ( ) ) ) : void ( c . isEnabled ( ) && a . push ( c ) ) } ) , a } , getIndexByValue : function ( a ) { var b = - 1 ; return BI . any ( this . buttons , function ( c , d ) { var e = d . getValue ( ) ; if ( d . isEnabled ( ) && ( e === a || BI . contains ( e , a ) ) ) return b = c , ! 0 } ) , b } , getNodeById : function ( a ) { var b ; return BI . any ( this . buttons , function ( c , d ) { if ( d . isEnabled ( ) ) { if ( d . attr ( "id" ) === a ) return b = d , ! 0 ; if ( BI . isFunction ( d . getNodeById ) && ( b = d . getNodeById ( a ) ) ) return ! 0 } } ) , b } , getNodeByValue : function ( a ) { var b ; return BI . any ( this . buttons , function ( c , d ) { 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 : { } , 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
} , isViewVisible : function ( ) { return this . isEnabled ( ) && this . combo . isEnabled ( ) && ! ! this . popupView && this . popupView . isVisible ( ) } , showView : function ( a ) { this . isEnabled ( ) && this . combo . isEnabled ( ) && this . _popupView ( a ) } , hideView : function ( ) { this . _hideView ( ) } , getView : function ( ) { return this . popupView } , getPopupPosition : function ( ) { return this . position } , toggle : function ( ) { this . _toggle ( ) } , destroy : 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 . Resizers . remove ( this . getName ( ) ) , BI . Combo . superclass . destroy . apply ( this , arguments ) } } ) , BI . Combo . EVENT _TRIGGER _CHANGE = "EVENT_TRIGGER_CHANGE" , BI . Combo . EVENT _CHANGE = "EVENT_CHANGE" , BI . Combo . EVENT _EXPAND = "EVENT_EXPAND" , BI . Combo . EVENT _COLLAPSE = "EVENT_COLLAPSE" , BI . Combo . EVENT _AFTER _INIT = "EVENT_AFTER_INIT" , BI . Combo . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . Combo . EVENT _AFTER _POPUPVIEW = "EVENT_AFTER_POPUPVIEW" , BI . Combo . EVENT _BEFORE _HIDEVIEW = "EVENT_BEFORE_HIDEVIEW" , BI . Combo . EVENT _AFTER _HIDEVIEW = "EVENT_AFTER_HIDEVIEW" , BI . shortcut ( "bi.combo" , BI . Combo ) , BI . Expander = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . Expander . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-expander" , trigger : "click" , toggle : ! 0 , isDefaultInit : ! 1 , el : { } , popup : { } , expanderClass : "bi-expander-popup" , hoverClass : "bi-expander-hover" } ) } , _init : function ( ) { BI . Expander . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . _expanded = ! ! b . el . open , this . _initExpander ( ) , this . _initPullDownAction ( ) , this . expander . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { a . isEnabled ( ) && a . isValid ( ) && ( b === BI . Events . EXPAND && a . _popupView ( ) , b === BI . Events . COLLAPSE && a . _hideView ( ) , b === BI . Events . EXPAND && ( a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , a . fireEvent ( BI . Expander . EVENT _EXPAND ) ) , b === BI . Events . COLLAPSE && ( a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , a . isViewVisible ( ) && a . fireEvent ( BI . Expander . EVENT _COLLAPSE ) ) , b === BI . Events . CLICK && a . fireEvent ( BI . Expander . EVENT _TRIGGER _CHANGE , c , d ) ) } ) , this . element . hover ( function ( ) { a . isEnabled ( ) && a . isValid ( ) && a . expander . isEnabled ( ) && a . expander . isValid ( ) && a . element . addClass ( b . hoverClass ) } , function ( ) { a . isEnabled ( ) && a . isValid ( ) && a . expander . isEnabled ( ) && a . expander . isValid ( ) && a . element . removeClass ( b . hoverClass ) } ) , BI . createWidget ( { type : "bi.vertical" , scrolly : ! 1 , element : this , items : [ { el : this . expander } ] } ) , b . isDefaultInit && this . _assertPopupView ( ) , this . expander . isOpened ( ) === ! 0 && this . _popupView ( ) } , _toggle : function ( ) { this . _assertPopupViewRender ( ) , this . popupView . isVisible ( ) ? this . _hideView ( ) : this . isEnabled ( ) && this . _popupView ( ) } , _initPullDownAction : function ( ) { var a = this , b = this . options , c = this . options . trigger . split ( "," ) ; BI . each ( c , function ( c , d ) { switch ( d ) { case "hover" : a . element [ d ] ( function ( b ) { a . isEnabled ( ) && a . isValid ( ) && a . expander . isEnabled ( ) && a . expander . isValid ( ) && ( a . _popupView ( ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . EXPAND , "" , a . expander ) , a . fireEvent ( BI . Expander . EVENT _EXPAND ) ) } , function ( ) { a . isEnabled ( ) && a . isValid ( ) && a . expander . isEnabled ( ) && a . expander . isValid ( ) && b . toggle && ( a . _hideView ( ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . COLLAPSE , "" , a . expander ) , a . fireEvent ( BI . Expander . EVENT _COLLAPSE ) ) } ) ; break ; case "click" : d && a . element . off ( d + "." + a . getName ( ) ) . on ( d + "." + a . getName ( ) , BI . debounce ( function ( c ) { a . expander . element . _ _isMouseInBounds _ _ ( c ) && a . isEnabled ( ) && a . isValid ( ) && a . expander . isEnabled ( ) && a . expander . isValid ( ) && ( b . toggle ? a . _toggle ( ) : a . _popupView ( ) , a . isExpanded ( ) ? ( a . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . EXPAND , "" , a . expander ) , a . fireEvent ( BI . Expander . EVENT _EXPAND ) ) : ( a . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . COLLAPSE , "" , a . expander ) , a . fireEvent ( BI . Expander . EVENT _COLLAPSE ) ) ) } , BI . EVENT _RESPONSE _TIME , { leading : ! 0 , trailing : ! 1 } ) ) } } ) } , _initExpander : function ( ) { this . expander = BI . createWidget ( this . options . el ) } , _assertPopupView : function ( ) { var a = this , b = this . options ; null == this . popupView && ( this . popupView = BI . createWidget ( this . options . popup , { type : "bi.button_group" , cls : "expander-popup" , layouts : [ { type : " bi . vertical
} ) } , 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 . remove ( d , g . element ) ; var a = 10 ; BI . each ( d , function ( b , c ) { c . css ( { top : a } ) , a += c . outerHeight ( ) + 10 } ) } } ] } ) , h = 10 ; BI . each ( d , function ( a , b ) { h += b . outerHeight ( ) + 10 } ) , BI . createWidget ( { type : "bi.absolute" , element : c , items : [ { el : g , left : "50%" , top : h } ] } ) , d . push ( g . element ) , g . element . css ( { "margin-left" : - 1 * g . element . outerWidth ( ) / 2 } ) , g . element . removeClass ( "bi-message-leave" ) . addClass ( "bi-message-enter" ) , f && BI . delay ( function ( ) { g . element . removeClass ( "bi-message-enter" ) . addClass ( "bi-message-leave" ) , g . destroy ( ) } , 5e3 ) } , _show : function ( d , e , f , g ) { b = BI . Widget . _renderEngine . createElement ( '<div class="bi-z-index-mask">' ) . css ( { position : "absolute" , zIndex : BI . zIndex _tip - 2 , top : 0 , left : 0 , right : 0 , bottom : 0 , opacity : . 5 } ) . appendTo ( "body" ) , c = BI . Widget . _renderEngine . createElement ( '<div class="bi-message-depend">' ) . css ( { position : "absolute" , zIndex : BI . zIndex _tip - 1 , top : 0 , left : 0 , right : 0 , bottom : 0 } ) . appendTo ( "body" ) ; var h = function ( ) { a . destroy ( ) , b . remove ( ) } , i = [ ] ; d === ! 0 && i . push ( { el : { type : "bi.button" , text : BI . i18nText ( "BI-Basic_Cancel" ) , level : "ignore" , handler : function ( ) { h ( ) , BI . isFunction ( g ) && g . apply ( null , [ ! 1 ] ) } } } ) , i . push ( { el : { type : "bi.button" , text : BI . i18nText ( "BI-Basic_OK" ) , handler : function ( ) { h ( ) , BI . isFunction ( g ) && g . apply ( null , [ ! 0 ] ) } } } ) ; var j = { element : c , type : "bi.center_adapt" , items : [ { type : "bi.border" , cls : "bi-card" , items : { north : { el : { type : "bi.border" , cls : "bi-message-title bi-background" , items : { center : { el : { type : "bi.label" , cls : "bi-font-bold" , text : e || BI . i18nText ( "BI-Basic_Prompt" ) , textAlign : "left" , hgap : 20 , height : 40 } } , east : { el : { type : "bi.icon_button" , cls : "bi-message-close close-font" , handler : function ( ) { h ( ) , BI . isFunction ( g ) && g . apply ( null , [ ! 1 ] ) } } , width : 60 } } } , height : 40 } , center : { el : { type : "bi.label" , vgap : 10 , hgap : 20 , whiteSpace : "normal" , text : f } } , south : { el : { type : "bi.absolute" , items : [ { el : { type : "bi.right_vertical_adapt" , lgap : 10 , items : i } , top : 0 , left : 20 , right : 20 , bottom : 0 } ] } , height : 44 } } , width : 450 , height : 200 } ] } ; a = BI . createWidget ( j ) } } } ( ) , BI . GridView = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . GridView . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-grid-view" , overflowX : ! 0 , overflowY : ! 0 , overscanColumnCount : 0 , overscanRowCount : 0 , rowHeightGetter : BI . emptyFn , columnWidthGetter : BI . emptyFn , scrollLeft : 0 , scrollTop : 0 , items : [ ] } ) } , _init : function ( ) { BI . GridView . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . renderedCells = [ ] , this . renderedKeys = [ ] , this . renderRange = { } , this . _scrollLock = ! 1 , this . _debounceRelease = BI . debounce ( function ( ) { a . _scrollLock = ! 1 } , 1e3 / 60 ) , this . container = BI . createWidget ( { type : "bi.absolute" } ) , this . element . scroll ( function ( ) { a . _scrollLock !== ! 0 && ( b . scrollLeft = a . element . scrollLeft ( ) , b . scrollTop = a . element . scrollTop ( ) , a . _calculateChildrenToRender ( ) , a . fireEvent ( BI . GridView . EVENT _SCROLL , { scrollLeft : b . scrollLeft , scrollTop : b . scrollTop } ) ) } ) , BI . createWidget ( { type : "bi.vertical" , element : this , scrollable : b . overflowX === ! 0 && b . overflowY === ! 0 , scrolly : b . overflowX === ! 1 && b . overflowY === ! 0 , scrollx : b . overflowX === ! 0 && b . overflowY === ! 1 , items : [ this . container ] } ) , b . items . length > 0 && this . _populate ( ) } , mounted : function ( ) { var a = this . options ; 0 === a . scrollLeft && 0 === a . scrollTop || ( this . element . scrollTop ( a . scrollTop ) , this . element . scrollLeft ( a . scrollLeft ) ) } , _getOverscanIndices : function ( a , b , c , d ) { return { overscanStartIndex : Math . max ( 0 , c - b ) , overscanStopIndex : Math . min ( a - 1 , d + b ) } } , _calculateChildrenToRender : function ( ) { var a = this , b = this . options , c = b . width , d = b . height , e = BI . clamp ( b . scrollLeft , 0 , this . _getMaxScrollLeft ( ) ) , f = BI . clamp ( b . scrollTop , 0 , this . _getMaxScrol
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 = "ImageButton.EVENT_CHANGE" , BI . shortcut ( "bi.image_button" , BI . ImageButton ) , BI . Button = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( a ) { var b = BI . Button . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( b , { baseCls : ( b . baseCls || "" ) + " bi-button" + ( BI . isIE ( ) && BI . isIE9Below ( ) ? " hack" : "" ) , minWidth : a . block === ! 0 || a . clear === ! 0 ? 0 : 80 , height : 24 , shadow : a . clear !== ! 0 , isShadowShowingOnSelected : ! 0 , readonly : ! 0 , iconCls : "" , level : "common" , block : ! 1 , clear : ! 1 , ghost : ! 1 , textAlign : "center" , whiteSpace : "nowrap" , forceCenter : ! 1 , textWidth : null , textHeight : null , hgap : a . clear ? 0 : 10 , vgap : 0 , tgap : 0 , bgap : 0 , lgap : 0 , rgap : 0 } ) } , _init : function ( ) { BI . Button . superclass . _init . apply ( this , arguments ) ; var a = this . options ; ! BI . isNumber ( a . height ) || a . clear || a . block ? a . clear || a . block ? this . element . css ( { lineHeight : a . height + "px" } ) : this . element . css ( { lineHeight : a . height - 2 + "px" } ) : this . element . css ( { height : a . height + "px" , lineHeight : a . height - 2 + "px" } ) , BI . isKey ( a . iconCls ) ? ( this . icon = BI . createWidget ( { type : "bi.icon" , width : 18 , height : a . height - 2 } ) , this . text = BI . createWidget ( { type : "bi.label" , text : a . text , value : a . value , height : a . height - 2 } ) , BI . createWidget ( { type : "bi.horizontal_auto" , cls : a . iconCls , element : this , hgap : a . hgap , vgap : a . vgap , tgap : a . tgap , bgap : a . bgap , lgap : a . lgap , rgap : a . rgap , items : [ { type : "bi.horizontal" , items : [ this . icon , this . text ] } ] } ) ) : this . text = BI . createWidget ( { type : "bi.label" , textAlign : a . textAlign , whiteSpace : a . whiteSpace , forceCenter : a . forceCenter , textWidth : a . textWidth , textHeight : a . textHeight , hgap : a . hgap , vgap : a . vgap , tgap : a . tgap , bgap : a . bgap , lgap : a . lgap , rgap : a . rgap , element : this , text : a . text , value : a . value } ) , a . block === ! 0 && this . element . addClass ( "block" ) , a . clear === ! 0 && this . element . addClass ( "clear" ) , a . ghost === ! 0 && this . element . addClass ( "ghost" ) , a . minWidth > 0 && this . element . css ( { "min-width" : a . minWidth + "px" } ) } , doClick : function ( ) { BI . Button . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . Button . EVENT _CHANGE , this ) } , setText : function ( a ) { BI . Button . superclass . setText . apply ( this , arguments ) , this . text . setText ( a ) } , setValue : function ( a ) { BI . Button . superclass . setValue . apply ( this , arguments ) , this . isReadOnly ( ) || this . text . setValue ( a ) } , 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 ) } , destroy : function ( ) { BI . Button . superclass . destroy . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.button" , BI . Button ) , BI . Button . EVENT _CHANGE = "EVENT_CHANGE" , BI . TextButton = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { var a = BI . TextButton . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-text-button" , textAlign : "center" , whiteSpace : "nowrap" , forceCenter : ! 1 , textWidth : null , textHeight : null , hgap : 0 , lgap : 0 , rgap : 0 , text : "" , py : "" } ) } , _init : function ( ) { BI . TextButton . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . text = BI . createWidget ( { type : "bi.label" , element : this , textAlign : a . textAlign , whiteSpace : a . whiteSpace , textWidth : a . textWidth , textHeight : a . textHeight , forceCenter : a . forceCenter , width : a . width , height : a . height , hgap : a . hgap , lgap : a . lgap , rgap : a . rgap , text : a . text , value : a . value , py : a . py , keyword : a . keyword } ) } , doClick : function ( ) { BI . TextButton . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . TextButton . EVENT _CHANGE , this . getValue ( ) , this ) } , 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 ) { BI . TextButton . superclass . setText . apply ( this , arguments ) , a = BI . isArray ( a ) ? a . join ( "," ) : a , t
BI . MultifileEditor . EVENT _UPLOADSTART = "MultifileEditor.EVENT_UPLOADSTART" , BI . MultifileEditor . EVENT _ERROR = "MultifileEditor.EVENT_ERROR" , BI . MultifileEditor . EVENT _PROGRESS = "MultifileEditor.EVENT_PROGRESS" , BI . MultifileEditor . EVENT _UPLOADED = "MultifileEditor.EVENT_UPLOADED" , BI . shortcut ( "bi.multifile_editor" , BI . MultifileEditor ) , BI . TextAreaEditor = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { return BI . extend ( BI . TextAreaEditor . superclass . _defaultConfig . apply ( ) , { baseCls : "bi-textarea-editor" , value : "" } ) } , _init : function ( ) { BI . TextAreaEditor . superclass . _init . apply ( this , arguments ) ; var a = this . options , b = this ; this . content = BI . createWidget ( { type : "bi.layout" , tagName : "textarea" , width : "100%" , height : "100%" , cls : "bi-textarea textarea-editor-content display-block" } ) , this . content . element . css ( { resize : "none" , whiteSpace : "normal" } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : { type : "bi.adaptive" , items : [ this . content ] } , left : 10 , right : 10 , top : 8 , bottom : 8 } ] } ) , this . content . element . on ( "input propertychange" , function ( a ) { b . _checkWaterMark ( ) , b . fireEvent ( BI . TextAreaEditor . EVENT _CHANGE ) } ) , this . content . element . focus ( function ( ) { b . isValid ( ) && ( b . _focus ( ) , b . fireEvent ( BI . TextAreaEditor . EVENT _FOCUS ) ) , BI . Widget . _renderEngine . createElement ( document ) . bind ( "mousedown." + b . getName ( ) , function ( a ) { BI . DOM . isExist ( b ) && ! b . element . _ _isMouseInBounds _ _ ( a ) && ( BI . Widget . _renderEngine . createElement ( document ) . unbind ( "mousedown." + b . getName ( ) ) , b . content . element . blur ( ) ) } ) } ) , this . content . element . blur ( function ( ) { b . isValid ( ) && ( b . _blur ( ) , b . fireEvent ( BI . TextAreaEditor . EVENT _BLUR ) ) , BI . Widget . _renderEngine . createElement ( document ) . unbind ( "mousedown." + b . getName ( ) ) } ) , BI . isKey ( a . value ) && b . setValue ( a . value ) , BI . isNotNull ( a . style ) && b . setStyle ( a . style ) , this . _checkWaterMark ( ) } , _checkWaterMark : function ( ) { var a = this , b = this . options , c = this . getValue ( ) ; BI . isNotEmptyString ( c ) ? ( this . watermark && this . watermark . destroy ( ) , this . watermark = null ) : BI . isNotEmptyString ( b . watermark ) && ( this . watermark ? ( this . watermark . setText ( b . watermark ) , this . watermark . setValid ( ! b . invalid ) , this . watermark . setEnable ( ! b . disabled ) ) : ( this . watermark = BI . createWidget ( { type : "bi.text_button" , cls : "bi-water-mark" , textAlign : "left" , height : 30 , text : b . watermark , invalid : b . invalid , disabled : b . disabled } ) , this . watermark . on ( BI . TextButton . EVENT _CHANGE , function ( ) { a . focus ( ) } ) , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ { el : this . watermark , left : 6 , top : 0 , right : 0 } ] } ) ) ) } , _focus : function ( ) { this . content . element . addClass ( "textarea-editor-focus" ) , this . _checkWaterMark ( ) } , _blur : function ( ) { this . content . element . removeClass ( "textarea-editor-focus" ) , this . _checkWaterMark ( ) } , focus : function ( ) { this . _focus ( ) , this . content . element . focus ( ) } , blur : function ( ) { this . _blur ( ) , this . content . element . blur ( ) } , getValue : function ( ) { return this . content . element . val ( ) } , setValue : function ( a ) { this . content . element . val ( a ) , this . _checkWaterMark ( ) } , setStyle : function ( a ) { this . style = a , this . element . css ( a ) , this . content . element . css ( BI . extend ( { } , a , { color : a . color || BI . DOM . getContrastColor ( BI . DOM . isRGBColor ( a . backgroundColor ) ? BI . DOM . rgb2hex ( a . backgroundColor ) : a . backgroundColor ) } ) ) } , getStyle : function ( ) { return this . style } , _setValid : function ( a ) { BI . TextAreaEditor . superclass . _setValid . apply ( this , arguments ) } } ) , BI . TextAreaEditor . EVENT _CHANGE = "EVENT_CHANGE" , BI . TextAreaEditor . EVENT _BLUR = "EVENT_BLUR" , BI . TextAreaEditor . EVENT _FOCUS = "EVENT_FOCUS" , BI . shortcut ( "bi.textarea_editor" , BI . TextAreaEditor ) , BI . Html = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { var a = BI . Html . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-text" , textAlign : "left" , whiteSpace : "normal" , lineHeight : null , handler : null , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 , text : "" } ) } , render : function ( ) { var a = this , b = this . options ; b . hgap + b . lgap > 0 && this . element . css ( { "padding-left" : b . hgap + b . lgap + "px" } ) , b . hgap + b . rgap > 0 && this . element . css ( { "padding-right" : b . hgap + b . rgap + "px" } ) , b . vgap + b . tgap > 0 && this . element . css ( { "padding-top" : b . vgap + b . tgap + "px" } ) , b . vgap + b . bgap > 0 && this . element . css ( { "padding-bottom" : b . vgap + b . bgap + "px" } ) , BI . isNumber ( b . height ) && this . element . css ( { lineHeight : b . height + "px" } ) , BI . isNumber ( b . lineHeight ) && this . element . css ( {
vgap : a . vgap , lgap : a . lgap , rgap : a . rgap , tgap : a . tgap , bgap : a . bgap , element : this , items : [ this . text ] } ) , void ( a . textHeight && this . element . css ( { "line-height" : a . textHeight + "px" } ) ) ) : BI . isNumber ( a . height ) && a . height > 0 ? BI . isNumber ( a . textHeight ) && a . textHeight > 0 ? ( this . element . css ( { "line-height" : a . height + "px" } ) , void BI . createWidget ( { type : "bi.adaptive" , height : a . height , scrollable : "normal" === a . whiteSpace , element : this , items : [ { el : this . text = BI . createWidget ( b ) , left : a . hgap + a . lgap , right : a . hgap + a . rgap , top : a . vgap + a . tgap , bottom : a . vgap + a . bgap } ] } ) ) : ( BI . extend ( b , { hgap : a . hgap , vgap : a . vgap , lgap : a . lgap , rgap : a . rgap , tgap : a . tgap , bgap : a . bgap } ) , this . element . css ( { "line-height" : a . height + "px" } ) , this . text = BI . createWidget ( BI . extend ( b , { element : this } ) ) , void BI . createWidget ( { type : "bi.layout" , element : this . text , scrollable : "normal" === a . whiteSpace } ) ) : ( BI . extend ( b , { hgap : a . hgap , vgap : a . vgap , lgap : a . lgap , rgap : a . rgap , tgap : a . tgap , bgap : a . bgap } ) , a . forceCenter ? ( this . text = BI . createWidget ( b ) , BI . createWidget ( { type : "bi.vertical_adapt" , element : this , items : [ this . text ] } ) , void ( a . textHeight && this . element . css ( { "line-height" : a . textHeight + "px" } ) ) ) : ( this . text = BI . createWidget ( BI . extend ( b , { element : this } ) ) , void BI . createWidget ( { type : "bi.layout" , element : this . text , scrollable : "normal" === a . whiteSpace } ) ) ) } , _setEnable : function ( a ) { BI . HtmlLabel . superclass . _setEnable . apply ( this , arguments ) , a === ! 0 ? this . element . removeClass ( "base-disabled disabled" ) : a === ! 1 && this . element . addClass ( "base-disabled disabled" ) } , 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 . HtmlLabel . superclass . setValue . apply ( this , arguments ) , this . isReadOnly ( ) || this . text . setValue ( a ) } , populate : function ( ) { BI . HtmlLabel . superclass . populate . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.html_label" , BI . HtmlLabel ) , BI . IconLabel = BI . inherit ( BI . Single , { props : { baseCls : "bi-icon-label horizon-center" , iconWidth : null , iconHeight : null } , _init : function ( ) { BI . IconLabel . 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 ] } ) ) } } ) , BI . shortcut ( "bi.icon_label" , BI . IconLabel ) , BI . Label = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { var a = BI . Label . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : ( a . baseCls || "" ) + " bi-label" , textAlign : "center" , whiteSpace : "nowrap" , forceCenter : ! 1 , textWidth : null , textHeight : null , hgap : 0 , vgap : 0 , lgap : 0 , rgap : 0 , tgap : 0 , bgap : 0 , text : "" , py : "" , keyword : "" , highLight : ! 1 } ) } , _createJson : function ( ) { var a = this . options ; return { type : "bi.text" , textAlign : a . textAlign , whiteSpace : a . whiteSpace , lineHeight : a . textHeight , text : a . text , value : a . value , py : a . py , keyword : a . keyword , highLight : a . highLight } } , _init : function ( ) { BI . Label . superclass . _init . apply ( this , arguments ) , "center" === this . options . textAlign ? this . _createCenterEl ( ) : this . _createNotCenterEl ( ) } , _createCenterEl : function ( ) { var a = this . options , b = this . _createJson ( ) ; if ( b . textAlign = "left" , BI . isNumber ( a . width ) && a . width > 0 ) { if ( BI . isNumber ( a . textWidth ) && a . textWidth > 0 ) { if ( BI . isNumber ( a . height ) && a . height > 0 ) { var c = ( a . width - a . textWidth ) / 2 ; return BI . createWidget ( { type : "bi.adaptive" , height : a . height , scrollable : "normal" === a . whiteSpace , element : this , items : [ { el : this . text = BI . createWidget ( b ) , left : c + a . hgap + a . lgap , right : c + a . hgap + a . rgap , top : a . vgap + a . tgap , bottom : a . vgap + a . bgap } ] } ) , void this . element . css ( { "line-height" : a . height + "px" } ) } return b . width = a . textWidth , b . textAlign = a . textAlign , void BI . createWidget ( { type : "bi.center_adapt" , scrollable : "normal" === a . whiteSpace , element : this , items : [ { el : this . text = BI . createWidget ( b ) } ] } ) } return "normal" == a . whiteSpace ? ( BI . extend ( b
} , getMDom : function ( a , b , c ) { if ( ! b ) return null ; for ( ; b && b . id !== a . treeId ; ) { for ( var d = 0 , e = c . length ; b . tagName && d < e ; d ++ ) if ( tools . eqs ( b . tagName , c [ d ] . tagName ) && null !== b . getAttribute ( c [ d ] . attrName ) ) return b ; b = b . parentNode } return null } , getNodeMainDom : function ( a ) { return $ ( a ) . parent ( "li" ) . get ( 0 ) || $ ( a ) . parentsUntil ( "li" ) . parent ( ) . get ( 0 ) } , isChildOrSelf : function ( a , b ) { return $ ( a ) . closest ( "#" + b ) . length > 0 } , uCanDo : function ( a , b ) { return ! 0 } } , view = { addNodes : function ( a , b , c , d ) { if ( ! a . data . keep . leaf || ! b || b . isParent ) if ( tools . isArray ( c ) || ( c = [ c ] ) , a . data . simpleData . enable && ( c = data . transformTozTreeFormat ( a , c ) ) , b ) { var e = $$ ( b , consts . id . SWITCH , a ) , f = $$ ( b , consts . id . ICON , a ) , g = $$ ( b , consts . id . UL , a ) ; b . open || ( view . replaceSwitchClass ( b , e , consts . folder . CLOSE ) , view . replaceIcoClass ( b , f , consts . folder . CLOSE ) , b . open = ! 1 , g . css ( { display : "none" } ) ) , data . addNodesData ( a , b , c ) , view . createNodes ( a , b . level + 1 , c , b ) , d || view . expandCollapseParentNode ( a , b , ! 0 ) } else data . addNodesData ( a , data . getRoot ( a ) , c ) , view . createNodes ( a , 0 , c , null ) } , appendNodes : function ( a , b , c , d , e , f ) { if ( ! c ) return [ ] ; for ( var g = [ ] , h = a . data . key . children , i = 0 , j = c . length ; i < j ; i ++ ) { var k = c [ i ] ; if ( e ) { var l = d ? d : data . getRoot ( a ) , m = l [ h ] , n = m . length == c . length && 0 == i , o = i == c . length - 1 ; data . initNode ( a , b , k , d , n , o , f ) , data . addNodeCache ( a , k ) } var p = [ ] ; k [ h ] && k [ h ] . length > 0 && ( p = view . appendNodes ( a , b + 1 , k [ h ] , k , e , f && k . open ) ) , f && ( view . makeDOMNodeMainBefore ( g , a , k ) , view . makeDOMNodeLine ( g , a , k ) , data . getBeforeA ( a , k , g ) , view . makeDOMNodeNameBefore ( g , a , k ) , data . getInnerBeforeA ( a , k , g ) , view . makeDOMNodeIcon ( g , a , k ) , data . getInnerAfterA ( a , k , g ) , view . makeDOMNodeNameAfter ( g , a , k ) , data . getAfterA ( a , k , g ) , k . isParent && k . open && view . makeUlHtml ( a , k , g , p . join ( "" ) ) , view . makeDOMNodeMainAfter ( g , a , k ) , data . addCreatedNode ( a , k ) ) } return g } , appendParentULDom : function ( a , b ) { var c = [ ] , d = $$ ( b , a ) ; ! d . get ( 0 ) && b . parentTId && ( view . appendParentULDom ( a , b . getParentNode ( ) ) , d = $$ ( b , a ) ) ; var e = $$ ( b , consts . id . UL , a ) ; e . get ( 0 ) && e . remove ( ) ; var f = a . data . key . children , g = view . appendNodes ( a , b . level + 1 , b [ f ] , b , ! 1 , ! 0 ) ; view . makeUlHtml ( a , b , c , g . join ( "" ) ) , d . append ( c . join ( "" ) ) } , asyncNode : function ( setting , node , isSilent , callback ) { var i , l ; if ( node && ! node . isParent ) return tools . apply ( callback ) , ! 1 ; if ( node && node . isAjaxing ) return ! 1 ; if ( 0 == tools . apply ( setting . callback . beforeAsync , [ setting . treeId , node ] , ! 0 ) ) return tools . apply ( callback ) , ! 1 ; if ( node ) { node . isAjaxing = ! 0 ; var icoObj = $$ ( node , consts . id . ICON , setting ) ; icoObj . attr ( { style : "" , "class" : consts . className . BUTTON + " " + consts . className . ICO _LOADING } ) } var tmpParam = { } ; for ( i = 0 , l = setting . async . autoParam . length ; node && i < l ; i ++ ) { var pKey = setting . async . autoParam [ i ] . split ( "=" ) , spKey = pKey ; pKey . length > 1 && ( spKey = pKey [ 1 ] , pKey = pKey [ 0 ] ) , tmpParam [ spKey ] = node [ pKey ] } if ( tools . isArray ( setting . async . otherParam ) ) for ( i = 0 , l = setting . async . otherParam . length ; i < l ; i += 2 ) tmpParam [ setting . async . otherParam [ i ] ] = setting . async . otherParam [ i + 1 ] ; else for ( var p in setting . async . otherParam ) tmpParam [ p ] = setting . async . otherParam [ p ] ; var _tmpV = data . getRoot ( setting ) . _ver ; return $ . ajax ( { contentType : setting . async . contentType , cache : ! 1 , type : setting . async . type , url : tools . apply ( setting . async . url , [ setting . treeId , node ] , setting . async . url ) , data : tmpParam , dataType : setting . async . dataType , success : function ( msg ) { if ( _tmpV == data . getRoot ( setting ) . _ver ) { var newNodes = [ ] ; try { newNodes = msg && 0 != msg . length ? "string" == typeof msg ? eval ( "(" + msg + ")" ) : msg : [ ] } catch ( err ) { newNodes = msg } node && ( node . isAjaxing = null , node . zAsync = ! 0 ) , view . setNodeLineIcos ( setting , node ) , newNodes && "" !== newNodes ? ( newNodes = tools . apply ( setting . async . dataFilter , [ setting . treeId , node , newNodes ] , newNodes ) , view . addNodes ( setting , node , newNodes ? tools . clone ( newNodes ) : [ ] , ! ! isSilent ) ) : view . addNodes ( setting , node , [ ] , ! ! isSilent ) , setting . treeObj . trigger ( consts . event . ASYNC _SUCCESS , [ setting . treeId , node , msg ] ) , tools . apply ( callback ) } } , error : function ( a , b , c ) { _tmpV == data . getRoot ( setting ) . _ver && ( node && ( node . isAjaxing = null ) , view . setNodeLineIcos ( setting , node ) , setting . treeObj . trigger ( consts . event . ASYNC _ERROR , [ setting . treeId , node , a , b , c ] ) ) } } ) , ! 0 } , cancelPreSelectedNode : function ( a , b , c ) { var d , e , f = data . getRoot ( a ) . curSelectedList ; for ( d = f . length - 1 ; d >= 0 ; d -- ) if ( e = f [ d ] , b === e || ! b && ( ! c || c !== e ) ) { if ( $$ ( e , consts . id . A , a ) . removeClass ( consts . node . CURSELECTED ) , b
_defaultConfig : function ( ) { var a = BI . HalfIconButton . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { extraCls : "bi-half-button bi-border bi-high-light-border" , height : 14 , width : 14 , selected : ! 1 } ) } , _init : function ( ) { BI . HalfButton . superclass . _init . apply ( this , arguments ) , BI . createWidget ( { type : "bi.center_adapt" , element : this . element , items : [ { type : "bi.layout" , cls : "bi-high-light-background" , width : 8 , height : 8 } ] } ) } , doClick : function ( ) { BI . HalfButton . superclass . doClick . apply ( this , arguments ) , this . isValid ( ) && this . fireEvent ( BI . HalfButton . EVENT _CHANGE ) } } ) , BI . HalfButton . EVENT _CHANGE = "HalfIconButton.EVENT_CHANGE" , BI . shortcut ( "bi.half_button" , BI . HalfButton ) , BI . MultiSelectItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-multi-select-item" , height : 24 , logic : { dynamic : ! 1 } , iconWrapperWidth : 26 } ) } , _init : function ( ) { BI . MultiSelectItem . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . checkbox = BI . createWidget ( { type : "bi.checkbox" } ) , this . text = BI . createWidget ( { type : "bi.label" , cls : "list-item-text" , textAlign : "left" , whiteSpace : "nowrap" , textHeight : b . height , height : b . height , hgap : b . hgap , rgap : b . rgap , text : b . text , keyword : b . keyword , value : b . value , py : b . py } ) , this . checkbox . on ( BI . Controller . EVENT _CHANGE , function ( b ) { b === BI . Events . CLICK && a . setSelected ( a . isSelected ( ) ) } ) , BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( "horizontal" , BI . extend ( b . logic , { items : BI . LogicFactory . createLogicItemsByDirection ( "left" , { type : "bi.center_adapt" , items : [ this . checkbox ] , width : b . iconWrapperWidth } , this . text ) } ) ) ) ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doClick : function ( ) { BI . MultiSelectItem . superclass . doClick . apply ( this , arguments ) , this . checkbox . setSelected ( this . isSelected ( ) ) , this . isValid ( ) && this . fireEvent ( BI . MultiSelectItem . EVENT _CHANGE , this . getValue ( ) , this ) } , setSelected : function ( a ) { BI . MultiSelectItem . superclass . setSelected . apply ( this , arguments ) , this . checkbox . setSelected ( a ) } } ) , BI . MultiSelectItem . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multi_select_item" , BI . MultiSelectItem ) , BI . SingleSelectIconTextItem = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { return BI . extend ( BI . SingleSelectIconTextItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-single-select-icon-text-item bi-list-item-active" , iconCls : "" , height : 24 } ) } , _init : function ( ) { BI . SingleSelectIconTextItem . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . text = BI . createWidget ( { type : "bi.icon_text_item" , element : this , cls : b . iconCls , once : b . once , iconWrapperWidth : b . iconWrapperWidth , selected : b . selected , height : b . height , iconHeight : b . iconHeight , iconWidth : b . iconWidth , text : b . text , keyword : b . keyword , value : b . value , py : b . py } ) , this . text . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) } , isSelected : function ( ) { return this . text . isSelected ( ) } , setSelected : function ( a ) { this . text . setSelected ( a ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doClick : function ( ) { BI . SingleSelectIconTextItem . superclass . doClick . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.single_select_icon_text_item" , BI . SingleSelectIconTextItem ) , BI . SingleSelectItem = BI . inherit ( BI . BasicButton , { _defaultConfig : function ( ) { return BI . extend ( BI . SingleSelectItem . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-single-select-item bi-list-item-active" , hgap : 10 , height : 24 , textAlign : "left" } ) } , _init : function ( ) { BI . SingleSelectItem . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . text = BI . createWidget ( { type : "bi.label" , element : this , textAlign : a . textAlign , whiteSpace : "nowrap" , textHeight : a . height , height : a . height , hgap : a . hgap , text : a . text , keyword : a . keyword , value : a . value , title : a . title || a . text , warningTitle : a . warningTitle , py : a . py } ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doClick : function ( ) { BI . SingleSe
var c = this . _yearCreator ( b . year || this . currentYear ) , d = c . length , e = BI . makeArray ( d , "" ) , f = [ 0 , 6 , 1 , 7 , 2 , 8 , 3 , 9 , 4 , 10 , 5 , 11 ] ; BI . each ( c , function ( a , b ) { e [ a ] = c [ f [ a ] ] } ) ; var g = [ ] ; g . push ( e . slice ( 0 , 2 ) ) , g . push ( e . slice ( 2 , 4 ) ) , g . push ( e . slice ( 4 , 6 ) ) , g . push ( e . slice ( 6 , 8 ) ) , g . push ( e . slice ( 8 , 10 ) ) , g . push ( e . slice ( 10 , 12 ) ) , g = BI . map ( g , function ( a , b ) { return BI . map ( b , function ( a , b ) { return BI . extend ( b , { type : "bi.text_item" , cls : "bi-list-item-active" , textAlign : "center" , whiteSpace : "normal" , once : ! 1 , forceSelected : ! 0 , height : 24 , width : 45 , value : b . text , disabled : b . disabled } ) } ) } ) , this . years = BI . createWidget ( { type : "bi.button_group" , behaviors : b . behaviors , items : BI . createItems ( g , { } ) , layouts : [ BI . LogicFactory . createLogic ( "table" , BI . extend ( { } , b . logic , { columns : 2 , rows : 6 , columnSize : [ . 5 , . 5 ] , rowSize : 24 } ) ) , { type : "bi.center_adapt" , vgap : 1 } ] } ) , this . years . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( "vertical" , BI . extend ( { } , b . logic , { items : BI . LogicFactory . createLogicItemsByDirection ( "top" , this . years ) } ) ) ) ) } , isFrontYear : function ( ) { var a = this . options , b = a . year ; return b = 0 | b , ! ! BI . checkDateVoid ( BI . YearCalendar . getStartYear ( b ) - 1 , 1 , 1 , a . min , a . max ) [ 0 ] } , isFinalYear : function ( ) { var a = this . options , b = ( this . _const , a . year ) ; return b = 0 | b , ! ! BI . checkDateVoid ( BI . YearCalendar . getEndYear ( b ) + 1 , 1 , 1 , a . min , a . max ) [ 0 ] } , setValue : function ( a ) { this . years . setValue ( [ a ] ) } , getValue : function ( ) { return this . years . getValue ( ) [ 0 ] } } ) , BI . extend ( BI . YearCalendar , { INTERVAL : 12 , getStartYear : function ( a ) { var b = BI . getDate ( ) . getFullYear ( ) ; return a - ( ( a - b + 3 ) % BI . YearCalendar . INTERVAL + 12 ) % BI . YearCalendar . INTERVAL } , getEndYear : function ( a ) { return BI . YearCalendar . getStartYear ( a ) + BI . YearCalendar . INTERVAL - 1 } , getPageByYear : function ( a ) { var b = BI . getDate ( ) . getFullYear ( ) ; return a = BI . YearCalendar . getStartYear ( a ) , ( a - b + 3 ) / BI . YearCalendar . INTERVAL } } ) , BI . shortcut ( "bi.year_calendar" , BI . YearCalendar ) , BI . ArrowTreeGroupNodeCheckbox = BI . inherit ( BI . IconButton , { _defaultConfig : function ( ) { return BI . extend ( BI . ArrowTreeGroupNodeCheckbox . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-arrow-group-node-checkbox" } ) } , _init : function ( ) { BI . ArrowTreeGroupNodeCheckbox . superclass . _init . apply ( this , arguments ) } , setSelected : function ( a ) { BI . ArrowTreeGroupNodeCheckbox . superclass . setSelected . apply ( this , arguments ) , a ? this . element . removeClass ( "expander-right-font" ) . addClass ( "expander-down-font" ) : this . element . removeClass ( "expander-down-font" ) . addClass ( "expander-right-font" ) } } ) , BI . shortcut ( "bi.arrow_group_node_checkbox" , BI . ArrowTreeGroupNodeCheckbox ) , BI . CheckingMarkNode = BI . inherit ( BI . IconButton , { _defaultConfig : function ( ) { return BI . extend ( BI . CheckingMarkNode . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "check-mark-font" } ) } , _init : function ( ) { BI . CheckingMarkNode . superclass . _init . apply ( this , arguments ) , this . setSelected ( this . options . selected ) } , setSelected : function ( a ) { BI . CheckingMarkNode . superclass . setSelected . apply ( this , arguments ) , a === ! 0 ? this . element . addClass ( "check-mark-font" ) : this . element . removeClass ( "check-mark-font" ) } } ) , BI . shortcut ( "bi.checking_mark_node" , BI . CheckingMarkNode ) , BI . FirstTreeNodeCheckbox = BI . inherit ( BI . IconButton , { _defaultConfig : function ( ) { return BI . extend ( BI . FirstTreeNodeCheckbox . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "tree-collapse-icon-type2" , iconWidth : 24 , iconHeight : 24 } ) } , _init : function ( ) { BI . FirstTreeNodeCheckbox . superclass . _init . apply ( this , arguments ) } , setSelected : function ( a ) { BI . FirstTreeNodeCheckbox . superclass . setSelected . apply ( this , arguments ) , a === ! 0 ? this . element . addClass ( "tree-expand-icon-type2" ) : this . element . removeClass ( "tree-expand-icon-type2" ) } } ) , BI . shortcut ( "bi.first_tree_node_checkbox" , BI . FirstTreeNodeCheckbox ) , BI . LastTreeNodeCheckbox = BI . inherit ( BI . IconButton , { _defaultConfig : function ( ) { return BI . extend ( BI . LastTreeNodeCheckbox . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "tree-collapse-icon-type4" , iconWidth : 24 , iconHeight : 24 } ) } , _init : function ( ) { BI . LastTreeNodeCheckbox . superclass . _init . apply ( this , arguments ) } , setSelected : function ( a ) { BI . LastTreeNodeCheckbox . superclass . setSelected . apply ( this , arguments ) , a === ! 0 ? this . el
} ) , this . combo . on ( BI . Combo . EVENT _COLLAPSE , function ( ) { a . fireEvent ( BI . BubbleCombo . EVENT _COLLAPSE , arguments ) } ) , this . combo . on ( BI . Combo . EVENT _AFTER _INIT , function ( ) { a . fireEvent ( BI . BubbleCombo . EVENT _AFTER _INIT , arguments ) } ) , this . combo . on ( BI . Combo . EVENT _BEFORE _POPUPVIEW , function ( ) { a . fireEvent ( BI . BubbleCombo . EVENT _BEFORE _POPUPVIEW , arguments ) } ) , this . combo . on ( BI . Combo . EVENT _AFTER _POPUPVIEW , function ( ) { a . _showTriangle ( ) , a . fireEvent ( BI . BubbleCombo . EVENT _AFTER _POPUPVIEW , arguments ) } ) , this . combo . on ( BI . Combo . EVENT _BEFORE _HIDEVIEW , function ( ) { a . _hideTriangle ( ) , a . fireEvent ( BI . BubbleCombo . EVENT _BEFORE _HIDEVIEW , arguments ) } ) , this . combo . on ( BI . Combo . EVENT _AFTER _HIDEVIEW , function ( ) { a . fireEvent ( BI . BubbleCombo . EVENT _AFTER _HIDEVIEW , arguments ) } ) } , _getAdjustLength : function ( ) { return this . _const . TRIANGLE _LENGTH + this . options . adjustLength } , _createTriangle : function ( a ) { var b = { } , c = { } , d = this . options . adjustLength , e = this . element . offset ( ) , f = e . left , g = e . left + this . element . outerWidth ( ) , h = e . top , i = e . top + this . element . outerHeight ( ) ; switch ( a ) { case "left" : b = { top : h , height : this . element . outerHeight ( ) , left : f - d - this . _const . TRIANGLE _LENGTH } , c = { width : this . _const . TRIANGLE _LENGTH } ; break ; case "right" : b = { top : h , height : this . element . outerHeight ( ) , left : g + d } , c = { width : this . _const . TRIANGLE _LENGTH } ; break ; case "top" : b = { left : f , width : this . element . outerWidth ( ) , top : h - d - this . _const . TRIANGLE _LENGTH } , c = { height : this . _const . TRIANGLE _LENGTH } ; break ; case "bottom" : b = { left : f , width : this . element . outerWidth ( ) , top : i + d } , c = { height : this . _const . TRIANGLE _LENGTH } } this . triangle && this . triangle . destroy ( ) , this . triangle = BI . createWidget ( c , { type : "bi.center_adapt" , cls : "button-combo-triangle-wrapper" , items : [ { type : "bi.layout" , cls : "bubble-combo-triangle-" + a } ] } ) , b . el = this . triangle , BI . createWidget ( { type : "bi.absolute" , element : this , items : [ b ] } ) } , _createLeftTriangle : function ( ) { this . _createTriangle ( "left" ) } , _createRightTriangle : function ( ) { this . _createTriangle ( "right" ) } , _createTopTriangle : function ( ) { this . _createTriangle ( "top" ) } , _createBottomTriangle : function ( ) { this . _createTriangle ( "bottom" ) } , _showTriangle : function ( ) { var a = this . combo . getPopupPosition ( ) ; switch ( a . dir ) { case "left,top" : case "left,bottom" : this . _createLeftTriangle ( ) ; break ; case "right,top" : case "right,bottom" : this . _createRightTriangle ( ) ; break ; case "top,left" : case "top,right" : this . _createTopTriangle ( ) ; break ; case "bottom,left" : case "bottom,right" : this . _createBottomTriangle ( ) } } , _hideTriangle : function ( ) { this . triangle && this . triangle . destroy ( ) , this . triangle = null } , hideView : function ( ) { this . _hideTriangle ( ) , this . combo && this . combo . hideView ( ) } , showView : function ( ) { this . combo && this . combo . showView ( ) } , isViewVisible : function ( ) { return this . combo . isViewVisible ( ) } } ) , BI . BubbleCombo . EVENT _TRIGGER _CHANGE = "EVENT_TRIGGER_CHANGE" , BI . BubbleCombo . EVENT _CHANGE = "EVENT_CHANGE" , BI . BubbleCombo . EVENT _EXPAND = "EVENT_EXPAND" , BI . BubbleCombo . EVENT _COLLAPSE = "EVENT_COLLAPSE" , BI . BubbleCombo . EVENT _AFTER _INIT = "EVENT_AFTER_INIT" , BI . BubbleCombo . EVENT _BEFORE _POPUPVIEW = "EVENT_BEFORE_POPUPVIEW" , BI . BubbleCombo . EVENT _AFTER _POPUPVIEW = "EVENT_AFTER_POPUPVIEW" , BI . BubbleCombo . EVENT _BEFORE _HIDEVIEW = "EVENT_BEFORE_HIDEVIEW" , BI . BubbleCombo . EVENT _AFTER _HIDEVIEW = "EVENT_AFTER_HIDEVIEW" , BI . shortcut ( "bi.bubble_combo" , BI . BubbleCombo ) , BI . BubblePopupView = BI . inherit ( BI . PopupView , { _defaultConfig : function ( ) { var a = BI . BubblePopupView . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : a . baseCls + " bi-bubble-popup-view" , minWidth : 220 , maxWidth : 300 , minHeight : 90 } ) } , _init : function ( ) { BI . BubblePopupView . superclass . _init . apply ( this , arguments ) } } ) , BI . shortcut ( "bi.bubble_popup_view" , BI . BubblePopupView ) , BI . BubblePopupBarView = BI . inherit ( BI . BubblePopupView , { _defaultConfig : function ( ) { return BI . extend ( BI . BubblePopupBarView . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-bubble-bar-popup-view" , buttons : [ { value : BI . i18nText ( "BI-Basic_Cancel" ) , ghost : ! 0 } , { value : BI . i18nText ( BI . i18nText ( "BI-Basic_Sure" ) ) } ] } ) } , _init : function ( ) { BI . BubblePopupBarView . superclass . _init . apply ( this , arguments ) } , _createToolBar : function ( ) { var a = this . options , b = this , c = [ ] ; return BI . each ( a . buttons , function ( a , d ) { BI . isWidget ( d ) ? c . push ( d ) : c . push ( BI . extend ( { type : "bi.button" , height : 2
this . trigger . setValue ( a . childValue || a . value ) } , populate : function ( a ) { this . trigger . populate ( this . _formatItemArray ( a ) ) } } ) , BI . shortcut ( "bi.down_list_select_text_trigger" , BI . DownListSelectTextTrigger ) , BI . ClearEditor = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { var a = BI . ClearEditor . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : "bi-clear-editor" , height : 24 , errorText : "" , watermark : "" , validationChecker : BI . emptyFn , quitChecker : BI . emptyFn } ) } , _init : function ( ) { BI . ClearEditor . 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 , errorText : b . errorText , validationChecker : b . validationChecker , quitChecker : b . quitChecker , value : b . value } ) , this . clear = BI . createWidget ( { type : "bi.icon_button" , stopEvent : ! 0 , cls : "search-close-h-font" } ) , this . clear . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . setValue ( "" ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , BI . Events . STOPEDIT ) , a . fireEvent ( BI . ClearEditor . EVENT _CLEAR ) } ) , BI . createWidget ( { element : this , type : "bi.htape" , items : [ { el : this . 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 . ClearEditor . EVENT _FOCUS ) } ) , this . editor . on ( BI . Editor . EVENT _BLUR , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _BLUR ) } ) , this . editor . on ( BI . Editor . EVENT _CLICK , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _CLICK ) } ) , this . editor . on ( BI . Editor . EVENT _CHANGE , function ( ) { a . _checkClear ( ) , a . fireEvent ( BI . ClearEditor . EVENT _CHANGE ) } ) , this . editor . on ( BI . Editor . EVENT _KEY _DOWN , function ( b ) { a . fireEvent ( BI . ClearEditor . EVENT _KEY _DOWN , b ) } ) , this . editor . on ( BI . Editor . EVENT _SPACE , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _SPACE ) } ) , this . editor . on ( BI . Editor . EVENT _BACKSPACE , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _BACKSPACE ) } ) , this . editor . on ( BI . Editor . EVENT _VALID , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _VALID ) } ) , this . editor . on ( BI . Editor . EVENT _ERROR , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _ERROR ) } ) , this . editor . on ( BI . Editor . EVENT _ENTER , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _ENTER ) } ) , this . editor . on ( BI . Editor . EVENT _RESTRICT , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _RESTRICT ) } ) , this . editor . on ( BI . Editor . EVENT _EMPTY , function ( ) { a . _checkClear ( ) , a . fireEvent ( BI . ClearEditor . EVENT _EMPTY ) } ) , this . editor . on ( BI . Editor . EVENT _REMOVE , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _REMOVE ) } ) , this . editor . on ( BI . Editor . EVENT _CONFIRM , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _CONFIRM ) } ) , this . editor . on ( BI . Editor . EVENT _START , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _START ) } ) , this . editor . on ( BI . Editor . EVENT _PAUSE , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _PAUSE ) } ) , this . editor . on ( BI . Editor . EVENT _STOP , function ( ) { a . fireEvent ( BI . ClearEditor . EVENT _STOP ) } ) , BI . isKey ( b . value ) ? this . clear . visible ( ) : this . clear . invisible ( ) } , _checkClear : function ( ) { this . getValue ( ) ? this . clear . visible ( ) : this . clear . invisible ( ) } , focus : function ( ) { this . editor . focus ( ) } , blur : function ( ) { this . editor . blur ( ) } , getValue : function ( ) { if ( this . isValid ( ) ) { var a = this . editor . getValue ( ) . match ( /[\S]+/g ) ; return BI . isNull ( a ) ? "" : a [ a . length - 1 ] } } , setValue : function ( a ) { this . editor . setValue ( a ) , BI . isKey ( a ) && this . clear . visible ( ) } , isValid : function ( ) { return this . editor . isValid ( ) } } ) , BI . ClearEditor . EVENT _CHANGE = "EVENT_CHANGE" , BI . ClearEditor . EVENT _FOCUS = "EVENT_FOCUS" , BI . ClearEditor . EVENT _BLUR = "EVENT_BLUR" , BI . ClearEditor . EVENT _CLICK = "EVENT_CLICK" , BI . ClearEditor . EVENT _KEY _DOWN = "EVENT_KEY_DOWN" , BI . ClearEditor . EVENT _SPACE = "EVENT_SPACE" , BI . ClearEditor . EVENT _BACKSPACE = "EVENT_BACKSPACE" , BI . ClearEditor . EVENT _CLEAR = "EVENT_CLEAR" , BI . ClearEditor . EVENT _START = "EVENT_START" , BI . ClearEditor . EVENT _PAUSE = "EVENT_PAUSE" , BI . ClearEditor . EVENT _STOP = "EVENT_STOP" , BI . ClearEditor . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . ClearEditor . EVENT _VALID = "EVENT_VALID" , BI . ClearEditor . EVENT _ERROR = "EVENT_ERROR" , BI . ClearEditor . EVENT _ENTER = "EVENT_ENTER" , BI . ClearEditor . EVENT _RESTRICT = "EVENT_RESTRICT" , BI . ClearEditor . EVENT _REMOVE = "EVENT_REMOVE" , BI . ClearEditor . EVENT _EMPTY = "EVENT_EMPTY" , BI . shortcut ( "bi.clear_editor" , BI . ClearEditor ) ,
} } ) , BI . ListPane . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.list_pane" , BI . ListPane ) , BI . Panel = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . Panel . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-panel bi-border" , title : "" , titleButtons : [ ] , el : { } , logic : { dynamic : ! 1 } } ) } , _init : function ( ) { BI . Panel . superclass . _init . apply ( this , arguments ) ; var a = this . options ; BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( "vertical" , BI . extend ( a . logic , { items : BI . LogicFactory . createLogicItemsByDirection ( "top" , this . _createTitle ( ) , this . options . el ) } ) ) ) ) } , _createTitle : function ( ) { var a = this , b = this . options ; return this . text = BI . createWidget ( { type : "bi.label" , cls : "panel-title-text" , text : b . title , height : 30 } ) , this . button _group = BI . createWidget ( { type : "bi.button_group" , items : b . titleButtons , layouts : [ { type : "bi.center_adapt" , lgap : 10 } ] } ) , this . button _group . on ( BI . Controller . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . button _group . on ( BI . ButtonGroup . EVENT _CHANGE , function ( b , c ) { a . fireEvent ( BI . Panel . EVENT _CHANGE , b , c ) } ) , { el : { type : "bi.left_right_vertical_adapt" , cls : "panel-title bi-header-background bi-border-bottom" , height : 29 , items : { left : [ this . text ] , right : [ this . button _group ] } , lhgap : 10 , rhgap : 10 } , height : 29 } } , setTitle : function ( a ) { this . text . setValue ( a ) } } ) , BI . Panel . EVENT _CHANGE = "Panel.EVENT_CHANGE" , BI . shortcut ( "bi.panel" , BI . Panel ) , BI . LinearSegmentButton = BI . inherit ( BI . BasicButton , { props : { extraCls : "bi-line-segment-button bi-list-item-effect" , once : ! 0 , readonly : ! 0 , hgap : 10 , height : 25 } , render : function ( ) { var a = this , b = this . options ; return [ { type : "bi.label" , text : b . text , height : b . height , value : b . value , hgap : b . hgap , ref : function ( ) { a . text = this } } , { type : "bi.absolute" , items : [ { el : { type : "bi.layout" , cls : "line-segment-button-line" , height : 2 , ref : function ( ) { a . line = this } } , left : 0 , right : 0 , bottom : 0 } ] } ] } , setSelected : function ( a ) { BI . LinearSegmentButton . superclass . setSelected . apply ( this , arguments ) , a ? this . line . element . addClass ( "bi-high-light-background" ) : this . line . element . removeClass ( "bi-high-light-background" ) } , setText : function ( a ) { this . text . setText ( a ) } } ) , BI . shortcut ( "bi.linear_segment_button" , BI . LinearSegmentButton ) , BI . LinearSegment = BI . inherit ( BI . Widget , { props : { baseCls : "bi-linear-segment bi-split-bottom" , items : [ ] , height : 29 } , render : function ( ) { var a = this , b = this . options ; return { type : "bi.button_group" , items : BI . createItems ( b . items , { type : "bi.linear_segment_button" , height : b . height - 1 } ) , layout : [ { type : "bi.center" } ] , listeners : [ { eventName : "__EVENT_CHANGE__" , action : function ( ) { a . fireEvent ( "__EVENT_CHANGE__" , arguments ) } } , { eventName : "EVENT_CHANGE" , action : function ( ) { a . fireEvent ( "EVENT_CHANGE" ) } } ] , ref : function ( ) { a . buttonGroup = this } } } , setValue : function ( a ) { this . buttonGroup . setValue ( a ) } , setEnabledValue : function ( a ) { this . buttonGroup . setEnabledValue ( a ) } , getValue : function ( ) { return this . buttonGroup . getValue ( ) } } ) , BI . shortcut ( "bi.linear_segment" , BI . LinearSegment ) , BI . SelectList = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SelectList . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-select-list" , direction : BI . Direction . Top , logic : { dynamic : ! 0 } , items : [ ] , itemsCreator : BI . emptyFn , hasNext : BI . emptyFn , onLoaded : BI . emptyFn , toolbar : { type : "bi.multi_select_bar" , iconWrapperWidth : 36 } , el : { type : "bi.list_pane" } } ) } , _init : function ( ) { BI . SelectList . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . toolbar = BI . createWidget ( b . toolbar ) , this . allSelected = ! 1 , this . toolbar . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { a . allSelected = this . isSelected ( ) , b === BI . Events . CLICK && ( a . setAllSelected ( a . allSelected ) , a . fireEvent ( BI . SelectList . EVENT _CHANGE , c , d ) ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , this . list = BI . createWidget ( b . el , { type : "bi.list_pane" , items : b . items , itemsCreator : function ( c , d ) { 1 === c . times && a . toolbar . setVisible ( ! 1 ) , b . itemsCreator ( c , function ( b ) { d . apply ( a , arguments ) , 1 === c . times && ( a . toolbar . setVisible ( b && b . length > 0 ) , a . toolbar . setEnable ( b && b . length > 0 ) ) , a . _checkAllSelected ( ) } ) } , onLoaded : b . onLoaded , hasNext : b . hasNext } ) , this . list . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { b === BI . Events . CLICK && ( a . _checkAllSelected ( ) , a . fireEvent ( BI . Select
BI . defaults ( f , g ) , d . _formatItems ( f . children , b + 1 , f ) ) : ( g . type = "bi.mid_tree_leaf_item" , 0 !== e || c || ( g . type = "bi.first_tree_leaf_item" ) , e === a . length - 1 && ( g . type = "bi.last_tree_leaf_item" ) , BI . defaults ( f , g ) ) } ) , a } , _assertId : function ( a ) { BI . each ( a , function ( a , b ) { BI . isKey ( b . id ) || ( b . id = BI . UUID ( ) ) } ) } , initTree : function ( a ) { var b = this , c = this . options ; this . empty ( ) , this . _assertId ( a ) , this . tree = BI . createWidget ( { type : "bi.custom_tree" , element : this , expander : BI . extend ( { el : { } , popup : { type : "bi.custom_tree" } } , c . expander ) , items : this . _formatItems ( BI . Tree . transformToTreeFormat ( a ) , 0 ) , value : c . value , el : BI . extend ( { type : "bi.button_tree" , chooseType : 0 , layouts : [ { type : "bi.vertical" } ] } , c . el ) } ) , this . tree . on ( BI . Controller . EVENT _CHANGE , function ( a , c , d ) { b . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) , a === BI . Events . CLICK && b . fireEvent ( BI . LevelTree . EVENT _CHANGE , c , d ) } ) } , stroke : function ( a ) { this . tree . stroke . apply ( this . tree , arguments ) } , populate : function ( a , b ) { a = this . _formatItems ( BI . Tree . transformToTreeFormat ( a ) , 0 ) , this . tree . populate ( a , b ) } , setValue : function ( a ) { this . tree . setValue ( a ) } , getValue : function ( ) { return this . tree . getValue ( ) } , getAllLeaves : function ( ) { return this . tree . getAllLeaves ( ) } , getNodeById : function ( a ) { return this . tree . getNodeById ( a ) } , getNodeByValue : function ( a ) { return this . tree . getNodeByValue ( a ) } } ) , BI . LevelTree . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.level_tree" , BI . LevelTree ) , BI . DisplayTree = BI . inherit ( BI . TreeView , { _defaultConfig : function ( ) { return BI . extend ( BI . DisplayTree . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-display-tree" } ) } , _init : function ( ) { BI . DisplayTree . superclass . _init . apply ( this , arguments ) } , _configSetting : function ( ) { function a ( a , b ) { return ! 1 } var b = { view : { selectedMulti : ! 1 , dblClickExpand : ! 1 , showIcon : ! 1 , nameIsHTML : ! 0 , showTitle : ! 1 } , data : { key : { title : "title" , name : "text" } , simpleData : { enable : ! 0 } } , callback : { beforeCollapse : a } } ; return b } , _dealWidthNodes : function ( a ) { a = BI . DisplayTree . superclass . _dealWidthNodes . apply ( this , arguments ) ; this . options ; return BI . each ( a , function ( a , b ) { b . isParent = b . isParent || b . parent , null == b . text && b . count > 0 && ( b . text = b . value + "(" + BI . i18nText ( "BI-Basic_Altogether" ) + b . count + BI . i18nText ( "BI-Basic_Count" ) + ")" ) } ) , a } , initTree : function ( a , b ) { var b = b || this . _configSetting ( ) ; this . nodes = $ . fn . zTree . init ( this . tree . element , b , a ) } , destroy : function ( ) { BI . DisplayTree . superclass . destroy . apply ( this , arguments ) } } ) , BI . DisplayTree . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.display_tree" , BI . DisplayTree ) , BI . SimpleTreeView = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SimpleTreeView . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-simple-tree" , itemsCreator : BI . emptyFn , items : null } ) } , _init : function ( ) { BI . SimpleTreeView . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . structure = new BI . Tree , this . tree = BI . createWidget ( { type : "bi.tree_view" , element : this , itemsCreator : function ( c , d ) { var e = function ( b ) { d ( { items : b } ) , a . structure . initTree ( BI . Tree . transformToTreeFormat ( b ) ) } ; BI . isNotNull ( b . items ) ? e ( b . items ) : b . itemsCreator ( c , e ) } } ) , this . tree . on ( BI . TreeView . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . SimpleTreeView . EVENT _CHANGE , arguments ) } ) , BI . isNotEmptyArray ( b . items ) && this . populate ( ) , BI . isNotNull ( b . value ) && this . setValue ( b . value ) } , populate : function ( a , b ) { a && ( this . options . items = a ) , this . tree . stroke ( { keyword : b } ) } , _digest : function ( a ) { a || ( a = [ ] ) ; var b = this , c = { } , d = [ ] ; return BI . each ( a , function ( a , e ) { var f = b . structure . search ( e , "value" ) ; if ( f ) { var g = f ; for ( g = g . getParent ( ) , g && ( c [ g . value ] || ( c [ g . value ] = 0 ) , c [ g . value ] ++ ) ; g && g . getChildrenLength ( ) <= c [ g . value ] ; ) d . push ( g . value ) , g = g . getParent ( ) , g && ( c [ g . value ] || ( c [ g . value ] = 0 ) , c [ g . value ] ++ ) } } ) , BI . makeObject ( a . concat ( d ) ) } , setValue : function ( a ) { this . tree . setValue ( this . _digest ( a ) ) } , _getValue : function ( ) { var a = [ ] , b = this . tree . getValue ( ) , c = function ( b ) { BI . each ( b , function ( b , d ) { BI . isEmpty ( d ) ? a . push ( b ) : c ( d ) } ) } ; return c ( b ) , a } , empty : function ( ) { this . tree . empty ( ) } , getValue : function ( ) { var a = this , b = [ ] , c = this . _getValue ( ) ; return BI . each ( c , function ( c , d ) { var e = a . structure . search ( d , "value" ) ; e && a . structure . _traverse ( e , function ( a ) { a . isLeaf ( ) && b . push ( a . value ) } ) } ) , b } } ) , BI . SimpleTreeView . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( " bi . simp
} ) , this . cancelButton . on ( BI . TextButton . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . DateTimePopup . BUTTON _CANCEL _EVENT _CHANGE ) } ) , this . okButton = BI . createWidget ( { type : "bi.text_button" , forceCenter : ! 0 , cls : "multidate-popup-button bi-border-top" , shadow : ! 0 , text : BI . i18nText ( "BI-Basic_OK" ) } ) , this . okButton . on ( BI . TextButton . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . DateTimePopup . BUTTON _OK _EVENT _CHANGE ) } ) , this . dateCombo = BI . createWidget ( { type : "bi.date_calendar_popup" , behaviors : b . behaviors , min : a . options . min , max : a . options . max } ) , a . dateCombo . on ( BI . DateCalendarPopup . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . DateTimePopup . CALENDAR _EVENT _CHANGE ) } ) , this . dateButton = BI . createWidget ( { type : "bi.grid" , items : [ [ this . cancelButton , this . okButton ] ] } ) , BI . createWidget ( { element : this , type : "bi.vtape" , items : [ { el : this . dateCombo } , { el : { type : "bi.center_adapt" , cls : "bi-split-top" , items : [ { type : "bi.dynamic_date_time_select" , ref : function ( b ) { a . timeSelect = b } } ] } , height : 50 } , { el : this . dateButton , height : 30 } ] } ) , this . setValue ( b . value ) } , setValue : function ( a ) { var b , c = a ; BI . isNull ( c ) ? ( b = BI . getDate ( ) , this . dateCombo . setValue ( { year : b . getFullYear ( ) , month : b . getMonth ( ) + 1 , day : b . getDate ( ) } ) , this . timeSelect . setValue ( { hour : b . getHours ( ) , minute : b . getMinutes ( ) , second : b . getSeconds ( ) } ) ) : ( this . dateCombo . setValue ( { year : c . year , month : c . month , day : c . day } ) , this . timeSelect . setValue ( { hour : c . hour , minute : c . minute , second : c . second } ) ) } , getValue : function ( ) { return BI . extend ( { year : this . dateCombo . getValue ( ) . year , month : this . dateCombo . getValue ( ) . month , day : this . dateCombo . getValue ( ) . day } , this . timeSelect . getValue ( ) ) } } ) , BI . DateTimePopup . BUTTON _OK _EVENT _CHANGE = "BUTTON_OK_EVENT_CHANGE" , BI . DateTimePopup . BUTTON _CANCEL _EVENT _CHANGE = "BUTTON_CANCEL_EVENT_CHANGE" , BI . DateTimePopup . CALENDAR _EVENT _CHANGE = "CALENDAR_EVENT_CHANGE" , BI . shortcut ( "bi.date_time_popup" , BI . DateTimePopup ) , BI . DateTimeTrigger = BI . inherit ( BI . Trigger , { _const : { hgap : 4 } , _defaultConfig : function ( ) { return BI . extend ( BI . DateTimeTrigger . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-date-time-trigger" , min : "1900-01-01" , max : "2099-12-31" , height : 24 , width : 200 } ) } , _init : function ( ) { BI . DateTimeTrigger . superclass . _init . apply ( this , arguments ) ; var a = this . options , b = this . _const ; this . text = BI . createWidget ( { type : "bi.label" , textAlign : "left" , height : a . height , width : a . width , hgap : b . hgap } ) , BI . createWidget ( { type : "bi.htape" , element : this , items : [ { el : this . text } , { el : BI . createWidget ( ) , width : a . height } ] } ) , this . setValue ( a . value ) } , _printTime : function ( a ) { return a < 10 ? "0" + a : a } , setValue : function ( a ) { var b , c = a ; if ( BI . isNull ( c ) ) c = BI . getDate ( ) , b = BI . print ( c , "%Y-%X-%d %H:%M:%S" ) ; else { var d = BI . getDate ( c . year , c . month - 1 , c . day , c . hour , c . minute , c . second ) ; b = BI . print ( d , "%Y-%X-%d %H:%M:%S" ) } this . text . setText ( b ) , this . text . setTitle ( b ) } } ) , BI . shortcut ( "bi.date_time_trigger" , BI . DateTimeTrigger ) , BI . StaticDateTimePaneCard = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { var a = BI . StaticDateTimePaneCard . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { baseCls : "bi-date-time-pane" , min : "1900-01-01" , max : "2099-12-31" , selectedTime : null } ) } , _init : function ( ) { BI . StaticDateTimePaneCard . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . today = BI . getDate ( ) , this . _year = this . today . getFullYear ( ) , this . _month = this . today . getMonth ( ) + 1 , this . selectedTime = b . selectedTime || { year : this . _year , month : this . _month } , this . datePicker = BI . createWidget ( { type : "bi.date_picker" , behaviors : b . behaviors , min : b . min , max : b . max } ) , 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 .
BI . DynamicDateCombo . EVENT _VALID = "EVENT_VALID" , BI . DynamicDateCombo . EVENT _ERROR = "EVENT_ERROR" , BI . DynamicDateCombo . EVENT _BEFORE _POPUPVIEW = "BI.DynamicDateCombo.EVENT_BEFORE_POPUPVIEW" , BI . shortcut ( "bi.dynamic_date_combo" , BI . DynamicDateCombo ) , BI . extend ( BI . DynamicDateCombo , { Static : 1 , Dynamic : 2 } ) , BI . DynamicDateParamItem = BI . inherit ( BI . Widget , { props : { baseCls : "bi-dynamic-date-param-item" , dateType : BI . DynamicDateCard . TYPE . YEAR , value : 0 , offset : 0 , height : 24 } , render : function ( ) { var a = this , b = this . options ; return { type : "bi.htape" , items : [ { el : { type : "bi.sign_editor" , cls : "bi-border" , height : 22 , validationChecker : function ( a ) { return BI . isNaturalNumber ( a ) } , value : b . value , ref : function ( ) { a . editor = this } , errorText : function ( a ) { return BI . isEmptyString ( a ) ? BI . i18nText ( "BI-Basic_Please_Input_Content" ) : BI . i18nText ( "BI-Please_Input_Natural_Number" ) } , allowBlank : ! 1 , listeners : [ { eventName : BI . SignEditor . EVENT _CONFIRM , action : function ( ) { a . fireEvent ( BI . DynamicDateParamItem . EVENT _CHANGE ) } } ] } , width : 60 } , { el : { type : "bi.label" , height : 24 , text : this . _getText ( ) } , width : b . dateType === BI . DynamicDateCard . TYPE . WORK _DAY ? 60 : 20 } , { type : "bi.text_value_combo" , height : 24 , items : [ { text : BI . i18nText ( "BI-Basic_Front" ) , value : 0 } , { text : BI . i18nText ( "BI-Basic_Behind" ) , value : 1 } ] , ref : function ( ) { a . offsetCombo = this } , container : null , value : b . offset , listeners : [ { eventName : BI . TextValueCombo . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . DynamicDateParamItem . EVENT _CHANGE ) } } ] } ] } } , _getText : function ( ) { var a = "" ; switch ( this . options . dateType ) { case BI . DynamicDateCard . TYPE . YEAR : a = BI . i18nText ( "BI-Basic_Year" ) ; break ; case BI . DynamicDateCard . TYPE . QUARTER : a = BI . i18nText ( "BI-Basic_Single_Quarter" ) ; break ; case BI . DynamicDateCard . TYPE . MONTH : a = BI . i18nText ( "BI-Basic_Month" ) ; break ; case BI . DynamicDateCard . TYPE . WEEK : a = BI . i18nText ( "BI-Basic_Week" ) ; break ; case BI . DynamicDateCard . TYPE . DAY : a = BI . i18nText ( "BI-Basic_Day" ) ; break ; case BI . DynamicDateCard . TYPE . WORK _DAY : default : a = BI . i18nText ( "BI-Basic_Work_Day" ) } return a } , setValue : function ( a ) { a = a || { } , a . value = a . value || 0 , a . offset = a . offset || 0 , this . editor . setValue ( a . value ) , this . offsetCombo . setValue ( a . offset ) } , getValue : function ( ) { return { dateType : this . options . dateType , value : this . editor . getValue ( ) , offset : this . offsetCombo . getValue ( ) [ 0 ] } } } ) , BI . DynamicDateParamItem . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.dynamic_date_param_item" , BI . DynamicDateParamItem ) , BI . DynamicDatePopup = BI . inherit ( BI . Widget , { constants : { tabHeight : 30 , buttonHeight : 24 } , props : { baseCls : "bi-dynamic-date-popup" , width : 248 , height : 344 } , _init : function ( ) { BI . DynamicDatePopup . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = this . constants ; this . storeValue = { type : BI . DynamicDateCombo . Static } , BI . createWidget ( { element : this , type : "bi.vtape" , items : [ { el : this . _getTabJson ( ) } , { el : { type : "bi.grid" , items : [ [ { type : "bi.text_button" , forceCenter : ! 0 , cls : "bi-high-light bi-split-top" , shadow : ! 0 , text : BI . i18nText ( "BI-Basic_Clear" ) , textHeight : c . buttonHeight - 1 , listeners : [ { eventName : BI . TextButton . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . DynamicDatePopup . BUTTON _CLEAR _EVENT _CHANGE ) } } ] } , { type : "bi.text_button" , forceCenter : ! 0 , cls : "bi-split-left bi-split-right bi-high-light bi-split-top" , shadow : ! 0 , textHeight : c . buttonHeight - 1 , text : BI . i18nText ( "BI-Multi_Date_Today" ) , ref : function ( ) { a . textButton = this } , listeners : [ { eventName : BI . TextButton . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . DynamicDatePopup . BUTTON _lABEL _EVENT _CHANGE ) } } ] } , { type : "bi.text_button" , forceCenter : ! 0 , 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 . Dyna
d = 1 === BI . size ( a ) ? b ( BI . i18nText ( "BI-Basic_Month" ) , a . position ) : "" ) , BI . isNotNull ( a . workDay ) && 0 !== BI . parseInt ( a . workDay ) && ( c += Math . abs ( a . workDay ) + BI . i18nText ( "BI-Basic_Work_Day" ) + ( a . workDay < 0 ? BI . i18nText ( "BI-Basic_Front" ) : BI . i18nText ( "BI-Basic_Behind" ) ) ) , c + d } , 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 : 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 ) , "%Y-%X-%d %H:%M:%S" ) ; 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 _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 } ) , 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 _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 _START , function ( ) { a . fireEvent ( BI . SearchEditor . EVENT _START ) } ) , this .
d = d . el ? BI . extend ( d . el , { children : d . children } ) : d ; var e = BI . deepClone ( c . el . value ) , f = BI . deepClone ( d . value ) ; b . singleValues . push ( d . value ) , d . type = "bi.down_list_item" , d . extraCls = " child-down-list-item" , d . title = d . title || d . text , d . textRgap = 10 , d . isNeedAdjustWidth = ! 1 , d . logic = { dynamic : ! 0 } , d . father = e , b . fatherValueMap [ b . _createChildValue ( e , f ) ] = e , b . childValueMap [ b . _createChildValue ( e , f ) ] = f , d . value = b . _createChildValue ( e , f ) , c . el . childValues . push ( d . value ) , BI . isNotEmptyArray ( d . children ) && ( d . type = "bi.down_list_group_item" , b . _createChildren ( d ) , d . height = b . constants . height , d . iconCls2 = b . constants . nextIcon , c . el . childValues = BI . concat ( c . el . childValues , d . childValues ) ) } ) ) : ( c . type = "bi.down_list_item" , c . title = c . title || c . text , c . textRgap = 10 , c . isNeedAdjustWidth = ! 1 , c . logic = { dynamic : ! 0 } ) ; var d = { } ; d . el = c , f . items . push ( d ) } ) , b . _isGroup ( f . items ) && BI . each ( f . items , function ( a , c ) { b . singleValues . push ( c . el . value ) } ) , c . push ( f ) , b . _needSpliter ( d , a . length ) ) { var g = BI . createWidget ( { type : "bi.vertical" , items : [ { el : { type : "bi.layout" , cls : "bi-down-list-spliter bi-border-top cursor-pointer" , height : 0 } } ] , cls : "bi-down-list-spliter-container cursor-pointer" , lgap : 10 , rgap : 0 } ) ; c . push ( g ) } } ) , c } , _createChildren : function ( a ) { var b = this ; a . childValues = [ ] , BI . each ( a . children , function ( c , d ) { var e = BI . deepClone ( a . value ) , f = BI . deepClone ( d . value ) ; d . type = "bi.down_list_item" , d . title = d . title || d . text , d . textRgap = 10 , d . isNeedAdjustWidth = ! 1 , d . logic = { dynamic : ! 0 } , d . father = e , b . fatherValueMap [ b . _createChildValue ( e , f ) ] = e , b . childValueMap [ b . _createChildValue ( e , f ) ] = f , d . value = b . _createChildValue ( e , f ) , a . childValues . push ( d . value ) } ) } , _isGroup : function ( a ) { return a . length > 1 } , _needSpliter : function ( a , b ) { return a < b - 1 } , _createChildValue : function ( a , b ) { var c = a ; return BI . isArray ( a ) && ( c = a . join ( "_" ) ) , c + "_" + b } , _digest : function ( a ) { var b = this , c = [ ] ; return BI . each ( a , function ( a , d ) { var e ; e = BI . isNotNull ( d . childValue ) ? b . _createChildValue ( d . value , d . childValue ) : d . value , c . push ( e ) } ) , c } , _checkValues : function ( a ) { function b ( a , b ) { var c = "" ; return BI . some ( a , function ( a , d ) { return BI . some ( b , function ( a , b ) { if ( d === b ) return c = d , ! 0 } ) } ) , c } function c ( a ) { var b = [ ] ; return BI . isNotNull ( a . children ) ? BI . each ( a . children , function ( a , d ) { b = BI . concat ( b , c ( d ) ) } ) : b . push ( a . value ) , b } var d = this . options , e = [ ] ; return BI . each ( d . items , function ( d , f ) { BI . each ( f , function ( f , g ) { if ( BI . isNotNull ( g . children ) ) { var h = c ( g ) , i = b ( h , a [ d ] ) ; BI . isNotEmptyString ( i ) && e . push ( i ) } else g . value === a [ d ] [ 0 ] && e . push ( a [ d ] [ 0 ] ) } ) } ) , e } , populate : function ( a ) { BI . MultiLayerDownListPopup . superclass . populate . apply ( this , arguments ) ; var b = this ; b . childValueMap = { } , b . fatherValueMap = { } , b . singleValues = [ ] ; var c = b . _createPopupItems ( a ) , d = BI . createItems ( c , { } , { adjustLength : - 2 } ) ; b . popup . populate ( d ) } , setValue : function ( a ) { this . popup . setValue ( this . _digest ( a ) ) } , _getValue : function ( ) { var a = [ ] ; return BI . each ( this . popup . getAllButtons ( ) , function ( b , c ) { b % 2 === 0 && a . push ( c . getValue ( ) ) } ) , a } , getValue : function ( ) { var a = this , b = [ ] , c = this . _checkValues ( this . _getValue ( ) ) ; return BI . each ( c , function ( c , d ) { var e = { } ; if ( BI . isNotNull ( a . childValueMap [ d ] ) ) { var f = a . fatherValueMap [ d ] ; e . childValue = a . childValueMap [ d ] ; var g = ( f + "" ) . split ( "_" ) ; e . value = g . length > 1 ? g : f } else e . value = d ; b . push ( e ) } ) , b } } ) , BI . MultiLayerDownListPopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . MultiLayerDownListPopup . EVENT _SON _VALUE _CHANGE = "EVENT_SON_VALUE_CHANGE" , BI . shortcut ( "bi.multi_layer_down_list_popup" , BI . MultiLayerDownListPopup ) , BI . MultiLayerSelectTreeCombo = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiLayerSelectTreeCombo . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multilayer_select_tree-combo" , isDefaultInit : ! 1 , height : 24 , text : "" , items : [ ] , value : "" , attributes : { tabIndex : 0 } } ) } , _init : function ( ) { BI . MultiLayerSelectTreeCombo . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . trigger = BI . createWidget ( { type : "bi.single_tree_trigger" , text : b . text , height : b . height , items : b . items , value : b . value } ) , this . popup = BI . createWidget ( { type : "bi.multilayer_select_tree_popup" , isDefaultInit : b . isDefaultInit , items : b . items , value : b . value } ) , this . combo = BI . createWidget ( { type : "bi.combo" , container : b . container , element : this , adjustLength : 2 , el : this . trigger , popup : { el : this . popup } } ) , this . combo . on (
cls : "bi-list-item-none" , logic : { dynamic : ! 0 } , id : b . id , pId : b . pId , height : b . height , hgap : b . hgap , text : b . text , value : b . value , py : b . py , keyword : b . keyword } ) , this . item . on ( BI . Controller . EVENT _CHANGE , function ( b ) { b !== BI . Events . CLICK && a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) ; for ( var c = [ ] , d = b . pNode ; d ; ) d . isLastNode && c . push ( d . layer ) , d = d . pNode ; var e = [ ] ; BI . count ( 0 , b . layer , function ( a ) { e . push ( { type : "bi.layout" , cls : BI . contains ( c , a ) ? "" : "base-line-conn-background" , width : 12 , height : b . height } ) } ) , e . push ( this . item ) , BI . createWidget ( { type : "bi.td" , element : this , columnSize : BI . makeArray ( b . layer , 12 ) , items : [ e ] } ) } , doHighLight : function ( ) { this . item . doHighLight . apply ( this . item , arguments ) } , unHighLight : function ( ) { this . item . unHighLight . apply ( this . item , arguments ) } , getId : function ( ) { return this . options . id } , getPId : function ( ) { return this . options . pId } , doClick : function ( ) { BI . MultiLayerSingleTreeMidTreeLeafItem . superclass . doClick . apply ( this , arguments ) , this . item . setSelected ( this . isSelected ( ) ) } , setSelected : function ( a ) { BI . MultiLayerSingleTreeMidTreeLeafItem . superclass . setSelected . apply ( this , arguments ) , this . item . setSelected ( a ) } } ) , BI . shortcut ( "bi.multilayer_single_tree_mid_tree_leaf_item" , BI . MultiLayerSingleTreeMidTreeLeafItem ) , BI . MultiSelectCheckPane = BI . inherit ( BI . Widget , { constants : { height : 12 , lgap : 10 , tgap : 10 , bgap : 5 } , _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectCheckPane . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-check-pane bi-background" , items : [ ] , itemsCreator : BI . emptyFn , valueFormatter : BI . emptyFn , onClickContinueSelect : BI . emptyFn } ) } , _init : function ( ) { BI . MultiSelectCheckPane . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . storeValue = b . value || { } , this . display = BI . createWidget ( { type : "bi.display_selected_list" , items : b . items , itemsCreator : function ( c , d ) { return c = BI . extend ( c || { } , { selectedValues : a . storeValue . value } ) , a . storeValue . type === BI . Selection . Multi ? void d ( { items : BI . map ( a . storeValue . value , function ( a , c ) { var d = b . valueFormatter ( c ) || c ; return { text : d , value : c , title : d } } ) } ) : void b . itemsCreator ( c , d ) } } ) , this . continueSelect = BI . createWidget ( { type : "bi.text_button" , text : BI . i18nText ( "BI-Continue_Select" ) , cls : "multi-select-check-selected bi-high-light" } ) , this . continueSelect . on ( BI . TextButton . EVENT _CHANGE , function ( ) { b . onClickContinueSelect ( ) } ) , BI . createWidget ( { type : "bi.vtape" , element : this , items : [ { height : this . constants . height , el : { type : "bi.vertical_adapt" , cls : "multi-select-continue-select" , items : [ { el : { type : "bi.label" , text : BI . i18nText ( "BI-Selected_Data" ) } , lgap : this . constants . lgap } , { el : this . continueSelect , lgap : this . constants . lgap } ] } , tgap : this . constants . tgap } , { height : "fill" , el : this . display , tgap : this . constants . bgap } ] } ) } , setValue : function ( a ) { this . storeValue = a || { } } , empty : function ( ) { this . display . empty ( ) } , populate : function ( ) { this . display . populate . apply ( this . display , arguments ) } } ) , BI . shortcut ( "bi.multi_select_check_pane" , BI . MultiSelectCheckPane ) , BI . DisplaySelectedList = BI . inherit ( BI . Pane , { constants : { height : 24 , lgap : 10 } , _defaultConfig : function ( ) { return BI . extend ( BI . DisplaySelectedList . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-display-list" , itemsCreator : BI . emptyFn , items : [ ] } ) } , _init : function ( ) { BI . DisplaySelectedList . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . hasNext = ! 1 , this . button _group = BI . createWidget ( { type : "bi.list_pane" , element : this , el : { type : "bi.loader" , isDefaultInit : ! 1 , logic : { dynamic : ! 0 , scrolly : ! 0 } , items : this . _createItems ( b . items ) , chooseType : BI . ButtonGroup . CHOOSE _TYPE _MULTI , layouts : [ { type : "bi.vertical" , lgap : 10 } ] } , itemsCreator : function ( c , d ) { b . itemsCreator ( c , function ( b ) { a . hasNext = ! ! b . hasNext , d ( a . _createItems ( b . items ) ) } ) } , hasNext : function ( ) { return a . hasNext } } ) } , _createItems : function ( a ) { return BI . createItems ( a , { type : "bi.icon_text_item" , cls : "cursor-default check-font icon-size-12 display-list-item bi-tips" , once : ! 0 , invalid : ! 0 , selected : ! 0 , height : this . constants . height , logic : { dynamic : ! 0 } } ) } , empty : function ( ) { this . button _group . empty ( ) } , populate : function ( a ) { 0 === arguments . length ? this . button _group . populate ( ) : this . button _group . populate ( this . _createItems ( a ) ) } } ) , BI . shortcut ( "bi.display_selected_list" , BI . DisplaySelecte
onLoaded : BI . emptyFn } ) } , _init : function ( ) { BI . MultiSelectNoBarLoader . 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 ( BI . extend ( { type : "bi.list_pane" , 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" } ] } } , 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 } , b . el ) ) , BI . createWidget ( { type : "bi.vertical" , element : this , items : [ this . button _group ] , vgap : 5 } ) , 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 . MultiSelectNoBarLoader . EVENT _CHANGE , arguments ) } ) } , _createItems : function ( a ) { return BI . createItems ( a , { type : "bi.multi_select_item" , cls : "bi-list-item-active" , logic : this . options . logic , height : 24 , iconWrapperWidth : 36 } ) } , _scrollToTop : function ( ) { var a = this ; BI . delay ( function ( ) { a . button _group . element . scrollTop ( 0 ) } , 30 ) } , _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 . value ) } , getValue : function ( ) { return { type : BI . Selection . Multi , value : 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 . element . css ( { "max-height" : a + "px" } ) } , resetWidth : function ( ) { } } ) , BI . MultiSelectNoBarLoader . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.multi_select_no_bar_loader" , BI . MultiSelectNoBarLoader ) , BI . MultiSelectPopupView = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectPopupView . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-popup-view" , maxWidth : "auto" , minWidth : 135 , maxHeight : 400 , valueFormatter : BI . emptyFn , itemsCreator : BI . emptyFn , onLoaded : BI . emptyFn } ) } , _init : function ( ) { BI . MultiSelectPopupView . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . loader = BI . createWidget ( { type : "bi.multi_select_loader" , itemsCreator : b . itemsCreator , valueFormatter : b . valueFormatter , onLoaded : b . onLoaded , value : b . value } ) , this . popupView = BI . createWidget ( { type : "bi.multi_popup_view" , stopPropagation : ! 1 , maxWidth : b . maxWidth , minWidth : b . minWidth , maxHeight : b . maxHeight , element : this , buttons : [ BI . i18nText ( "BI-Basic_Clears" ) , BI . i18nText ( "BI-Basic_Sure" ) ] , el : this . loader , value : b . value } ) , this . popupView . on ( BI . MultiPopupView . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . MultiSelectPopupView . EVENT _CHANGE ) } ) , this . popupView . on ( BI . MultiPopupView . EVENT _CLICK _TOOLBAR _BUTTON , function ( b ) { switch ( b ) { case 0 : a . fireEvent ( BI . MultiSelectPopupView . EVENT _CLICK _CLEAR ) ; break ; case 1 : a . fireEvent ( BI . MultiSelectPopupView . EVENT _CLICK _CONFIRM ) } } ) } , isAllSelected : function ( ) { return this . loader . isAllSelected ( ) } , setStartValue : function ( a ) { this . loader . setStartValue ( a ) } , setValue : function ( a ) {
this . searcherPane . setVisible ( ! 0 ) , this . adapter . setVisible ( ! 1 ) } , _defaultState : function ( ) { this . trigger . stopEditing ( ) } , _assertValue : function ( a ) { a || ( a = { } ) , a . type || ( a . type = BI . Selection . Multi ) , a . value || ( a . value = [ ] ) } , _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 ] ) && ( d . storeValue . type === BI . Selection . Multi ? BI . pushDistinct ( d . storeValue . value , b ) : BI . remove ( d . storeValue . value , b ) ) } ) , b ( ) } var d = this , e = this . options ; this . _assertValue ( this . storeValue ) , this . _allData ? c ( this . _allData ) : e . itemsCreator ( { type : BI . MultiSelectInsertList . REQ _GET _ALL _DATA } , function ( a ) { d . _allData = BI . map ( a . items , "value" ) , c ( d . _allData ) } ) } , _joinAll : function ( a , b ) { var c = this , d = this . options ; this . _assertValue ( a ) , d . itemsCreator ( { type : BI . MultiSelectInsertList . REQ _GET _ALL _DATA , keywords : [ c . trigger . getKeyword ( ) ] } , function ( d ) { var e = BI . map ( d . items , "value" ) ; if ( c . storeValue . type === a . type ) { var f = ! 1 , g = c . _makeMap ( c . storeValue . value ) ; return BI . each ( e , function ( a , b ) { BI . isNotNull ( g [ b ] ) && ( f = ! 0 , delete g [ b ] ) } ) , f && ( c . storeValue . value = BI . values ( g ) ) , void 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 ] ] ) && delete h [ e [ a ] ] , BI . isNull ( i [ e [ a ] ] ) && j . push ( b ) } ) , c . storeValue . value = j . concat ( BI . values ( h ) ) , b ( ) } ) } , _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 ) , d [ b ] = b ) } ) ; var e = ! 1 ; return BI . each ( a . assist , function ( a , b ) { BI . isNotNull ( d [ b ] ) && ( e = ! 0 , delete d [ b ] ) } ) , e && ( this . storeValue . value = BI . values ( d ) ) , void b ( ) } this . _joinAll ( a , b ) } , _setStartValue : function ( a ) { this . _startValue = a , this . adapter . setStartValue ( a ) } , isAllSelected : function ( ) { return this . adapter . isAllSelected ( ) } , resize : function ( ) { } , setValue : function ( a ) { this . storeValue = a || { } , this . _assertValue ( this . storeValue ) , this . adapter . setValue ( this . storeValue ) , this . trigger . setValue ( this . storeValue ) } , getValue : function ( ) { return BI . deepClone ( this . storeValue ) } , populate : function ( ) { this . _count = null , this . _allData = null , this . adapter . populate . apply ( this . adapter , arguments ) , this . trigger . populate . apply ( this . trigger , arguments ) } } ) , BI . extend ( BI . MultiSelectInsertList , { REQ _GET _DATA _LENGTH : 1 , REQ _GET _ALL _DATA : - 1 } ) , BI . MultiSelectInsertList . EVENT _CHANGE = "BI.MultiSelectInsertList.EVENT_CHANGE" , BI . shortcut ( "bi.multi_select_insert_list" , BI . MultiSelectInsertList ) , BI . MultiSelectInsertNoBarList = BI . inherit ( BI . Single , { _defaultConfig : function ( ) { return BI . extend ( BI . MultiSelectInsertNoBarList . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-multi-select-insert-list" , itemsCreator : BI . emptyFn , valueFormatter : BI . emptyFn } ) } , _init : function ( ) { BI . MultiSelectInsertNoBarList . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . storeValue = { type : BI . Selection . Multi , value : b . value || [ ] } ; var 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 ) ) } ; this . adapter = BI . createWidget ( { type : "bi.multi_select_no_bar_loader" , cls : "popup-multi-select-list bi-border-left bi-border-right bi-border-bottom" , itemsCreator : b . itemsCreator , valueFormatter : b . valueFormatter , logic : { dynamic : ! 1 } , el : { } , value : { type : BI . Selection . Multi , value : b . value || [ ] } } ) , this . adapter . on ( BI . MultiSelectLoader . EVENT _CHANGE , function ( ) { a . storeValue = this . getValue ( ) , c ( ) , a . fireEvent ( BI . MultiSelectInsertNoBarList . EVENT _CHANGE ) } ) , this . searcherPane = BI . createWidget ( { type : "bi.multi_select_search_insert_pane" , cls : "bi-border-left bi-border-right bi-border-bottom" , valueFormatter : b . valueFormatter , keywordGetter : function ( ) { return a . trigger . getKeyword ( ) } , itemsCreator : function ( c , d ) { c . keywords = [ a . trigger . getKeyword ( ) ] , this . setKeyword ( c . keywords [ 0 ] ) , b . itemsCreator ( c , d ) } , listeners : [ { eventName : BI . MultiSelectSearchInsertPane . EVENT _ADD _ITEM , action : function ( ) { var b = a . trigger . getKeyword ( ) ; a . trigger . hasMatched ( ) || ( a . storeValue . type === BI . Selection . Multi && BI . pushDistinct ( a . storeValue . value , b ) , a . _showAdapter (
BI . MultiTreeSearcher . EVENT _PAUSE = "EVENT_PAUSE" , BI . shortcut ( "bi.multi_tree_searcher" , BI . MultiTreeSearcher ) , BI . NumberEditor = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . NumberEditor . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-number-editor bi-border bi-focus-shadow" , validationChecker : function ( ) { return ! 0 } , valueFormatter : function ( a ) { return a } , value : 0 , allowBlank : ! 1 , errorText : "" , step : 1 } ) } , _init : function ( ) { BI . NumberEditor . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . editor = BI . createWidget ( { type : "bi.sign_editor" , height : b . height - 2 , allowBlank : b . allowBlank , value : b . valueFormatter ( b . value ) , validationChecker : b . validationChecker , errorText : b . errorText } ) , this . editor . on ( BI . TextEditor . EVENT _CHANGE , function ( ) { b . value = BI . parseFloat ( this . getValue ( ) ) , a . fireEvent ( BI . NumberEditor . EVENT _CHANGE ) } ) , this . editor . on ( BI . TextEditor . EVENT _CONFIRM , function ( ) { this . setValue ( BI . parseFloat ( this . getValue ( ) ) ) , a . fireEvent ( BI . NumberEditor . EVENT _CONFIRM ) } ) , this . topBtn = BI . createWidget ( { type : "bi.icon_button" , forceNotSelected : ! 0 , trigger : "lclick," , cls : "add-up-font top-button bi-border-left bi-list-item-active2 icon-size-12" } ) , this . topBtn . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . _finetuning ( b . step ) , a . fireEvent ( BI . NumberEditor . EVENT _CHANGE ) , a . fireEvent ( BI . NumberEditor . EVENT _CONFIRM ) } ) , this . bottomBtn = BI . createWidget ( { type : "bi.icon_button" , trigger : "lclick," , forceNotSelected : ! 0 , cls : "minus-down-font bottom-button bi-border-left bi-list-item-active2 icon-size-12" } ) , this . bottomBtn . on ( BI . IconButton . EVENT _CHANGE , function ( ) { a . _finetuning ( - b . step ) , a . fireEvent ( BI . NumberEditor . EVENT _CHANGE ) , a . fireEvent ( BI . NumberEditor . EVENT _CONFIRM ) } ) , BI . createWidget ( { type : "bi.htape" , height : b . height - 2 , element : this , items : [ this . editor , { el : { type : "bi.grid" , columns : 1 , rows : 2 , items : [ { column : 0 , row : 0 , el : this . topBtn } , { column : 0 , row : 1 , el : this . bottomBtn } ] } , width : 23 } ] } ) } , focus : function ( ) { this . editor . focus ( ) } , isEditing : function ( ) { return this . editor . isEditing ( ) } , _finetuning : function ( a ) { var b = BI . parseFloat ( this . getValue ( ) ) ; this . setValue ( BI . add ( b , a ) ) } , setUpEnable : function ( a ) { this . topBtn . setEnable ( ! ! a ) } , setDownEnable : function ( a ) { this . bottomBtn . setEnable ( ! ! a ) } , getValue : function ( ) { return this . options . value } , setValue : function ( a ) { var b = this . options ; b . value = a , this . editor . setValue ( b . valueFormatter ( a ) ) } } ) , BI . NumberEditor . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . NumberEditor . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.number_editor" , BI . NumberEditor ) , BI . NumberInterval = BI . inherit ( BI . Single , { constants : { typeError : "typeBubble" , numberError : "numberBubble" , signalError : "signalBubble" , editorWidth : 114 , columns : 5 , width : 24 , rows : 1 , numberErrorCls : "number-error" , border : 1 , less : 0 , less _equal : 1 , numTip : "" , adjustYOffset : 2 } , _defaultConfig : function ( ) { var a = BI . NumberInterval . superclass . _defaultConfig . apply ( this , arguments ) ; return BI . extend ( a , { extraCls : "bi-number-interval" , height : 24 , validation : "valid" , closeMin : ! 0 } ) } , _init : function ( ) { var a = this , b = this . constants , c = this . options ; BI . NumberInterval . superclass . _init . apply ( this , arguments ) , this . smallEditor = BI . createWidget ( { type : "bi.number_interval_single_editor" , height : c . height - 2 , watermark : BI . i18nText ( "BI-Basic_Unrestricted" ) , allowBlank : ! 0 , value : c . min , level : "warning" , tipType : "success" , title : function ( ) { return a . smallEditor && a . smallEditor . getValue ( ) } , quitChecker : function ( ) { return ! 1 } , validationChecker : function ( c ) { return ! ! BI . isNumeric ( c ) || ( a . smallEditorBubbleType = b . typeError , ! 1 ) } , cls : "number-interval-small-editor bi-border" } ) , this . smallTip = BI . createWidget ( { type : "bi.label" , text : c . numTip , height : c . height - 2 , invisible : ! 0 } ) , BI . createWidget ( { type : "bi.absolute" , element : this . smallEditor . element , items : [ { el : this . smallTip , top : 0 , right : 5 } ] } ) , this . bigEditor = BI . createWidget ( { type : "bi.number_interval_single_editor" , height : c . height - 2 , watermark : BI . i18nText ( "BI-Basic_Unrestricted" ) , allowBlank : ! 0 , value : c . max , level : "warning" , tipType : "success" , title : function ( ) { return a . bigEditor && a . bigEditor . getValue ( ) } , quitChecker : function ( ) { return ! 1 } , validationChecker : function ( c ) { return ! ! BI . isNumeric ( c ) || ( a . bigEditorBubbleType = b . typeError , ! 1 ) } , cls : "number-interval-big-editor bi-border" } ) , this .
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 , arguments ) , { baseCls : "bi-multi-select-popup-view" , maxWidth : "auto" , minWidth : 135 , maxHeight : 400 , valueFormatter : BI . emptyFn , itemsCreator : BI . emptyFn , onLoaded : BI . emptyFn } ) } , _init : function ( ) { BI . SearchMultiSelectPopupView . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . loader = BI . createWidget ( { type : "bi.search_multi_select_loader" , itemsCreator : b . itemsCreator , valueFormatter : b . valueFormatter , onLoaded : b . onLoaded , value : b . value } ) , this . popupView = BI . createWidget ( { type : "bi.multi_popup_view" , stopPropagation : ! 1 , maxWidth : b . maxWidth , minWidth : b . minWidth , maxHeight : b . maxHeight , element : this , buttons : [ BI . i18nText ( "BI-Basic_Clears" ) , BI . i18nText ( "BI-Basic_Sure" ) ] , el : this . loader , value : b . value } ) , this . popupView . on ( BI . MultiPopupView . EVENT _CHANGE , function ( ) { a . fireEvent ( BI . SearchMultiSelectPopupView . EVENT _CHANGE ) } ) , this . popupView . on ( BI . MultiPopupView . EVENT _CLICK _TOOLBAR _BUTTON , function ( b ) { switch ( b ) { case 0 : a . fireEvent ( BI . SearchMultiSelectPopupView . EVENT _CLICK _CLEAR ) ; break ; case 1 : a . fireEvent ( BI . SearchMultiSelectPopupView . EVENT _CLICK _CONFIRM ) } } ) } , isAllSelected : function ( ) { return this . loader . isAllSelected ( ) } , setStartValue : function ( a ) { this . loader . setStartValue ( a ) } , setValue : function ( a ) { this . popupView . setValue ( a ) } , getValue : function ( ) { return this . popupView . getValue ( ) } , populate : function ( a ) { this . popupView . populate . apply ( this . popupView , arguments ) } , resetHeight : function ( a ) { this . popupView . resetHeight ( a ) } , resetWidth : function ( a ) { this . popupView . resetWidth ( a ) } } ) , BI . SearchMultiSelectPopupView . EVENT _CHANGE = "EVENT_CHANGE" , BI . SearchMultiSelectPopupView . EVENT _CLICK _CONFIRM = "EVENT_CLICK_CONFIRM" , BI . SearchMultiSelectPopupView . EVENT _CLICK _CLEAR = "EVENT_CLICK_CLEAR" , BI . shortcut ( "bi.search_multi_select_popup_view" , BI . SearchMultiSelectPopupView ) , BI . SearchMultiSelectSearcher = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SearchMultiSelectSearcher . superclass . _defaultConfig
} , BI . LogicFactory . createLogic ( "horizontal" , BI . extend ( a . logic , { items : BI . LogicFactory . createLogicItemsByDirection ( "left" , { type : "bi.center_adapt" , items : [ this . radio ] , width : 26 } , this . text ) } ) ) ) ) } , doRedMark : function ( ) { this . text . doRedMark . apply ( this . text , arguments ) } , unRedMark : function ( ) { this . text . unRedMark . apply ( this . text , arguments ) } , doClick : function ( ) { BI . SingleSelectComboItem . superclass . doClick . apply ( this , arguments ) , this . radio . setSelected ( this . isSelected ( ) ) } , setSelected : function ( a ) { BI . SingleSelectComboItem . superclass . setSelected . apply ( this , arguments ) , this . radio . setSelected ( a ) } } ) , BI . shortcut ( "bi.single_select_combo_item" , BI . SingleSelectComboItem ) , BI . SingleSelectList = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SingleSelectList . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-select-list" , direction : BI . Direction . Top , logic : { dynamic : ! 0 } , items : [ ] , itemsCreator : BI . emptyFn , hasNext : BI . emptyFn , onLoaded : BI . emptyFn , el : { type : "bi.list_pane" } , allowNoSelect : ! 1 } ) } , _init : function ( ) { BI . SingleSelectList . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options ; this . list = BI . createWidget ( b . el , { type : "bi.list_pane" , items : b . items , itemsCreator : function ( c , d ) { 1 === c . times && a . toolbar && a . toolbar . setVisible ( ! 1 ) , b . itemsCreator ( c , function ( b ) { d . apply ( a , arguments ) , 1 === c . times && ( a . toolbar && a . toolbar . setVisible ( b && b . length > 0 ) , a . toolbar && a . toolbar . setEnable ( b && b . length > 0 ) ) } ) } , onLoaded : b . onLoaded , hasNext : b . hasNext , value : b . value } ) , this . list . on ( BI . Controller . EVENT _CHANGE , function ( b , c , d ) { b === BI . Events . CLICK && a . fireEvent ( BI . SingleSelectList . EVENT _CHANGE , c , d ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } ) , BI . createWidget ( BI . extend ( { element : this } , BI . LogicFactory . createLogic ( BI . LogicFactory . createLogicTypeByDirection ( b . direction ) , BI . extend ( { scrolly : ! 0 } , b . logic , { items : b . allowNoSelect ? BI . LogicFactory . createLogicItemsByDirection ( b . direction , { type : "bi.single_select_item" , height : 24 , forceNotSelected : ! 0 , text : BI . i18nText ( "BI-Basic_No_Select" ) , ref : function ( b ) { a . toolbar = b } , listeners : [ { eventName : BI . Controller . EVENT _CHANGE , action : function ( b ) { b === BI . Events . CLICK && ( a . list . setValue ( ) , a . fireEvent ( BI . SingleSelectList . EVENT _CHANGE ) ) , a . fireEvent ( BI . Controller . EVENT _CHANGE , arguments ) } } ] } , this . list ) : BI . LogicFactory . createLogicItemsByDirection ( b . direction , this . list ) } ) ) ) ) } , hasPrev : function ( ) { return this . list . hasPrev ( ) } , hasNext : function ( ) { return this . list . hasNext ( ) } , prependItems : function ( a ) { this . list . prependItems . apply ( this . list , arguments ) } , addItems : function ( a ) { this . list . addItems . apply ( this . list , arguments ) } , setValue : function ( a ) { this . list . setValue ( [ a ] ) } , getValue : function ( ) { return this . list . getValue ( ) [ 0 ] } , empty : function ( ) { this . list . empty ( ) } , populate : function ( a ) { this . list . populate . apply ( this . list , arguments ) } , resetHeight : function ( a ) { this . list . resetHeight ? this . list . resetHeight ( a ) : this . list . element . css ( { "max-height" : a + "px" } ) } , setNotSelectedValue : function ( ) { this . list . setNotSelectedValue . apply ( this . list , arguments ) } , getNotSelectedValue : function ( ) { return this . list . getNotSelectedValue ( ) } , getAllButtons : function ( ) { return this . list . getAllButtons ( ) } , getAllLeaves : function ( ) { return this . list . getAllLeaves ( ) } , getSelectedButtons : function ( ) { return this . list . getSelectedButtons ( ) } , getNotSelectedButtons : function ( ) { return this . list . getNotSelectedButtons ( ) } , getIndexByValue : function ( a ) { return this . list . getIndexByValue ( a ) } , getNodeById : function ( a ) { return this . list . getNodeById ( a ) } , getNodeByValue : function ( a ) { return this . list . getNodeByValue ( a ) } } ) , BI . SingleSelectList . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.single_select_list" , BI . SingleSelectList ) , BI . SingleSelectLoader = BI . inherit ( BI . Widget , { _defaultConfig : function ( ) { return BI . extend ( BI . SingleSelectLoader . superclass . _defaultConfig . apply ( this , arguments ) , { baseCls : "bi-single-select-loader" , logic : { dynamic : ! 0 } , allowNoSelect : ! 1 , valueFormatter : BI . emptyFn , itemsCreator : BI . emptyFn , onLoaded : BI . emptyFn } ) } , _init : function ( ) { BI . SingleSelectLoader . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = ! 1 ; this . storeValue = b . value , this . button _group = BI . createWidget ( { type : "bi.single_select_list" , allowNoSelect : b . allowNoSelect , logic : b . logic , el
this . _setAllPosition ( 100 ) ) ) } } ) , BI . SingleSliderLabel . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.single_slider_label" , BI . SingleSliderLabel ) , BI . SingleSliderNormal = BI . inherit ( BI . Widget , { _constant : { HEIGHT : 28 , SLIDER _WIDTH _HALF : 15 , SLIDER _WIDTH : 30 , SLIDER _HEIGHT : 30 , TRACK _HEIGHT : 24 } , props : { baseCls : "bi-single-slider-normal bi-slider-track" , minMax : { min : 0 , max : 100 } } , render : function ( ) { var a = this , b = this . _constant , c = this . _createTrack ( ) ; 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 : b . SLIDER _WIDTH _HALF , height : b . SLIDER _HEIGHT } ) ; return d . element . click ( function ( c ) { if ( a . enable && a . isEnabled ( ) ) { var d = c . clientX - a . element . offset ( ) . left - b . SLIDER _WIDTH _HALF , e = a . track . element [ 0 ] . scrollWidth , f = 0 ; d < 0 && ( f = 0 ) , d > 0 && d < e - b . SLIDER _WIDTH && ( f = 100 * d / a . _getGrayTrackLength ( ) ) , d > e - b . SLIDER _WIDTH && ( f = 100 ) ; var g = BI . parseFloat ( f . toFixed ( 1 ) ) ; a . _setAllPosition ( g ) ; var h = a . _getValueByPercent ( g ) ; a . value = h , a . fireEvent ( BI . SingleSlider . EVENT _CHANGE ) } } ) , { type : "bi.absolute" , element : this , items : [ { el : { type : "bi.vertical" , items : [ { type : "bi.absolute" , items : [ { el : c , width : "100%" , height : b . TRACK _HEIGHT } ] } ] , hgap : 7 , height : b . TRACK _HEIGHT } , top : 3 , left : 0 , width : "100%" } , { el : d , top : 0 , left : 0 , width : "100%" } ] } } , _draggable : function ( a ) { function b ( a ) { return BI . clamp ( a , 0 , c . _getGrayTrackLength ( ) ) } var c = this , d = this . options , e = ! 1 , f = 0 , g = 0 , h = 0 , i = new BI . MouseMoveTracker ( function ( j ) { if ( i . isDragging ( ) ) { e = ! 0 , g += j , f = b ( h + g ) , a . element . addClass ( "dragging" ) ; var k = 100 * f / c . _getGrayTrackLength ( ) , l = BI . parseFloat ( k . toFixed ( 1 ) ) ; c . _setBlueTrack ( l ) , c . _setSliderPosition ( l ) ; var m = c . _getValueByPercent ( l ) ; m = d . digit === ! 1 ? m : m . toFixed ( d . digit ) , c . value = m , c . fireEvent ( BI . SingleSliderNormal . EVENT _DRAG , m ) } } , function ( ) { if ( e === ! 0 ) { f = b ( f ) ; var d = 100 * f / c . _getGrayTrackLength ( ) , j = BI . parseFloat ( d . toFixed ( 1 ) ) ; c . _setSliderPosition ( j ) , f = 0 , g = 0 , h = f , e = ! 1 } a . element . removeClass ( "dragging" ) , i . releaseMouseMoves ( ) , c . fireEvent ( BI . SingleSlider . EVENT _CHANGE ) } , window ) ; a . element . on ( "mousedown" , function ( c ) { a . isEnabled ( ) && ( h = this . offsetLeft , b ( h ) , i . captureMouseMoves ( c ) ) } ) } , _createTrack : function ( ) { var a = this ; this . _constant ; return 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 . options . color && this . blueTrack . element . css ( { "background-color" : this . options . color } ) , { 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%" } ] , ref : function ( b ) { a . track = b } } } , _checkValidation : function ( a ) { return ! ( BI . isNull ( a ) || a < this . min || a > this . max ) } , _setBlueTrack : function ( a ) { this . blueTrack . element . css ( { width : a + "%" } ) } , _setSliderPosition : function ( a ) { this . slider . element . css ( { left : a + "%" } ) } , _setAllPosition : function ( a ) { this . _setSliderPosition ( a ) , this . _setBlueTrack ( a ) } , _setVisible : function ( a ) { this . slider . 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 ) } , _setEnable : function ( a ) { BI . SingleSliderNormal . 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" ) } , getValue : function ( ) { return this . value } , setValue : function ( a ) { var b = BI . parseFloat ( a ) ; isNaN ( b ) || ( this . _checkValidation ( b ) && ( this . value = b ) , b > this . max && ( this . value = this . max ) , b < this . min && ( this . value = this . min ) ) } , 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 , BI . isNumeric ( this . value ) || BI . isNotEmpty
a . _setInnerValue ( ) } } } ] } } , 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 : this . year . setValue ( c ) , this . textButton . setValue ( BI . i18nText ( "BI-Basic_Current_Year" ) ) , this . textButton . setEnable ( ! 0 ) } } , getValue : function ( ) { return { type : this . dateTab . getSelect ( ) , value : this . dateTab . getValue ( ) } } } ) , BI . DynamicYearPopup . BUTTON _CLEAR _EVENT _CHANGE = "BUTTON_CLEAR_EVENT_CHANGE" , BI . DynamicYearPopup . BUTTON _lABEL _EVENT _CHANGE = "BUTTON_lABEL_EVENT_CHANGE" , BI . DynamicYearPopup . BUTTON _OK _EVENT _CHANGE = "BUTTON_OK_EVENT_CHANGE" , BI . DynamicYearPopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.dynamic_year_popup" , BI . DynamicYearPopup ) , BI . DynamicYearTrigger = BI . inherit ( BI . Trigger , { _const : { hgap : 4 , vgap : 2 } , _defaultConfig : function ( ) { return BI . extend ( BI . DynamicYearTrigger . superclass . _defaultConfig . apply ( this , arguments ) , { extraCls : "bi-year-trigger" , min : "1900-01-01" , max : "2099-12-31" , height : 24 } ) } , beforeInit : function ( a ) { var b = this . options ; b . title = BI . bind ( this . _titleCreator , this ) , a ( ) } , _init : function ( ) { BI . DynamicYearTrigger . superclass . _init . apply ( this , arguments ) ; var a = this , b = this . options , c = this . _const ; this . editor = BI . createWidget ( { type : "bi.sign_editor" , height : b . height , validationChecker : function ( a ) { return "" === a || BI . isPositiveInteger ( a ) && ! BI . checkDateVoid ( a , 1 , 1 , b . min , b . max ) [ 0 ] } , quitChecker : function ( a ) { return ! 1 } , hgap : c . hgap , vgap : c . vgap , watermark : BI . i18nText ( "BI-Basic_Unrestricted" ) , allowBlank : ! 0 , errorText : function ( ) { return BI . i18nText ( "BI-Year_Trigger_Invalid_Text" ) } } ) , this . editor . on ( BI . SignEditor . EVENT _FOCUS , function ( ) { a . fireEvent ( BI . DynamicYearTrigger . EVENT _FOCUS ) } ) , this . editor . on ( BI . SignEditor . EVENT _STOP , function ( ) { a . fireEvent ( BI . DynamicYearTrigger . EVENT _STOP ) } ) , this . editor . on ( BI . SignEditor . EVENT _CONFIRM , function ( ) { var b = a . editor . getValue ( ) ; BI . isNotNull ( b ) && a . editor . setValue ( b ) , BI . isNotEmptyString ( b ) && ( a . storeValue = { type : BI . DynamicDateCombo . Static , value : { year : b } } ) , a . fireEvent ( BI . DynamicYearTrigger . EVENT _CONFIRM ) } ) , this . editor . on ( BI . SignEditor . EVENT _SPACE , function ( ) { a . editor . isValid ( ) && a . editor . blur ( ) } ) , this . editor . on ( BI . SignEditor . EVENT _START , function ( ) { a . fireEvent ( BI . DynamicYearTrigger . EVENT _START ) } ) , this . editor . on ( BI . SignEditor . EVENT _ERROR , function ( ) { a . fireEvent ( BI . DynamicYearTrigger . EVENT _ERROR ) } ) , BI . createWidget ( { element : this , type : "bi.htape" , items : [ { el : this . editor } , { el : { type : "bi.text_button" , baseCls : "bi-trigger-year-text" , text : BI . i18nText ( "BI-Multi_Date_Year" ) , width : b . height } , width : b . height } , { el : { type : "bi.trigger_icon_button" , width : b . height } , width : b . height } ] } ) , this . setValue ( b . value ) } , _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" ) ) ) , b } , _setInnerValue : function ( a , b ) { var c = BI . print ( a , "%Y" ) ; this . editor . setState ( c ) , this . editor . setValue ( c ) } , _titleCreator : function ( ) { var a = this . storeValue || { } , b = a . type || BI . DynamicDateCombo . Static , c = a . value ; if ( ! this . editor . isValid ( ) ) return "" ; switch ( b ) { case BI . DynamicDateCombo . Dynamic : var d = this . _getText ( c ) , e = BI . getDate ( ) ; e = BI . DynamicDateHelper . getCalculation ( c ) ; var f = BI . print ( e , "%Y" ) ; return BI . isEmptyString ( d ) ? f : d + ":" + f ; case BI . DynamicDateCombo . Static : default : return c = c || { } , c . year } } , 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 || { } , this . editor . setState ( c . year ) , this . editor . setValue ( c . year ) } } , getValue : function ( ) { return this . storeValue } , getKey : function ( ) { return 0 | this . editor . getValue ( ) } } ) , BI . DynamicYearTrigger . EVENT _FOCUS = "EVENT_FOCUS" , BI . DynamicYearTrigger . EVENT _ERROR = "EVENT_ERROR" , BI . DynamicYearTrigger . EVENT _START = "EVENT_START" , BI . DynamicYearTrigger . EVENT _CONFIRM = "EVENT_CONFIRM" , BI . DynamicYearTrigger . EVENT _STO
} } ] } , { type : "bi.text_button" , forceCenter : ! 0 , cls : "bi-split-top bi-high-light" , shadow : ! 0 , textHeight : b . buttonHeight - 1 , text : BI . i18nText ( "BI-Basic_OK" ) , listeners : [ { eventName : BI . TextButton . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . DynamicYearQuarterPopup . BUTTON _OK _EVENT _CHANGE ) } } ] } ] ] } , height : 24 } ] } } , _setInnerValue : function ( ) { if ( this . dateTab . getSelect ( ) === BI . DynamicYearQuarterCombo . Static ) this . textButton . setValue ( BI . i18nText ( "BI-Basic_Current_Quarter" ) ) , this . textButton . setEnable ( ! 0 ) ; else { var a = BI . DynamicDateHelper . getCalculation ( this . dynamicPane . getValue ( ) ) ; a = BI . print ( a , "%Y-%Q" ) , this . textButton . setValue ( a ) , this . textButton . setEnable ( ! 1 ) } } , _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-Basic_Year_Quarter" ) , value : BI . DynamicYearQuarterCombo . Static } , { text : BI . i18nText ( "BI-Basic_Dynamic_Title" ) , value : BI . DynamicYearQuarterCombo . Dynamic } ] , { textAlign : "center" } ) } , cardCreator : function ( c ) { switch ( c ) { case BI . DynamicYearQuarterCombo . Dynamic : return { type : "bi.dynamic_year_quarter_card" , listeners : [ { eventName : "EVENT_CHANGE" , action : function ( ) { a . _setInnerValue ( a . year , c ) } } ] , ref : function ( ) { a . dynamicPane = this } } ; case BI . DynamicYearQuarterCombo . Static : default : return { type : "bi.static_year_quarter_card" , behaviors : b . behaviors , min : a . options . min , max : a . options . max , listeners : [ { eventName : BI . DynamicYearCard . EVENT _CHANGE , action : function ( ) { a . fireEvent ( BI . DynamicYearQuarterPopup . EVENT _CHANGE ) } } ] , ref : function ( ) { a . year = this } } } } , listeners : [ { eventName : BI . Tab . EVENT _CHANGE , action : function ( ) { var b = a . dateTab . getSelect ( ) ; switch ( b ) { case BI . DynamicYearQuarterCombo . Static : var c = BI . DynamicDateHelper . getCalculation ( a . dynamicPane . getValue ( ) ) ; a . year . setValue ( { year : c . getFullYear ( ) , quarter : BI . getQuarter ( c ) } ) , a . _setInnerValue ( ) ; break ; case BI . DynamicYearQuarterCombo . Dynamic : default : a . storeValue && a . storeValue . type === BI . DynamicYearQuarterCombo . Dynamic ? a . dynamicPane . setValue ( a . storeValue . value ) : a . dynamicPane . setValue ( { year : 0 } ) , a . _setInnerValue ( ) } } } ] } } , 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 : this . year . setValue ( c ) , this . textButton . setValue ( BI . i18nText ( "BI-Basic_Current_Quarter" ) ) , this . textButton . setEnable ( ! 0 ) } } , getValue : function ( ) { return { type : this . dateTab . getSelect ( ) , value : this . dateTab . getValue ( ) } } } ) , BI . DynamicYearQuarterPopup . BUTTON _CLEAR _EVENT _CHANGE = "BUTTON_CLEAR_EVENT_CHANGE" , BI . DynamicYearQuarterPopup . BUTTON _lABEL _EVENT _CHANGE = "BUTTON_lABEL_EVENT_CHANGE" , BI . DynamicYearQuarterPopup . BUTTON _OK _EVENT _CHANGE = "BUTTON_OK_EVENT_CHANGE" , BI . DynamicYearQuarterPopup . EVENT _CHANGE = "EVENT_CHANGE" , BI . shortcut ( "bi.dynamic_year_quarter_popup" , BI . DynamicYearQuarterPopup ) , BI . DynamicYearQuarterTrigger = BI . inherit ( BI . Trigger , { _const : { hgap : 4 , vgap : 2 } , props : { extraCls : "bi-year-quarter-trigger" , min : "1900-01-01" , max : "2099-12-31" , height : 22 } , _init : function ( ) { BI . DynamicYearQuarterTrigger . superclass . _init . apply ( this , arguments ) ; var a = this . options ; this . yearEditor = this . _createEditor ( ! 0 ) , this . quarterEditor = this . _createEditor ( ! 1 ) , BI . createWidget ( { element : this , type : "bi.htape" , items : [ { type : "bi.center" , items : [ { type : "bi.htape" , items : [ this . yearEditor , { el : { type : "bi.text_button" , text : BI . i18nText ( "BI-Multi_Date_Year" ) , width : a . height } , width : a . height } ] } , { type : "bi.htape" , items : [ this . quarterEditor , { el : { type : "bi.text_button" , text : BI . i18nText ( "BI-Multi_Date_Quarter" ) , width : 24 } , width : 24 } ] } ] } , { el : { type : "bi.trigger_icon_button" , width : a . height } , width : a . height } ] } ) , this . setValue ( a . value ) } , _createEditor : function ( a ) { var b = this , c = this . options , d = this . _const , e = BI . createWidget ( { type : "bi.sign_editor" , height : c . height , validationChecker : function ( b ) { return a ? "" === b || BI . isPositiveInteger ( b ) && ! BI . checkDateVoid ( b , 1 , 1 , c . min , c . max ) [ 0 ] : "" === b || BI . isPositiveInteger ( b ) && b >= 1 && b <= 4 && ! BI . checkDateVoid ( BI . getDate ( ) . getFullYear ( ) , b , 1 , c . min , c . max ) [ 0 ] } , quitC
this . _updateHash ( this . iframe . location , a , b . replace ) ) } return b . trigger ? this . loadUrl ( a ) : void 0 } } , _updateHash : function ( a , b , c ) { if ( c ) { var d = a . href . replace ( /(javascript:|#).*$/ , "" ) ; a . replace ( d + "#" + b ) } else a . hash = "#" + b } } ) , BI . history = new j } ( ) , function ( ) { function a ( a , c ) { a . _watchers || ( a . _watchers = [ ] ) ; for ( var d in c ) { var e = c [ d ] ; if ( BI . isArray ( e ) ) for ( var f = 0 ; f < e . length ; f ++ ) a . _watchers . push ( b ( a , d , e [ f ] ) ) ; else a . _watchers . push ( b ( a , d , e ) ) } } function b ( a , b , c ) { return Fix . watch ( a . store , b , _ . bind ( c , a ) , { store : a . store } ) } function c ( a ) { i && j . push ( i ) , Fix . Model . target = i = a } function d ( ) { Fix . Model . target = i = j . pop ( ) } function e ( a ) { k && l . push ( k ) , Fix . Model . context = k = a } function f ( ) { Fix . Model . context = k = l . pop ( ) } function g ( a ) { if ( null != i ) return i ; a = a || k ; for ( var b = a ; b && ! ( b instanceof Fix . Model || b . store || b . _ _cacheStore ) ; ) b = b . _parent || b . options && b . options . element ; return b ? b instanceof Fix . Model ? a . _ _cacheStore = b : ( a . _ _cacheStore = b . store || b . _ _cacheStore , b . _ _cacheStore || b . store ) : void 0 } function h ( ) { var a = ! 1 ; if ( _global . Fix && this . _store ) { var b = g ( this . options . context || this . options . element ) ; b && ( c ( b ) , a = ! 0 ) , this . store = this . _store ( ) , this . store && ( this . store . _widget = this ) , a && d ( ) , a = ! 1 , c ( this . store ) , this . store instanceof Fix . Model ? this . model = this . store . model : this . model = this . store , a = ! 0 } return a } var i = null , j = [ ] , k = null , l = [ ] , m = Fix . watch ; Fix . watch = function ( a , b , e , f ) { return BI . isPlainObject ( e ) && ( f = e , e = e . handler ) , "string" == typeof e && ( e = a [ e ] ) , m . call ( this , a , b , function ( ) { f && f . store && c ( f . store ) ; var a = e . apply ( this , arguments ) ; return f && f . store && d ( ) , a } , f ) } ; var n = BI . createWidget ; BI . createWidget = function ( a , b , c ) { var d = ! 1 ; BI . isWidget ( b ) ? ( e ( b ) , d = ! 0 ) : null != c && ( e ( c ) , d = ! 0 ) ; var g = n . apply ( this , arguments ) ; return d && f ( ) , g } , _ . each ( [ "populate" , "addItems" , "prependItems" ] , function ( a ) { var b = BI . Loader . prototype [ a ] ; BI . Loader . prototype [ a ] = function ( ) { e ( this ) ; var a = b . apply ( this , arguments ) ; return f ( ) , a } } ) , BI . Widget . prototype . _init = function ( ) { BI . Widget . superclass . _init . apply ( this , arguments ) , this . _initRoot ( ) , this . _initElementWidth ( ) , this . _initElementHeight ( ) , this . _initVisual ( ) , this . _initState ( ) , this . beforeInit ? ( this . _ _asking = ! 0 , this . beforeInit ( BI . bind ( function ( ) { this . model && this . model . $vm && this . model . $vm . $digest ( ) , this . _render ( ) } , this ) ) , this . _ _asking === ! 0 && ( this . _ _async = ! 0 ) ) : this . _render ( ) } ; var o = BI . Widget . prototype . _init ; BI . Widget . prototype . _init = function ( ) { var a = h . call ( this ) ; o . apply ( this , arguments ) , a && d ( ) } ; var p = BI . Widget . prototype . _render ; BI . Widget . prototype . _render = function ( ) { var b = ! 1 ; _global . Fix && this . _store && ( b = ! 0 , c ( this . store ) , a ( this , this . watch ) ) , p . apply ( this , arguments ) , b && d ( ) } ; var q = BI . Widget . prototype . _ _d ; BI . Widget . prototype . _ _d = function ( ) { q . apply ( this , arguments ) , this . store && BI . isFunction ( this . store . destroy ) && this . store . destroy ( ) , BI . each ( this . _watchers , function ( a , b ) { b = BI . isArray ( b ) ? b : [ b ] , BI . each ( b , function ( a , b ) { b ( ) } ) } ) , this . _watchers && ( this . _watchers = [ ] ) , this . store && ( this . store . _parent && ( this . store . _parent = null ) , this . store . _widget && ( this . store . _widget = null ) , this . store = null ) , delete this . _ _cacheStore } , _ . each ( [ "_mount" ] , function ( a ) { var b = BI . Widget . prototype [ a ] ; b && ( BI . Widget . prototype [ a ] = function ( ) { this . store && c ( this . store ) ; var a = b . apply ( this , arguments ) ; return this . store && d ( ) , a } ) } ) ; var r = function ( ) { BI . nextTick ( function ( ) { Fix && Fix . refreshAll && Fix . refreshAll ( ) } ) } ; if ( $ ( document ) . ajaxComplete ( r ) , BI . history ) { var s = BI . history . navigate ; BI . history . navigate = function ( ) { s . apply ( this , arguments ) , BI . defer ( function ( ) { r ( ) } , 200 ) } ; var t = window . history . back ; window . history . back = function ( ) { t . apply ( this , arguments ) , BI . defer ( function ( ) { r ( ) } , 200 ) } } if ( BI . Router ) { var u = BI . Router . prototype . execute ; BI . Router . prototype . execute = function ( ) { u . apply ( this , arguments ) , r ( ) } } _ . each ( [ "each" , "map" , "reduce" , "reduceRight" , "find" , "filter" , "reject" , "every" , "all" , "some" , "any" , "max" , "min" , "sortBy" , "groupBy" , "indexBy" , "countBy" , "partition" , "keys" , "allKeys" , "values" , "pairs" , "invert" , "mapObject" , "findKey" , "pick" , "omit" , "tap" ] , function ( a ) { var b = BI [ a ] ; BI [ a ] = function ( a , c , d ) { return "function" == typeof c ? b ( a , function ( a , b ) { if ( ! ( a in Fix . $$skipArray ) ) return c . apply ( this , arguments ) } , d ) : b . apply ( this , arguments ) } } ) , BI . isEmpty = function ( a ) { return BI . isPlainObject ( a ) && a . _ _ob _ _ ? 0 ===