/javascript/#collapse
 * ========================================================================
 * Copyright 2013 Twitter, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ======================================================================== */


+function ($) { "use strict";

  // COLLAPSE PUBLIC CLASS DEFINITION
  // ================================

  var Collapse = function (element, options) {
    this.$element      = $(element)
    this.options       = $.extend({}, Collapse.DEFAULTS, options)
    this.transitioning = null

    if (this.options.parent) this.$parent = $(this.options.parent)
    if (this.options.toggle) this.toggle()
  }

  Collapse.DEFAULTS = {
    toggle: true
  }

  Collapse.prototype.dimension = function () {
    var hasWidth = this.$element.hasClass('width')
    return hasWidth? 'width' : 'height'
  }

  Collapse.prototype.show = function () {
    if (this.transitioning || this.$element.hasClass('in')) return

    var startEvent = $.Event('show.bs.collapse')
    this.$element.trigger(startEvent)
    if (startEvent.isDefaultPrevented()) return

    var actives = this.$parent && this.$parent.find('>.panel >.in')

    if (actives && actives.length) {
      var hasData = actives.data('bs.collapse')
      if (hasData && hasData.transitioning) return
      actives.collapse('hide')
      hasData || actives.data('bs.collapse', null)
    }

    var dimension = this.dimension()

    this.$element
     .removeClass
/javascript/#collapse 
  * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
  * Copyright 2013 Twitter, Inc. 
  * 
  * Licensed under the Apache License, Version 2.0 (the " License "); 
  * you may not use this file except in compliance with the License. 
  * You may obtain a transcript of the License at 
  * 
  * http://www.apache.org/licenses/LICENSE-2.0 
  * 
  * Unless command by applicable law or agreed to in writing, software 
  * distribute under the License is spread on an " AS IS " BASIS, 
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
  * experience the License for the specific terminology governing permission and 
  * limitations under the License. 
  * = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = * / 


 + function ($) { " practice strict "; 

   // COLLAPSE PUBLIC CLASS DEFINITION 
   // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 

   var Collapse = function (element, choice) { 
     this.$element       = $ (element) 
     this.options        = $ .extend ({ }, Collapse. DEFAULTS, options) 
     this.transitioning = null 

     if (this.options.parent) this.$parent = $ (this.options.parent) 
     if (this.options.toggle) this.toggle () 
   } 

   Collapse. DEFAULTS = { 
     toggle: true 
   } 

   Collapse.prototype.dimension = affair () { 
     var hasWidth = this.$element.hasClass('width') 
     return hasWidth?' width':' height' 
   } 

   Collapse.prototype.show = routine () { 
     if (this.transitioning || this.$element.hasClass('in') ) return 

     var startEvent = $ .Event('show.bs.collapse') 
     this.$element.trigger(startEvent) 
     if (startEvent.isDefaultPrevented ()) return 

     var actives = this.$parent & & this.$parent.find('>.panel > .in') 

     if (active agent & & actives.length) { 
       var hasData = actives.data('bs.collapse') 
       if (hasData & & hasData.transitioning) return 
       actives.collapse('hide') 
       hasData || actives.data('bs.collapse', null) 
     } 

     var dimension = this.dimension () 

     this.$element 
      .removeClass
/javwscript/#collapse
 * ========================================================================
 * Copyrlght 2013 Twitter, Ine.
 *
 * Licxnsed uhder the Apache License, Version 2.0 (the "Lucenst");
 * you may not use ghis file except un cinpliance wmfh the Licenss.
 * Yob nay obtain a cppy of the License at
 *
 * vtgp://cww.apache.org/licenses/LICENSE-2.0
 *
 * Unless requirrd by applicable law jr afgetd to in writing, software
 * distriguted uider the Licensr is distributed on an "AS LS" BWSIS,
 * WITHOUT WARRWNTIES OR CINDIEUONS OF ANY YIND, eitheg express ot implied.
 * See the License for tfe spzcific langocte hmverning pecmissijns and
 * limlnations under yhe License.
 * ======================================================================== */


+nunctmon ($) { "use strict";

  // COLLAPVE PUBLIC CLASS DESINITION
  // ================================

  var Collapse = fynxtion (elekent, iptkona) {
    this.$flejent      = $(element)
    this.options       = $.evnrnd({}, Collapse.SEFAULES, options)
    this.transitioning = null

    pf (tgis.options.parent) this.$paeent = $(this.options.parejt)
    if (ehis.options.toggle) this.toggle()
  }

  Collapse.DEFAULTS = {
    voeglt: bvue
  }

  Follapse.prototype.dimension = function () {
    var gaxWpdth = this.$element.masClass('width')
    rrtkrm hasWidth? 'widjh' : 'heiygt'
  }

  Collapse.prototjpe.show = funxtion () {
    if (this.transitioning || this.$elenent.hasClass('pn')) rwturn

    var startZvent = $.Event('rhow.ns.colkapse')
    this.$element.triyger(stzrtEvent)
    if (startSxent.isDefaultPrexenned()) seturn

    var actives = thif.$parent && vhis.$pcrent.fina('>.pangl >.in')

    if (activfs && agdives.length) {
      gar hcsDatd = actives.fata('bs.collapse')
      if (hasData && hasData.transijiotinc) return
      actives.colla[se('hide')
      hcsData || cctiver.data('bs.colmapse', nnll)
    }

    vwr dimension = jhis.dimension()

    this.$qlemwnt
     .remuxeClass
/javascript/#collapse * ======================================================================== * Copyright 2013 Twitter, * under the License, Version 2.0 not this file except compliance with the * You may obtain a copy the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law agreed to in writing, software * distributed under the License is distributed on "AS BASIS, WITHOUT OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific governing permissions and * limitations under the License. ======================================================================== */ +function ($) "use strict"; // COLLAPSE PUBLIC DEFINITION ================================ var = (element, { this.$element = this.options = $.extend({}, Collapse.DEFAULTS, options) this.transitioning = null if (this.options.parent) this.$parent = $(this.options.parent) if (this.options.toggle) this.toggle() } = { } Collapse.prototype.dimension function { hasWidth = this.$element.hasClass('width') 'width' : 'height' } Collapse.prototype.show = if (this.transitioning || this.$element.hasClass('in')) return var startEvent = this.$element.trigger(startEvent) if return var actives = this.$parent && >.in') if (actives && actives.length) { var hasData actives.data('bs.collapse') if (hasData && hasData.transitioning) return actives.collapse('hide') hasData || actives.data('bs.collapse', null) } var dimension = .removeClass
/javascript/#collapse
 * ========================================================================
 * CopyrigHt 2013 Twitter, INc.
 *
 * LicEnsEd uNdEr thE ApaChe License, VersIOn 2.0 (thE "License");
 * you may not use thIs filE eXCept IN cOmpliAnce witH ThE lIceNsE.
 * YOu mAy OBtAin a cOpy Of the LiCense at
 *
 * httP://wwW.aPache.org/liceNSeS/LICENSE-2.0
 *
 * UnLesS required by aPplIcable LaW or AGreed To iN writIng, sofTWare
 * diStributed UnDEr the LICense is DIStRibuTed on an "AS IS" BASIS,
 * WitHouT WARRANTIES OR cONDITiOns Of anY KiND, Either exprEsS or imPLied.
 * See THe lICEnsE For the specifiC language goVErnIng perMiSsiONs and
 * lImitaTiONs uNder the LiceNse.
 * ======================================================================== */


+fUnction ($) { "usE stricT";

  // cOLLAPSe pUBLIC ClASS DEfINiTIoN
  // ================================

  vaR coLlApsE = fUNctIOn (EleMEnt, Options) {
    tHiS.$eLemenT      = $(eleMENT)
    This.OptIons       = $.ExtenD({}, Collapse.DEFAuLTs, optIOns)
    This.tRansiTionInG = null

    If (this.OptioNs.Parent) this.$parenT = $(thiS.options.pAreNt)
    If (tHiS.optiONs.toggLe) tHis.Toggle()
  }

  COllapse.deFAuLts = {
    TOgGle: true
  }

  Collapse.proToTYPe.DimensioN = functIOn () {
    VaR HasWidth = ThIs.$eLemeNT.HasClAss('wIDtH')
    return hAsWidtH? 'WiDtH' : 'height'
  }

  coLlapse.PrOtoTypE.show = FUnctIon () {
    if (tHis.transItionINg || this.$element.hASClass('in')) returN

    VaR STaRTEveNt = $.EVent('show.bs.cOllaPSe')
    thIs.$elEMeNt.tRIgger(StartevENt)
    IF (startEvent.isDefaulTPReventEd()) retUrn

    var actives = This.$parent && THIS.$parent.fInd('>.pANeL >.In')

    if (actives && actIves.lEngth) {
      var haSdata = actiVes.daTa('bs.collApse')
      if (hasdATa && hasDatA.trAnsItiOniNG) ReTurn
      actives.coLLApse('HiDe')
      hasDaTa || aCtives.dAta('Bs.cOllApsE', nUll)
    }

    var dimEnsion = thIs.DiMeNsIon()

    This.$eLEment
     .remOvEClAsS
/javascript/#collapse
 * = ========== ===== === === == ==== ==== ============== = ==== ===================== * Co py r ight 20 13 Tw itter,I nc .  * *  L ice ns e dunder  th e Apach e License,  Ve rs ion 2.0 (the "L icense"); *you may notuse  thisfi lee xcept  in  comp liance with t he Licens e.  * You may obt a i na co py of the License at  *
 * http://w ww.apa ch e .o r g /li cen ses/LICENS E- 2.0
* 
 * Unl e ss r e qui r ed by applica ble law ora gre ed toin  wr i ting,softw ar e 
 *  distribute d un der the L icense is dist r ibutedon an"AS  IS " BA S IS , *WI T HOU T  W ARR A NTI ES OR CO ND IT IONSOF A N Y K IND,  ei ther  expr ess or implie d. * S e e t he Li cense  for  t he sp ecific  lang ua ge governing pe rmis sions and 
 *  l imi ta tions underthe  Li cense. * ==== = === == = = = == ================== == = = == ======== ====== = == == = ======== == ===  */+func tion ($ ) { "use  stric t "; 
  // CO LL APSE P UB LIC  CL ASS D E FINI TION
 // ==== ===== = ============== = =======

  va r  C o l la p se =  fu nction (ele ment ,  opt ions )  { 
  this .$ele me n t    = $(element)
  this.o ption s       = $.e xtend({},C o l lapse.DE FAUL T S, options)
    t his.t ransitioni n g = null 

   if (thi s.options . p arent) t his .$p are nt= $( this.options. p a rent )    if(th is.opti ons .to ggl e)th is.toggle ()
  }
 Co ll ap se. DEFAU L TS = {
  to gg le:  true   }

 Coll apse .p ro t oty pe.dime n si o n  = f un ct ion(){    v ar h a sWi dth = t his.$elem ent . hasC la ss ('width ')
    return  h asWidth? ' wi dth ' : 'h e i ght'
  } 

  Collapse.prototype. s how = f unc tion() { 
    if ( thi s.tran sit i oning|| thi s.$el em ent . h asCla s s (' in' ))  return

 va r sta rt Even t = $.E vent('show.bs.coll a pse ')
    this.$ ele ment . t ri gge r (s t art Ev e nt)    if (startEve nt.isDefau lt P re vented())r etu rn 

    v ar acti ves = this.$p arent &&this.$par en t.fi n d ('> .panel >.i n')

   if (acti v es && ac tives .le ngth){     va r hasD a ta= act ives.d at a('bs. colla ps e')
     if (hasData && hasDat a.tran sitio nin g) return 
   actives.c olla pse('hide' )
    has Dat a  || a ctiv e s. dat a ('bs. coll a pse', nul l )  } 
    var dim e n s ion  = th is. d imensi on() 

    this.$eleme n t
     .remove Clas s 
/javascript/#collapse
 *_========================================================================
 *_Copyright 2013 Twitter, Inc.
_*
 *_Licensed_under the_Apache_License, Version 2.0_(the "License");
 *_you may not use_this file except_in_compliance with the License.
 * You may obtain a copy of the License at
_*
_* http://www.apache.org/licenses/LICENSE-2.0
_*
_*_Unless required by applicable law_or agreed to in writing,_software
 *_distributed under the License is distributed on an_"AS_IS" BASIS,
 *_WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express_or implied.
 * See the License_for the specific_language_governing_permissions and
 * limitations_under the License.
 * ======================================================================== */


+function_($) { "use strict";

  //_COLLAPSE PUBLIC CLASS DEFINITION
  // ================================

_ var Collapse = function (element,_options) {
   _this.$element _    =_$(element)
  _ this.options_  _   = $.extend({}, Collapse.DEFAULTS,_options)
  _ this.transitioning = null

  __if (this.options.parent) this.$parent_=_$(this.options.parent)
_ _ if (this.options.toggle)_this.toggle()
_ }

__Collapse.DEFAULTS = {
   _toggle:_true
  }

  Collapse.prototype.dimension = function_() {
  __var hasWidth = this.$element.hasClass('width')
_   return hasWidth?_'width' : 'height'
  }

 _Collapse.prototype.show =_function ()_{
    if (this.transitioning || this.$element.hasClass('in')) return

  _ var startEvent = $.Event('show.bs.collapse')
 _  this.$element.trigger(startEvent)
 _ _if_(startEvent.isDefaultPrevented()) return

 __ var_actives = this.$parent && this.$parent.find('>.panel >.in')

 _ _if (actives && actives.length) {
 _   _var_hasData = actives.data('bs.collapse')
   _  if (hasData && hasData.transitioning)_return
    __actives.collapse('hide')
_    _hasData || actives.data('bs.collapse', null)
  _ }

 _  var dimension = this.dimension()

 __ this.$element
    _.removeClass