diff --git a/.idea/.name b/.idea/.name new file mode 100644 index 0000000..cf8fa21 --- /dev/null +++ b/.idea/.name @@ -0,0 +1 @@ +bootstrap-for-ember-Dan \ No newline at end of file diff --git a/.idea/bootstrap-for-ember-Dan.iml b/.idea/bootstrap-for-ember-Dan.iml new file mode 100644 index 0000000..8bc2a5c --- /dev/null +++ b/.idea/bootstrap-for-ember-Dan.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 0000000..0e08232 --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/jsLibraryMappings.xml b/.idea/jsLibraryMappings.xml new file mode 100644 index 0000000..c68813d --- /dev/null +++ b/.idea/jsLibraryMappings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/libraries/bootstrap_for_ember_Dan_node_modules.xml b/.idea/libraries/bootstrap_for_ember_Dan_node_modules.xml new file mode 100644 index 0000000..4c70e1f --- /dev/null +++ b/.idea/libraries/bootstrap_for_ember_Dan_node_modules.xml @@ -0,0 +1,14 @@ + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..19f74da --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..0b2da67 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..464a5f1 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,285 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1428235339358 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Gruntfile.js b/Gruntfile.js index d6729b7..bdf4212 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -37,9 +37,9 @@ module.exports = function (grunt) { files: ['<%= yeoman.app %>/styles/{,*/}*.{scss,sass}'], tasks: ['compass:server'] }, - ember_templates: { + emberTemplates: { files: '<%= yeoman.app %>/templates/**/*.hbs', - tasks: ['ember_templates'] + tasks: ['emberTemplates'] }, markdown: { files: '<%= yeoman.app %>/templates/**/*.md', @@ -309,7 +309,7 @@ module.exports = function (grunt) { server: [ 'compass', 'markdown', - 'ember_templates', + 'emberTemplates', 'coffee:dist' ], test: [ @@ -318,19 +318,22 @@ module.exports = function (grunt) { dist: [ 'coffee', 'markdown', - 'ember_templates', + 'emberTemplates', 'compass', 'imagemin', 'svgmin', 'htmlmin' ] }, - ember_templates: { + emberTemplates: { compile_components: { options: { templateName: function(filename) { return filename.substring(filename.lastIndexOf('/components/')+1,filename.length); }, + amd: false, + handlebarsPath: 'app/bower_components/handlebars/handlebars.js', + templateCompilerPath: 'app/bower_components/ember/ember-template-compiler.js', namespace: "Ember.TEMPLATES" }, files: { diff --git a/app/.idea/.name b/app/.idea/.name new file mode 100644 index 0000000..7a0b7f0 --- /dev/null +++ b/app/.idea/.name @@ -0,0 +1 @@ +app \ No newline at end of file diff --git a/app/.idea/app.iml b/app/.idea/app.iml new file mode 100644 index 0000000..6b8184f --- /dev/null +++ b/app/.idea/app.iml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/app/.idea/encodings.xml b/app/.idea/encodings.xml new file mode 100644 index 0000000..e206d70 --- /dev/null +++ b/app/.idea/encodings.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/.idea/misc.xml b/app/.idea/misc.xml new file mode 100644 index 0000000..1162f43 --- /dev/null +++ b/app/.idea/misc.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/app/.idea/modules.xml b/app/.idea/modules.xml new file mode 100644 index 0000000..d1d947c --- /dev/null +++ b/app/.idea/modules.xml @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/app/.idea/scopes/scope_settings.xml b/app/.idea/scopes/scope_settings.xml new file mode 100644 index 0000000..922003b --- /dev/null +++ b/app/.idea/scopes/scope_settings.xml @@ -0,0 +1,5 @@ + + + + \ No newline at end of file diff --git a/app/.idea/vcs.xml b/app/.idea/vcs.xml new file mode 100644 index 0000000..def6a6a --- /dev/null +++ b/app/.idea/vcs.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/app/.idea/workspace.xml b/app/.idea/workspace.xml new file mode 100644 index 0000000..17814c3 --- /dev/null +++ b/app/.idea/workspace.xml @@ -0,0 +1,206 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1409553916722 + 1409553916722 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/scripts/components/BsButtonComponent.coffee b/app/scripts/components/BsButtonComponent.coffee index eae0453..288f749 100644 --- a/app/scripts/components/BsButtonComponent.coffee +++ b/app/scripts/components/BsButtonComponent.coffee @@ -1,45 +1,90 @@ -Bootstrap.BsButtonComponent = Ember.Component.extend(Bootstrap.TypeSupport, Bootstrap.SizeSupport, - layoutName: 'components/bs-button' - tagName: 'button' - classNames: ['btn'] - classNameBindings: ['blockClass'] - classTypePrefix: 'btn' - clickedParam: null - block: null - attributeBindings: ['disabled', 'dismiss:data-dismiss', '_type:type', 'style'] - _type: 'button' - bubbles: true - allowedProperties: ['title', 'type', 'size', 'block', 'disabled', 'clicked', 'dismiss', 'class'] - icon_active: undefined - icon_inactive: undefined - - init: -> - @_super() - # If content is an object (may happen when a button is the view class of a collectionView), then assign allowed properties to the button component. - if @get('content')? and Ember.typeOf(@get('content')) is 'instance' - c = @get('content') - @set key, c[key] for key in @get('allowedProperties') when c[key]? - else - if not @get('title')? - @set('title', @get('content')) - @attributeBindings.pushObject attr for attr of @ when attr.match(/^data-[\w-]*$/)? - - blockClass: ( -> - if @block then "#{@classTypePrefix}-block" else null - ).property('block').cacheable() - - click: (evt) -> - evt.stopPropagation() unless @get('bubbles') - @sendAction('clicked', @get('clickedParam')) - - loadingChanged: (-> - loading = if @get('loading') isnt null then @get('loading') else "reset" - Ember.$("##{@elementId}").button(loading) - ).observes('loading') - - icon: (-> - if @get('isActive') then @get('icon_active') else @get('icon_inactive') - ).property('isActive') +Bootstrap.BsButtonComponent = Ember.Component.extend(Ember._ProxyMixin, Bootstrap.TypeSupport, Bootstrap.SizeSupport, + layoutName: 'components/bs-button' + tagName: 'button' + classNames: ['btn'] + classNameBindings: ['blockClass'] + classTypePrefix: 'btn' + clickedParam: null + block: null + attributeBindings: ['disabled', 'dismiss:data-dismiss', 'contentDismiss:data-dismiss', '_type:type', 'style'] + _type: 'button' + bubbles: true + allowedProperties: ['title', 'type', 'size', 'block', 'disabled', 'clicked', 'dismiss', 'class'] + icon_active: undefined + icon_inactive: undefined + getPojoProperties: (pojo) -> + if Ember.isEmpty(pojo) + return [] + Object.keys pojo + + getProxiedProperties: (proxyObject) -> + # Three levels, first the content, then the prototype, then the properties of the instance itself + contentProperties = @getObjectProperties(proxyObject.get('content')) + prototypeProperties = Object.keys(proxyObject.constructor.prototype) + objectProperties = @getPojoProperties(proxyObject) + contentProperties.concat(prototypeProperties).concat(objectProperties).uniq() + + getEmberObjectProperties: (emberObject) -> + prototypeProperties = Object.keys(emberObject.constructor.prototype) + objectProperties = @getPojoProperties(emberObject) + prototypeProperties.concat(objectProperties).uniq() + + getEmberDataProperties: (emberDataObject) -> + attributes = Ember.get(emberDataObject.constructor, 'attributes') + keys = Ember.get(attributes, 'keys.list') + Ember.getProperties emberDataObject, keys + + getObjectProperties: (object) -> + if object instanceof DS.Model + @getEmberDataProperties object + else if object instanceof Ember.ObjectProxy or Ember._ProxyMixin.detect(object) + @getProxiedProperties object + else if object instanceof Ember.Object + @getEmberObjectProperties object + else + @getPojoProperties object + + init: -> + @_super() + me = @ + # If content is an object (may happen when a button is the view class of a collectionView), then assign allowed properties to the button component. + if @get('content')? and Ember.typeOf(@get('content')) is 'instance' + properties = @.getObjectProperties(@.get('content')) + @.getProperties(properties) + else + if not @get('title')? + @set('title', @get('content')) + #@attributeBindings.pushObject attr for attr of @ when attr.match(/^data-[\w-]*$/)? + + blockClass: ( -> + if @block then "#{@classTypePrefix}-block" else null + ).property('block') + + contentDismiss: ( -> + @get('content.dismiss') + ).property('content.dismiss') + + click: (evt) -> + evt.stopPropagation() unless @get('bubbles') + @sendAction('clicked', @get('clickedParam')) + + loadingChanged: (-> + loading = if @get('loading') isnt null then @get('loading') else "reset" + if loading isnt 'reset' and Ember.isEmpty(@.get('reset')) + @.set('reset', @.$().html()) + + @set('disabled', true) + @.$().html(@.get(loading)) + + if loading is 'reset' + @set('disabled', false) + @set('reset', null) + #Ember.$("##{@elementId}").button(loading) + ).observes('loading') + + icon: (-> + if @get('isActive') then @get('icon_active') else @get('icon_inactive') + ).property('isActive') ) Ember.Handlebars.helper 'bs-button', Bootstrap.BsButtonComponent diff --git a/app/scripts/components/BsModalComponent.coffee b/app/scripts/components/BsModalComponent.coffee index e34fa67..d2ec2af 100644 --- a/app/scripts/components/BsModalComponent.coffee +++ b/app/scripts/components/BsModalComponent.coffee @@ -1,14 +1,77 @@ ### Modal component. ### +# +#Bootstrap.ResizeMixin = Ember.Mixin.create( +# resizing: false +# resizeDelay: 200 +# findResizableParentView: (parent) -> +# if Ember.isNone(parent) +# return null +# if parent and !parent.has('resize') +# return @findResizableParentView(parent.get('parentView')) +# parent +# _setupResizeHandlers: (-> +# resizeHandler = @get('_handleResize') +# parent = @findResizableParentView(@get('parentView')) +# if Ember.isNone(parent) +# resizeHandler = Ember.$.proxy(resizeHandler, this) +# # element doesn't have resizable views, so bind to the window +# Ember.$(window).on 'resize.' + @elementId, resizeHandler +# @_resizeHandler = resizeHandler +# else +# parent.on 'resize', this, resizeHandler +# return +# ).on('didInsertElement') +# _removeResizeHandlers: (-> +# if @_resizeHandler +# Ember.$(window).off 'resize.' + @elementId, @_resizeHandler +# return +# ).on('willDestroyElement') +# _handleResize: (event, promise) -> +# if Ember.isNone(promise) +# promise = Ember.RSVP.resolve(null, 'Resize handler') +# if !@get('resizing') +# @set 'resizing', true +# if @has('resizeStart') +# @trigger 'resizeStart', event +# if @has('resize') +# @trigger 'resize', event, promise +# Ember.run.debounce this, @_endResize, event, @get('resizeDelay') +# return +# _endResize: (event) -> +# @set 'resizing', false +# if @has('resizeEnd') +# @trigger 'resizeEnd', event +# return +#) + Bootstrap.BsModalComponent = Ember.Component.extend(Ember.Evented, layoutName: 'components/bs-modal' classNames: ['modal'] - classNameBindings: ['fade', 'isVis:in'] + classNameBindings: ['fade', 'isVis:in', 'vertical:modal-dialog-center', 'class'] attributeBindings: ['role', 'aria-labelledby', 'isAriaHidden:aria-hidden', "ariaLabelledBy:aria-labelledby"] isAriaHidden: (-> "#{@get('isVisible')}" ).property('isVisible') + dialogStyle: (-> + Ember.run.scheduleOnce 'afterRender', this, -> + if @$() + return @$().find('.modal-dialog').css('z-index', @get('zindex')) + return + ).observes('zindex') + dialogVerticalStyle: (-> + if @get('vertical') + Ember.run.scheduleOnce 'afterRender', this, -> + if @$() + marginHeight = @$('.modal-dialog').height() / 2 + return @$().find('.modal-dialog').css('margin-top', '-' + marginHeight + 'px'); + return + ).observes('vertical').on('didInsertElement') + backdropStyle: (-> + ("z-index: #{@get('zindex') - 2};").htmlSafe() + ).property('zindex') + modalBackdrop: '' role: 'dialog' footerViews: [] @@ -21,7 +84,33 @@ Bootstrap.BsModalComponent = Ember.Component.extend(Ember.Evented, isVis: false fullSizeButtons: false fade: true - + vertical: false + zindex: 1000 + keyClose: true + +# onResize: (-> +# # do what you want when resize is triggered +# if @get('vertical') +# return Ember.run.scheduleOnce('afterRender', this, -> +# contentHeight = undefined +# footerHeight = undefined +# headerHeight = undefined +# contentHeight = Ember.$(window).height() - 60 +# headerHeight = @$().find('.modal-header').outerHeight() or 2 +# footerHeight = @$().find('.modal-footer').outerHeight() or 2 +# @$().find('.modal-content').css 'max-height': -> +# contentHeight +# @$().find('.modal-body').css 'max-height': -> +# contentHeight - headerHeight + footerHeight +# @$().find('.modal-dialog').addClass('modal-dialog-center').css +# 'margin-top': -> +# -(Ember.$(this).outerHeight() / 2) +# 'margin-left': -> +# -(Ember.$(this).outerWidth() / 2) +# ) +# return +# ).on 'resize' + didInsertElement: -> @._super() @setupBinders() @@ -30,17 +119,18 @@ Bootstrap.BsModalComponent = Ember.Component.extend(Ember.Evented, Ember.assert("Modal name is required for modal view #{@get('elementId')}", @get('name')) name?= @get('elementId') Bootstrap.ModalManager.add(name, @) - +# @onResize() + @dialogStyle() if @manual @show() becameVisible: -> Em.$('body').addClass('modal-open') - @appendBackdrop() if @get("backdrop") + #@appendBackdrop() if @get("backdrop") becameHidden: -> Em.$('body').removeClass('modal-open') - @_backdrop.remove() if @_backdrop + #@_backdrop.remove() if @_backdrop appendBackdrop: -> parentElement = @$().parent() @@ -48,19 +138,25 @@ Bootstrap.BsModalComponent = Ember.Component.extend(Ember.Evented, show: -> @set 'isVisible', true - current = this - setTimeout (-> - current.set 'isVis', true + Ember.run.later @, (-> + @set 'isVis', true return ), 15 return hide: -> + if @get('isDestroyed') or @get('isDestroying') + return @set 'isVis', false - current = this - @$().one 'webkitTransitionEnd', (e) -> - current.set 'isVisible', false + if @get('fade') + Ember.run.later this, (-> + if @get('isDestroyed') or @get('isDestroying') + return + @set 'isVisible', false return + ), 300 + else + @set 'isVisible', false false toggle: -> @@ -74,16 +170,24 @@ Bootstrap.BsModalComponent = Ember.Component.extend(Ember.Evented, keyPressed: (event) -> #Handle ESC - if event.keyCode is 27 + if event.keyCode == 27 and @get('keyClose') and @get('zindex') == Bootstrap.ModalManager.get('zindex') @close event close: (event) -> + if @get('isDestroyed') or @get('isDestroying') + return @set 'isVis', false - current = this - @$().one 'webkitTransitionEnd', (e) -> - if current.get('manual') then current.destroy() else current.hide() + if @get('fade') + Ember.run.later this, (-> + if @get('isDestroyed') or @get('isDestroying') + return + if @get('manual') then @destroy() else @set 'isVisible', false + @trigger 'closed', this return - @trigger 'closed' + ), 300 + else + if @get('manual') then @destroy() else @set 'isVisible', false + @trigger 'closed', this #Invoked automatically by ember when the view is destroyed, giving us a chance to perform cleanups @@ -117,8 +221,15 @@ Bootstrap.BsModalComponent = Bootstrap.BsModalComponent.reopenClass( ) ### -Bootstrap.ModalManager = Ember.Object.create( +Bootstrap.ModalManager = Ember.Object.createWithMixins(Ember.Evented, add: (name, modalInstance) -> + zindex = @get('zindex') + @set('zindex', zindex + 2) + modalInstance.set('zindex', zindex + 2) + modalInstance.on 'closed', (e) -> + zindex = e.get('zindex') + Bootstrap.ModalManager.set('zindex', zindex - 2) if zindex is Bootstrap.ModalManager.get('zindex') + Bootstrap.ModalManager.trigger 'closed', e @set name, modalInstance register: (name, modalInstance) -> @@ -140,7 +251,7 @@ Bootstrap.ModalManager = Ember.Object.create( toggle: (name) -> @get(name).toggle() - confirm: (controller, title, message, confirmButtonTitle = "Confirm", confirmButtonEvent = "modalConfirmed",confirmButtonType = null, cancelButtonTitle = "Cancel", cancelButtonEvent = "modalCanceled",cancelButtonType = null, targetObj = controller, fade = true, fullSizeButtons = false) -> + confirm: (controller, title, message, options, confirmButtonTitle = "Confirm", confirmButtonEvent = "modalConfirmed",confirmButtonType = null, cancelButtonTitle = "Cancel", cancelButtonEvent = "modalCanceled",cancelButtonType = null) -> body = Ember.View.extend( template: Ember.Handlebars.compile(message || "Are you sure you would like to perform this action?") ) @@ -148,57 +259,72 @@ Bootstrap.ModalManager = Ember.Object.create( Ember.Object.create({title: confirmButtonTitle, clicked: confirmButtonEvent, type: confirmButtonType, dismiss: 'modal'}) Ember.Object.create({title: cancelButtonTitle, clicked: cancelButtonEvent, type: cancelButtonType, dismiss: 'modal'}) ] - @open('confirm-modal', title || 'Confirmation required!', body, buttons, controller, fade, fullSizeButtons, targetObj) - - okModal: (controller, title, message, okButtonTitle = "OK", okButtonEvent = "okModal", okButtonType = null, targetObj = controller, fade = true, fullSizeButtons = false) -> + @open('confirm-modal', title || 'Confirmation required!', body, buttons, controller, options) + + okModal: (controller, title, message, options, okButtonTitle = "OK", okButtonEvent = "okModal", okButtonType = null) -> body = Ember.View.extend( template: Ember.Handlebars.compile(message || "Are you sure you would like to perform this action?") ) buttons = [ Ember.Object.create({title: okButtonTitle, clicked:okButtonEvent, type: okButtonType, dismiss: 'modal'}) ] - @open('ok-modal', title || 'Confirmation required!', body, buttons, controller, fade, fullSizeButtons, targetObj) + @open('ok-modal', title || 'Confirmation required!', body, buttons, controller, options) openModal: (modalView, options = {}) -> rootElement = options.rootElement or '.ember-application' instance = modalView.create options instance.appendTo rootElement - open: (name, title, view, footerButtons, controller, fade , fullSizeButtons = false, targetObj = controller) -> - cl = controller.container.lookup 'component-lookup:main' - modalComponent = cl.lookupFactory('bs-modal', controller.get('container')).create() - - modalComponent.setProperties( - name: name - title: title - manual: true - footerButtons: footerButtons - targetObject: targetObj - fade: fade - fullSizeButtons: fullSizeButtons - ) + openManual: (name, title, content, footerButtons, controller, options) -> + view = Ember.View.extend( + template: Ember.Handlebars.compile(content) + controller: controller + ) + @open name, title, view, footerButtons, controller, options - if Ember.typeOf(view) is 'string' - template = controller.container.lookup("template:#{view}") - Ember.assert("Template #{view} was specified for Modal but template could not be found.", template) - if template - modalComponent.setProperties( - body: Ember.View.extend( - template: template, - controller: controller - ) - ) - else if Ember.typeOf(view) is 'class' - modalComponent.setProperties( - body: view, - controller: controller - ) - - modalComponent.appendTo(controller.namespace.rootElement) + open: (name, title, view, footerButtons, controller, options) -> + cl = undefined + modalComponent = undefined + template = undefined + options = {} unless options? + options.fade = @get("fade") unless options.fade? + options.fullSizeButtons = @get("fullSizeButtons") unless options.fullSizeButtons? + options.targetObject = controller unless options.targetObject? + options.vertical = @get("vertical") unless options.vertical? + cl = controller.container.lookup("component-lookup:main") + modalComponent = cl.lookupFactory("bs-modal", controller.get("container")).create() + modalComponent.setProperties + name: name + title: title + manual: true + footerButtons: footerButtons + + modalComponent.setProperties(options) + + if Ember.typeOf(view) is "string" + template = controller.container.lookup("template:" + view) + Ember.assert "Template " + view + " was specified for Modal but template could not be found.", template + if template + modalComponent.setProperties body: Ember.View.extend( + template: template + controller: controller + ) + else if Ember.typeOf(view) is "class" + modalComponent.setProperties + body: view + controller: controller + rootElement = controller.rootElement + rootElement = controller.namespace.rootElement unless typeof controller.rootElement isnt "undefined" + modalComponent.appendTo rootElement + fade: true + fullSizeButtons: false + vertical: false + zindex: 1000 ) Ember.Application.initializer name: 'bs-modal' initialize: (container, application) -> - container.register 'component:bs-modal', Bootstrap.BsModalComponent \ No newline at end of file +# Ember.$(window).resize(Bootstrap.adjustModalMaxHeightAndPosition).trigger "resize" if Ember.$(window).height() >= 320 + container.register "component:bs-modal", Bootstrap.BsModalComponent \ No newline at end of file diff --git a/app/scripts/mixins/Type.coffee b/app/scripts/mixins/Type.coffee index 80f5f2f..d5fd3a5 100644 --- a/app/scripts/mixins/Type.coffee +++ b/app/scripts/mixins/Type.coffee @@ -8,10 +8,11 @@ Bootstrap.TypeSupport = Ember.Mixin.create( type: 'default' typeClass: ( -> - type = @get 'type' + type = @get 'content.type' + type = @get 'type' if not type? or typeof type is 'undefined' type = 'default' if not type? pref = @get 'classTypePrefix' "#{pref}-#{type}" - ).property('type').cacheable() + ).property('type', 'content.type').cacheable() ) \ No newline at end of file diff --git a/app/templates/components/bs-modal.hbs b/app/templates/components/bs-modal.hbs index 7111848..160701f 100644 --- a/app/templates/components/bs-modal.hbs +++ b/app/templates/components/bs-modal.hbs @@ -17,12 +17,14 @@ {{/if}} - \ No newline at end of file + + +
\ No newline at end of file diff --git a/bower.json b/bower.json index 55de86a..c3cfd5f 100644 --- a/bower.json +++ b/bower.json @@ -1,10 +1,10 @@ { - "name": "ember-addons.bootstrap_for_ember", - "version": "0.7.0", - "description": "Bootstrap for Ember.js", + "name": "bootstrap-for-ember-dan", + "version": "0.8.0", + "description": "Bootstrap for Ember.js fork by Dan", "homepage": "http://ember-addons.github.io/bootstrap-for-ember", "authors": [ - "Asaf Shakarchi " + "Asaf Shakarchi , Dan Shapir" ], "keywords": [ "bootstrap", @@ -35,14 +35,15 @@ "./dist/js/bs-notifications.min.js", "./dist/js/bs-progressbar.min.js", "./dist/js/bs-wizard.min.js" - ], + ], "devDependencies": { "modernizr": "~2.6.2", "jquery": "~1.9.1", - "ember": "~1.9.0", "bootstrap": "3.0.0", "highlightjs": "~7.3.0", - "font-awesome": "~4.0.3" + "font-awesome": "~4.0.3", + "ember": "~1.11.0", + "handlebars": "2.0.0" }, "license": "Apache2", "ignore": [ diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000..f652b6a --- /dev/null +++ b/dist/index.html @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/dist/js/bs-alert.max.js b/dist/js/bs-alert.max.js index 70c6b94..0d32063 100644 --- a/dist/js/bs-alert.max.js +++ b/dist/js/bs-alert.max.js @@ -128,31 +128,97 @@ }).call(this); -this["Ember"] = this["Ember"] || {}; -this["Ember"]["TEMPLATES"] = this["Ember"]["TEMPLATES"] || {}; - -this["Ember"]["TEMPLATES"]["components/bs-alert"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) { -this.compilerInfo = [4,'>= 1.0.0']; -helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; - var buffer = '', stack1, hashTypes, hashContexts, self=this, escapeExpression=this.escapeExpression; - -function program1(depth0,data) { - - - data.buffer.push("\n ×\n"); - } - - hashTypes = {}; - hashContexts = {}; - stack1 = helpers['if'].call(depth0, "dismiss", {hash:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); - if(stack1 || stack1 === 0) { data.buffer.push(stack1); } - data.buffer.push("\n"); - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "message", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "yield", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - return buffer; - -}); \ No newline at end of file +Ember.TEMPLATES["components/bs-alert"] = Ember.HTMLBars.template((function() { + var child0 = (function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createElement("a"); + dom.setAttribute(el1,"class","close"); + dom.setAttribute(el1,"data-dismiss","alert"); + dom.setAttribute(el1,"href","#"); + var el2 = dom.createTextNode("×"); + dom.appendChild(el1, el2); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + return fragment; + } + }; + }()); + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, get = hooks.get, block = hooks.block, content = hooks.content; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(fragment,0,0,contextualElement); + var morph1 = dom.createMorphAt(fragment,1,1,contextualElement); + var morph2 = dom.createMorphAt(fragment,2,2,contextualElement); + dom.insertBoundary(fragment, null); + dom.insertBoundary(fragment, 0); + block(env, morph0, context, "if", [get(env, context, "dismiss")], {}, child0, null); + content(env, morph1, context, "message"); + content(env, morph2, context, "yield"); + return fragment; + } + }; +}())); \ No newline at end of file diff --git a/dist/js/bs-alert.min.js b/dist/js/bs-alert.min.js index 402ebc9..86a0ad2 100644 --- a/dist/js/bs-alert.min.js +++ b/dist/js/bs-alert.min.js @@ -1 +1 @@ -+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function c(){f.trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(window.jQuery),function(){Bootstrap.BsAlertComponent=Ember.Component.extend(Bootstrap.TypeSupport,{classNames:["alert"],classNameBindings:["fade","fade:in"],layoutName:"components/bs-alert",classTypePrefix:"alert",attributeBindings:["data-timeout"],dismissAfter:0,closedParam:null,didInsertElement:function(){var a=this;return this.dismissAfter>0&&Ember.run.later(this,"dismiss",1e3*this.dismissAfter),Ember.$("#"+this.elementId).bind("closed.bs.alert",function(){return a.sendAction("closed",a.get("closedParam")),a.destroy()}),Ember.$("#"+this.elementId).bind("close.bs.alert",function(){return a.sendAction("close",a.get("closedParam"))})},dismiss:function(){return Ember.$("#"+this.elementId).alert("close")}}),Ember.Handlebars.helper("bs-alert",Bootstrap.BsAlertComponent)}.call(this),this.Ember=this.Ember||{},this.Ember.TEMPLATES=this.Ember.TEMPLATES||{},this.Ember.TEMPLATES["components/bs-alert"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){b.buffer.push('\n ×\n')}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j="",k=this,l=this.escapeExpression;return h={},i={},g=c["if"].call(b,"dismiss",{hash:{},inverse:k.noop,fn:k.program(1,f,e),contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e}),(g||0===g)&&e.buffer.push(g),e.buffer.push("\n"),h={},i={},e.buffer.push(l(c._triageMustache.call(b,"message",{hash:{},contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e}))),h={},i={},e.buffer.push(l(c._triageMustache.call(b,"yield",{hash:{},contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e}))),j}); \ No newline at end of file ++function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function c(){f.trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(window.jQuery),function(){Bootstrap.BsAlertComponent=Ember.Component.extend(Bootstrap.TypeSupport,{classNames:["alert"],classNameBindings:["fade","fade:in"],layoutName:"components/bs-alert",classTypePrefix:"alert",attributeBindings:["data-timeout"],dismissAfter:0,closedParam:null,didInsertElement:function(){var a=this;return this.dismissAfter>0&&Ember.run.later(this,"dismiss",1e3*this.dismissAfter),Ember.$("#"+this.elementId).bind("closed.bs.alert",function(){return a.sendAction("closed",a.get("closedParam")),a.destroy()}),Ember.$("#"+this.elementId).bind("close.bs.alert",function(){return a.sendAction("close",a.get("closedParam"))})},dismiss:function(){return Ember.$("#"+this.elementId).alert("close")}}),Ember.Handlebars.helper("bs-alert",Bootstrap.BsAlertComponent)}.call(this),Ember.TEMPLATES["components/bs-alert"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createElement("a");a.setAttribute(c,"class","close"),a.setAttribute(c,"data-dismiss","alert"),a.setAttribute(c,"href","#");var d=a.createTextNode("×");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom;d.detectNamespace(c);var e;return b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(e=this.build(d),this.hasRendered?this.cachedFragment=e:this.hasRendered=!0),this.cachedFragment&&(e=d.cloneNode(this.cachedFragment,!0))):e=this.build(d),e}}}();return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createComment("");a.appendChild(b,c);var c=a.createComment("");a.appendChild(b,c);var c=a.createComment("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block,i=f.content;e.detectNamespace(d);var j;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(j=this.build(e),this.hasRendered?this.cachedFragment=j:this.hasRendered=!0),this.cachedFragment&&(j=e.cloneNode(this.cachedFragment,!0))):j=this.build(e);var k=e.createMorphAt(j,0,0,d),l=e.createMorphAt(j,1,1,d),m=e.createMorphAt(j,2,2,d);return e.insertBoundary(j,null),e.insertBoundary(j,0),h(c,k,b,"if",[g(c,b,"dismiss")],{},a,null),i(c,l,b,"message"),i(c,m,b,"yield"),j}}}()); \ No newline at end of file diff --git a/dist/js/bs-badge.max.js b/dist/js/bs-badge.max.js index 3724644..7581dbf 100644 --- a/dist/js/bs-badge.max.js +++ b/dist/js/bs-badge.max.js @@ -10,17 +10,44 @@ }).call(this); -this["Ember"] = this["Ember"] || {}; -this["Ember"]["TEMPLATES"] = this["Ember"]["TEMPLATES"] || {}; - -this["Ember"]["TEMPLATES"]["components/bs-badge"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) { -this.compilerInfo = [4,'>= 1.0.0']; -helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; - var hashTypes, hashContexts, escapeExpression=this.escapeExpression; - - - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "content", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - -}); \ No newline at end of file +Ember.TEMPLATES["components/bs-badge"] = Ember.HTMLBars.template((function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, content = hooks.content; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(fragment,0,0,contextualElement); + dom.insertBoundary(fragment, null); + dom.insertBoundary(fragment, 0); + content(env, morph0, context, "content"); + return fragment; + } + }; +}())); \ No newline at end of file diff --git a/dist/js/bs-badge.min.js b/dist/js/bs-badge.min.js index 1ff34fb..3cb0503 100644 --- a/dist/js/bs-badge.min.js +++ b/dist/js/bs-badge.min.js @@ -1 +1 @@ -!function(){Bootstrap.BsBadgeComponent=Ember.Component.extend(Bootstrap.TypeSupport,{layoutName:"components/bs-badge",tagName:"span",classNames:["badge"],classTypePrefix:"badge"}),Ember.Handlebars.helper("bs-badge",Bootstrap.BsBadgeComponent)}.call(this),this.Ember=this.Ember||{},this.Ember.TEMPLATES=this.Ember.TEMPLATES||{},this.Ember.TEMPLATES["components/bs-badge"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g,h=this.escapeExpression;f={},g={},e.buffer.push(h(c._triageMustache.call(b,"content",{hash:{},contexts:[b],types:["ID"],hashContexts:g,hashTypes:f,data:e})))}); \ No newline at end of file +(function(){Bootstrap.BsBadgeComponent=Ember.Component.extend(Bootstrap.TypeSupport,{layoutName:"components/bs-badge",tagName:"span",classNames:["badge"],classTypePrefix:"badge"}),Ember.Handlebars.helper("bs-badge",Bootstrap.BsBadgeComponent)}).call(this),Ember.TEMPLATES["components/bs-badge"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createComment("");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(g,0,0,c);return d.insertBoundary(g,null),d.insertBoundary(g,0),f(b,h,a,"content"),g}}}()); \ No newline at end of file diff --git a/dist/js/bs-basic.max.js b/dist/js/bs-basic.max.js index 0bd8241..7c01939 100644 --- a/dist/js/bs-basic.max.js +++ b/dist/js/bs-basic.max.js @@ -43,7 +43,7 @@ } }, click: function(event) { - return this.sendAction('clicked'); + return this.sendAction('clicked', event); }, collapsibleBodyId: (function() { return "" + (this.get('elementId')) + "_body"; @@ -57,174 +57,541 @@ }).call(this); -this["Ember"] = this["Ember"] || {}; -this["Ember"]["TEMPLATES"] = this["Ember"]["TEMPLATES"] || {}; - -this["Ember"]["TEMPLATES"]["components/bs-page-header"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) { -this.compilerInfo = [4,'>= 1.0.0']; -helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; - var buffer = '', stack1, hashTypes, hashContexts, escapeExpression=this.escapeExpression, self=this; - -function program1(depth0,data) { - - var buffer = '', hashTypes, hashContexts; - data.buffer.push("\n "); - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "sub", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - data.buffer.push("\n "); - return buffer; - } - - data.buffer.push("

\n "); - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "title", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - data.buffer.push("\n "); - hashTypes = {}; - hashContexts = {}; - stack1 = helpers['if'].call(depth0, "sub", {hash:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); - if(stack1 || stack1 === 0) { data.buffer.push(stack1); } - data.buffer.push("\n

"); - return buffer; - -}); - -this["Ember"]["TEMPLATES"]["components/bs-well"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) { -this.compilerInfo = [4,'>= 1.0.0']; -helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; - var hashTypes, hashContexts, escapeExpression=this.escapeExpression; - - - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "yield", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - -}); - -this["Ember"]["TEMPLATES"]["components/bs-panel"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) { -this.compilerInfo = [4,'>= 1.0.0']; -helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; - var buffer = '', stack1, hashTypes, hashContexts, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, self=this; - -function program1(depth0,data) { - - var buffer = '', stack1, hashTypes, hashContexts; - data.buffer.push("\n
\n "); - hashTypes = {}; - hashContexts = {}; - stack1 = helpers['if'].call(depth0, "collapsible", {hash:{},inverse:self.program(4, program4, data),fn:self.program(2, program2, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); - if(stack1 || stack1 === 0) { data.buffer.push(stack1); } - data.buffer.push("\n "); - hashTypes = {}; - hashContexts = {}; - stack1 = helpers['if'].call(depth0, "dismiss", {hash:{},inverse:self.noop,fn:self.program(6, program6, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); - if(stack1 || stack1 === 0) { data.buffer.push(stack1); } - data.buffer.push("\n
\n"); - return buffer; - } -function program2(depth0,data) { - - var buffer = '', stack1, hashContexts, hashTypes, options; - data.buffer.push("\n \n "); - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "heading", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - data.buffer.push("\n \n "); - return buffer; - } - -function program4(depth0,data) { - - var buffer = '', hashTypes, hashContexts; - data.buffer.push("\n "); - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "heading", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - data.buffer.push("\n "); - return buffer; - } - -function program6(depth0,data) { - - var buffer = '', hashTypes, hashContexts; - data.buffer.push("\n ×\n "); - return buffer; - } - -function program8(depth0,data) { - - var buffer = '', stack1, hashContexts, hashTypes, options; - data.buffer.push("\n
\n
"); - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "yield", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - data.buffer.push("
\n
\n"); - return buffer; - } - -function program10(depth0,data) { - - var buffer = '', hashTypes, hashContexts; - data.buffer.push("\n
"); - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "yield", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - data.buffer.push("
\n"); - return buffer; - } +Ember.TEMPLATES["components/bs-page-header"] = Ember.HTMLBars.template((function() { + var child0 = (function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createElement("small"); + var el2 = dom.createComment(""); + dom.appendChild(el1, el2); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, content = hooks.content; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(dom.childAt(fragment, [1]),0,0); + content(env, morph0, context, "sub"); + return fragment; + } + }; + }()); + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createElement("h1"); + var el2 = dom.createTextNode("\n "); + dom.appendChild(el1, el2); + var el2 = dom.createComment(""); + dom.appendChild(el1, el2); + var el2 = dom.createTextNode("\n"); + dom.appendChild(el1, el2); + var el2 = dom.createComment(""); + dom.appendChild(el1, el2); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, content = hooks.content, get = hooks.get, block = hooks.block; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var element0 = dom.childAt(fragment, [0]); + var morph0 = dom.createMorphAt(element0,1,1); + var morph1 = dom.createMorphAt(element0,3,3); + content(env, morph0, context, "title"); + block(env, morph1, context, "if", [get(env, context, "sub")], {}, child0, null); + return fragment; + } + }; +}())); -function program12(depth0,data) { - - var buffer = '', hashTypes, hashContexts; - data.buffer.push("\n
"); - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "footer", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - data.buffer.push("
\n"); - return buffer; - } +Ember.TEMPLATES["components/bs-well"] = Ember.HTMLBars.template((function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, content = hooks.content; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(fragment,0,0,contextualElement); + dom.insertBoundary(fragment, null); + dom.insertBoundary(fragment, 0); + content(env, morph0, context, "yield"); + return fragment; + } + }; +}())); - hashTypes = {}; - hashContexts = {}; - stack1 = helpers['if'].call(depth0, "heading", {hash:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); - if(stack1 || stack1 === 0) { data.buffer.push(stack1); } - data.buffer.push("\n\n"); - hashTypes = {}; - hashContexts = {}; - stack1 = helpers['if'].call(depth0, "collapsible", {hash:{},inverse:self.program(10, program10, data),fn:self.program(8, program8, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); - if(stack1 || stack1 === 0) { data.buffer.push(stack1); } - data.buffer.push("\n\n"); - hashTypes = {}; - hashContexts = {}; - stack1 = helpers['if'].call(depth0, "footer", {hash:{},inverse:self.noop,fn:self.program(12, program12, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); - if(stack1 || stack1 === 0) { data.buffer.push(stack1); } - data.buffer.push("\n"); - return buffer; - -}); \ No newline at end of file +Ember.TEMPLATES["components/bs-panel"] = Ember.HTMLBars.template((function() { + var child0 = (function() { + var child0 = (function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createElement("a"); + dom.setAttribute(el1,"class","accordion-toggle"); + dom.setAttribute(el1,"data-toggle","collapse"); + dom.setAttribute(el1,"data-parent","#accordion"); + var el2 = dom.createTextNode("\n "); + dom.appendChild(el1, el2); + var el2 = dom.createComment(""); + dom.appendChild(el1, el2); + var el2 = dom.createTextNode("\n "); + dom.appendChild(el1, el2); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, get = hooks.get, element = hooks.element, content = hooks.content; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var element2 = dom.childAt(fragment, [1]); + var morph0 = dom.createMorphAt(element2,1,1); + element(env, element2, context, "bind-attr", [], {"href": get(env, context, "collapsibleBodyLink")}); + content(env, morph0, context, "heading"); + return fragment; + } + }; + }()); + var child1 = (function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, content = hooks.content; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(fragment,1,1,contextualElement); + content(env, morph0, context, "heading"); + return fragment; + } + }; + }()); + var child2 = (function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createElement("a"); + dom.setAttribute(el1,"class","close"); + dom.setAttribute(el1,"data-dismiss","panel"); + var el2 = dom.createTextNode("×"); + dom.appendChild(el1, el2); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, element = hooks.element; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var element1 = dom.childAt(fragment, [1]); + element(env, element1, context, "action", ["close"], {}); + return fragment; + } + }; + }()); + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createElement("div"); + dom.setAttribute(el1,"class","panel-heading"); + var el2 = dom.createTextNode("\n"); + dom.appendChild(el1, el2); + var el2 = dom.createComment(""); + dom.appendChild(el1, el2); + var el2 = dom.createComment(""); + dom.appendChild(el1, el2); + var el2 = dom.createTextNode(" "); + dom.appendChild(el1, el2); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, get = hooks.get, block = hooks.block; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var element3 = dom.childAt(fragment, [1]); + var morph0 = dom.createMorphAt(element3,1,1); + var morph1 = dom.createMorphAt(element3,2,2); + block(env, morph0, context, "if", [get(env, context, "collapsible")], {}, child0, child1); + block(env, morph1, context, "if", [get(env, context, "dismiss")], {}, child2, null); + return fragment; + } + }; + }()); + var child1 = (function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createElement("div"); + var el2 = dom.createTextNode("\n "); + dom.appendChild(el1, el2); + var el2 = dom.createElement("div"); + dom.setAttribute(el2,"class","panel-body"); + var el3 = dom.createComment(""); + dom.appendChild(el2, el3); + dom.appendChild(el1, el2); + var el2 = dom.createTextNode("\n "); + dom.appendChild(el1, el2); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, get = hooks.get, element = hooks.element, content = hooks.content; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var element0 = dom.childAt(fragment, [1]); + var morph0 = dom.createMorphAt(dom.childAt(element0, [1]),0,0); + element(env, element0, context, "bind-attr", [], {"id": get(env, context, "collapsibleBodyId")}); + element(env, element0, context, "bind-attr", [], {"class": ":panel-collapse :collapse open:in"}); + content(env, morph0, context, "yield"); + return fragment; + } + }; + }()); + var child2 = (function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createElement("div"); + dom.setAttribute(el1,"id","collapseOne"); + dom.setAttribute(el1,"class","panel-body"); + var el2 = dom.createComment(""); + dom.appendChild(el1, el2); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, content = hooks.content; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(dom.childAt(fragment, [1]),0,0); + content(env, morph0, context, "yield"); + return fragment; + } + }; + }()); + var child3 = (function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createElement("div"); + dom.setAttribute(el1,"class","panel-footer"); + var el2 = dom.createComment(""); + dom.appendChild(el1, el2); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, content = hooks.content; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(dom.childAt(fragment, [1]),0,0); + content(env, morph0, context, "footer"); + return fragment; + } + }; + }()); + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, get = hooks.get, block = hooks.block; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(fragment,0,0,contextualElement); + var morph1 = dom.createMorphAt(fragment,2,2,contextualElement); + var morph2 = dom.createMorphAt(fragment,4,4,contextualElement); + dom.insertBoundary(fragment, null); + dom.insertBoundary(fragment, 0); + block(env, morph0, context, "if", [get(env, context, "heading")], {}, child0, null); + block(env, morph1, context, "if", [get(env, context, "collapsible")], {}, child1, child2); + block(env, morph2, context, "if", [get(env, context, "footer")], {}, child3, null); + return fragment; + } + }; +}())); \ No newline at end of file diff --git a/dist/js/bs-basic.min.js b/dist/js/bs-basic.min.js index 5e4d6c2..5d4a118 100644 --- a/dist/js/bs-basic.min.js +++ b/dist/js/bs-basic.min.js @@ -1 +1 @@ -!function(){Bootstrap.BsWellComponent=Ember.Component.extend({layoutName:"components/bs-well",classNameBindings:["small:well-sm","large:well-lg"],classNames:["well"],click:function(){return this.sendAction("clicked")}}),Ember.Handlebars.helper("bs-well",Bootstrap.BsWellComponent)}.call(this),function(){Bootstrap.BsPageHeaderComponent=Ember.Component.extend({layoutName:"components/bs-page-header",classNames:["page-header"]}),Ember.Handlebars.helper("bs-page-header",Bootstrap.BsPageHeaderComponent)}.call(this),function(){Bootstrap.BsPanelComponent=Ember.Component.extend(Bootstrap.TypeSupport,{layoutName:"components/bs-panel",classNames:["panel"],classTypePrefix:["panel"],classNameBindings:["fade","fade:in"],clicked:null,onClose:null,fade:!0,collapsible:!1,open:!0,actions:{close:function(){return this.sendAction("onClose"),this.$().removeClass("in"),setTimeout(function(){return this.destroy()}.bind(this),250)}},click:function(){return this.sendAction("clicked")},collapsibleBodyId:function(){return""+this.get("elementId")+"_body"}.property("collapsible"),collapsibleBodyLink:function(){return"#"+this.get("elementId")+"_body"}.property("collapsibleBodyId")}),Ember.Handlebars.helper("bs-panel",Bootstrap.BsPanelComponent)}.call(this),this.Ember=this.Ember||{},this.Ember.TEMPLATES=this.Ember.TEMPLATES||{},this.Ember.TEMPLATES["components/bs-page-header"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f="";return b.buffer.push("\n "),d={},e={},b.buffer.push(k(c._triageMustache.call(a,"sub",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push("\n "),f}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j="",k=this.escapeExpression,l=this;return e.buffer.push("

\n "),h={},i={},e.buffer.push(k(c._triageMustache.call(b,"title",{hash:{},contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e}))),e.buffer.push("\n "),h={},i={},g=c["if"].call(b,"sub",{hash:{},inverse:l.noop,fn:l.program(1,f,e),contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e}),(g||0===g)&&e.buffer.push(g),e.buffer.push("\n

"),j}),this.Ember.TEMPLATES["components/bs-well"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g,h=this.escapeExpression;f={},g={},e.buffer.push(h(c._triageMustache.call(b,"yield",{hash:{},contexts:[b],types:["ID"],hashContexts:g,hashTypes:f,data:e})))}),this.Ember.TEMPLATES["components/bs-panel"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f,j="";return b.buffer.push('\n
\n '),e={},f={},d=c["if"].call(a,"collapsible",{hash:{},inverse:s.program(4,h,b),fn:s.program(2,g,b),contexts:[a],types:["ID"],hashContexts:f,hashTypes:e,data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\n "),e={},f={},d=c["if"].call(a,"dismiss",{hash:{},inverse:s.noop,fn:s.program(6,i,b),contexts:[a],types:["ID"],hashContexts:f,hashTypes:e,data:b}),(d||0===d)&&b.buffer.push(d),b.buffer.push("\n
\n"),j}function g(a,b){var d,e,f,g,h="";return b.buffer.push('\n \n "),f={},e={},b.buffer.push(r(c._triageMustache.call(a,"heading",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:f,data:b}))),b.buffer.push("\n \n "),h}function h(a,b){var d,e,f="";return b.buffer.push("\n "),d={},e={},b.buffer.push(r(c._triageMustache.call(a,"heading",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push("\n "),f}function i(a,b){var d,e,f="";return b.buffer.push('\n ×\n "),f}function j(a,b){var d,e,f,g,h="";return b.buffer.push("\n
\n
'),f={},e={},b.buffer.push(r(c._triageMustache.call(a,"yield",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:f,data:b}))),b.buffer.push("
\n
\n"),h}function k(a,b){var d,e,f="";return b.buffer.push('\n
'),d={},e={},b.buffer.push(r(c._triageMustache.call(a,"yield",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push("
\n"),f}function l(a,b){var d,e,f="";return b.buffer.push('\n \n"),f}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var m,n,o,p="",q=c.helperMissing,r=this.escapeExpression,s=this;return n={},o={},m=c["if"].call(b,"heading",{hash:{},inverse:s.noop,fn:s.program(1,f,e),contexts:[b],types:["ID"],hashContexts:o,hashTypes:n,data:e}),(m||0===m)&&e.buffer.push(m),e.buffer.push("\n\n"),n={},o={},m=c["if"].call(b,"collapsible",{hash:{},inverse:s.program(10,k,e),fn:s.program(8,j,e),contexts:[b],types:["ID"],hashContexts:o,hashTypes:n,data:e}),(m||0===m)&&e.buffer.push(m),e.buffer.push("\n\n"),n={},o={},m=c["if"].call(b,"footer",{hash:{},inverse:s.noop,fn:s.program(12,l,e),contexts:[b],types:["ID"],hashContexts:o,hashTypes:n,data:e}),(m||0===m)&&e.buffer.push(m),e.buffer.push("\n"),p}); \ No newline at end of file +(function(){Bootstrap.BsWellComponent=Ember.Component.extend({layoutName:"components/bs-well",classNameBindings:["small:well-sm","large:well-lg"],classNames:["well"],click:function(){return this.sendAction("clicked")}}),Ember.Handlebars.helper("bs-well",Bootstrap.BsWellComponent)}).call(this),function(){Bootstrap.BsPageHeaderComponent=Ember.Component.extend({layoutName:"components/bs-page-header",classNames:["page-header"]}),Ember.Handlebars.helper("bs-page-header",Bootstrap.BsPageHeaderComponent)}.call(this),function(){Bootstrap.BsPanelComponent=Ember.Component.extend(Bootstrap.TypeSupport,{layoutName:"components/bs-panel",classNames:["panel"],classTypePrefix:["panel"],classNameBindings:["fade","fade:in"],clicked:null,onClose:null,fade:!0,collapsible:!1,open:!0,actions:{close:function(a){return this.sendAction("onClose"),this.$().removeClass("in"),setTimeout(function(){return this.destroy()}.bind(this),250)}},click:function(a){return this.sendAction("clicked",a)},collapsibleBodyId:function(){return""+this.get("elementId")+"_body"}.property("collapsible"),collapsibleBodyLink:function(){return"#"+this.get("elementId")+"_body"}.property("collapsibleBodyId")}),Ember.Handlebars.helper("bs-panel",Bootstrap.BsPanelComponent)}.call(this),Ember.TEMPLATES["components/bs-page-header"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createElement("small"),d=a.createComment("");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(d.childAt(g,[1]),0,0);return f(b,h,a,"sub"),g}}}();return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("h1"),d=a.createTextNode("\n ");a.appendChild(c,d);var d=a.createComment("");a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d);var d=a.createComment("");return a.appendChild(c,d),a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.content,h=f.get,i=f.block;e.detectNamespace(d);var j;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(j=this.build(e),this.hasRendered?this.cachedFragment=j:this.hasRendered=!0),this.cachedFragment&&(j=e.cloneNode(this.cachedFragment,!0))):j=this.build(e);var k=e.childAt(j,[0]),l=e.createMorphAt(k,1,1),m=e.createMorphAt(k,3,3);return g(c,l,b,"title"),i(c,m,b,"if",[h(c,b,"sub")],{},a,null),j}}}()),Ember.TEMPLATES["components/bs-well"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createComment("");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(g,0,0,c);return d.insertBoundary(g,null),d.insertBoundary(g,0),f(b,h,a,"yield"),g}}}()),Ember.TEMPLATES["components/bs-panel"]=Ember.HTMLBars.template(function(){var a=function(){var a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createElement("a");a.setAttribute(c,"class","accordion-toggle"),a.setAttribute(c,"data-toggle","collapse"),a.setAttribute(c,"data-parent","#accordion");var d=a.createTextNode("\n ");a.appendChild(c,d);var d=a.createComment("");a.appendChild(c,d);var d=a.createTextNode("\n ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.element,h=e.content;d.detectNamespace(c);var i;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(i=this.build(d),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=d.cloneNode(this.cachedFragment,!0))):i=this.build(d);var j=d.childAt(i,[1]),k=d.createMorphAt(j,1,1);return g(b,j,a,"bind-attr",[],{href:f(b,a,"collapsibleBodyLink")}),h(b,k,a,"heading"),i}}}(),b=function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createComment("");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(g,1,1,c);return f(b,h,a,"heading"),g}}}(),c=function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createElement("a");a.setAttribute(c,"class","close"),a.setAttribute(c,"data-dismiss","panel");var d=a.createTextNode("×");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.element;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.childAt(g,[1]);return f(b,h,a,"action",["close"],{}),g}}}();return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","panel-heading");var d=a.createTextNode("\n");a.appendChild(c,d);var d=a.createComment("");a.appendChild(c,d);var d=a.createComment("");a.appendChild(c,d);var d=a.createTextNode(" ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(d,e,f){var g=e.dom,h=e.hooks,i=h.get,j=h.block;g.detectNamespace(f);var k;e.useFragmentCache&&g.canClone?(null===this.cachedFragment&&(k=this.build(g),this.hasRendered?this.cachedFragment=k:this.hasRendered=!0),this.cachedFragment&&(k=g.cloneNode(this.cachedFragment,!0))):k=this.build(g);var l=g.childAt(k,[1]),m=g.createMorphAt(l,1,1),n=g.createMorphAt(l,2,2);return j(e,m,d,"if",[i(e,d,"collapsible")],{},a,b),j(e,n,d,"if",[i(e,d,"dismiss")],{},c,null),k}}}(),b=function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createElement("div"),d=a.createTextNode("\n ");a.appendChild(c,d);var d=a.createElement("div");a.setAttribute(d,"class","panel-body");var e=a.createComment("");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n ");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.element,h=e.content;d.detectNamespace(c);var i;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(i=this.build(d),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=d.cloneNode(this.cachedFragment,!0))):i=this.build(d);var j=d.childAt(i,[1]),k=d.createMorphAt(d.childAt(j,[1]),0,0);return g(b,j,a,"bind-attr",[],{id:f(b,a,"collapsibleBodyId")}),g(b,j,a,"bind-attr",[],{"class":":panel-collapse :collapse open:in"}),h(b,k,a,"yield"),i}}}(),c=function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"id","collapseOne"),a.setAttribute(c,"class","panel-body");var d=a.createComment("");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(d.childAt(g,[1]),0,0);return f(b,h,a,"yield"),g}}}(),d=function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createElement("div");a.setAttribute(c,"class","panel-footer");var d=a.createComment("");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(d.childAt(g,[1]),0,0);return f(b,h,a,"footer"),g}}}();return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createComment("");a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createComment("");a.appendChild(b,c);var c=a.createTextNode("\n");a.appendChild(b,c);var c=a.createComment("");return a.appendChild(b,c),b},render:function(e,f,g){var h=f.dom,i=f.hooks,j=i.get,k=i.block;h.detectNamespace(g);var l;f.useFragmentCache&&h.canClone?(null===this.cachedFragment&&(l=this.build(h),this.hasRendered?this.cachedFragment=l:this.hasRendered=!0),this.cachedFragment&&(l=h.cloneNode(this.cachedFragment,!0))):l=this.build(h);var m=h.createMorphAt(l,0,0,g),n=h.createMorphAt(l,2,2,g),o=h.createMorphAt(l,4,4,g);return h.insertBoundary(l,null),h.insertBoundary(l,0),k(f,m,e,"if",[j(f,e,"heading")],{},a,null),k(f,n,e,"if",[j(f,e,"collapsible")],{},b,c),k(f,o,e,"if",[j(f,e,"footer")],{},d,null),l}}}()); \ No newline at end of file diff --git a/dist/js/bs-breadcrumbs.max.js b/dist/js/bs-breadcrumbs.max.js index b028938..169f6a3 100644 --- a/dist/js/bs-breadcrumbs.max.js +++ b/dist/js/bs-breadcrumbs.max.js @@ -1,5 +1,5 @@ /* -Breadcrumbs compponent. +Breadcrumbs component. */ diff --git a/dist/js/bs-breadcrumbs.min.js b/dist/js/bs-breadcrumbs.min.js index c5b5d23..4775de5 100644 --- a/dist/js/bs-breadcrumbs.min.js +++ b/dist/js/bs-breadcrumbs.min.js @@ -1 +1 @@ -!function(){Bootstrap.BsBreadcrumbsItem=Bootstrap.ItemView.extend({tagName:["li"],classNameBindings:["isActive:active"],template:Ember.Handlebars.compile("{{#unless view.isActive}}{{#if view.content.model}}{{#link-to view.content.route model.id}}{{view.content.name}}{{/link-to}}{{else}}{{#link-to view.content.route}}{{view.content.name}}{{/link-to}}{{/if}}{{else}}{{view.content.name}}{{/unless}}"),isActive:function(){return this.get("content.active")}.property("content.active")}),Bootstrap.BsBreadcrumbs=Bootstrap.ItemsView.extend(Bootstrap.WithRouter,{tagName:["ol"],classNames:["breadcrumb"],currentPathObserver:function(){return this.get("router"),this.send("updateCrumbsByRoute")}.observes("router.url").on("init"),content:[],itemViewClass:Bootstrap.BsBreadcrumbsItem,nameDictionary:void 0,dictionaryNamePrefix:"breadcrumbs",actions:{currentPathDidChange:function(){return this.send("updateCrumbsByRoute")},updateCrumbsByRoute:function(){var a,b=this;return this.get("content").clear(),a=this.get("container").lookup("router:main"),a.get("router.currentHandlerInfos").forEach(function(a){var c,d,e,f,g,h,i;return e=a.name,-1!==e.indexOf(".index")||"application"===e||(null!=(g=a.handler.breadcrumbs)?g.hidden:0)?void 0:(f=a.handler.routeName,(null!=(h=a.handler.breadcrumbs)?h.name:void 0)?d=a.handler.breadcrumbs.name:(null!=(i=b.get("nameDictionary"))?i[""+b.dictionaryNamePrefix+"."+f]:void 0)?d=b.get("nameDictionary")[""+b.dictionaryNamePrefix+"."+f]:(d=a.handler.routeName.split(".").pop(),d=d[0].toUpperCase()+d.slice(1).toLowerCase()),c=Ember.Object.create({route:a.handler.routeName,name:d,model:null}),0===b.get("content").length&&c.set("icon","fa fa-home home-icon"),a.isDynamic&&c.setProperties({model:a.handler.context,name:a.handler.context.get("name")}),b.get("content").pushObject(c))}),this.get("content.lastObject").set("active",!0)}}}),Ember.Handlebars.helper("bs-breadcrumbs",Bootstrap.BsBreadcrumbs)}.call(this); \ No newline at end of file +(function(){Bootstrap.BsBreadcrumbsItem=Bootstrap.ItemView.extend({tagName:["li"],classNameBindings:["isActive:active"],template:Ember.Handlebars.compile("{{#unless view.isActive}}{{#if view.content.model}}{{#link-to view.content.route model.id}}{{view.content.name}}{{/link-to}}{{else}}{{#link-to view.content.route}}{{view.content.name}}{{/link-to}}{{/if}}{{else}}{{view.content.name}}{{/unless}}"),isActive:function(){return this.get("content.active")}.property("content.active")}),Bootstrap.BsBreadcrumbs=Bootstrap.ItemsView.extend(Bootstrap.WithRouter,{tagName:["ol"],classNames:["breadcrumb"],currentPathObserver:function(){return this.get("router"),this.send("updateCrumbsByRoute")}.observes("router.url").on("init"),content:[],itemViewClass:Bootstrap.BsBreadcrumbsItem,nameDictionary:void 0,dictionaryNamePrefix:"breadcrumbs",actions:{currentPathDidChange:function(){return this.send("updateCrumbsByRoute")},updateCrumbsByRoute:function(){var a,b=this;return this.get("content").clear(),a=this.get("container").lookup("router:main"),a.get("router.currentHandlerInfos").forEach(function(a,c,d){var e,f,g,h,i,j,k;return g=a.name,-1!==g.indexOf(".index")||"application"===g||(null!=(i=a.handler.breadcrumbs)?i.hidden:0)?void 0:(h=a.handler.routeName,(null!=(j=a.handler.breadcrumbs)?j.name:void 0)?f=a.handler.breadcrumbs.name:(null!=(k=b.get("nameDictionary"))?k[""+b.dictionaryNamePrefix+"."+h]:void 0)?f=b.get("nameDictionary")[""+b.dictionaryNamePrefix+"."+h]:(f=a.handler.routeName.split(".").pop(),f=f[0].toUpperCase()+f.slice(1).toLowerCase()),e=Ember.Object.create({route:a.handler.routeName,name:f,model:null}),0===b.get("content").length&&e.set("icon","fa fa-home home-icon"),a.isDynamic&&e.setProperties({model:a.handler.context,name:a.handler.context.get("name")}),b.get("content").pushObject(e))}),this.get("content.lastObject").set("active",!0)}}}),Ember.Handlebars.helper("bs-breadcrumbs",Bootstrap.BsBreadcrumbs)}).call(this); \ No newline at end of file diff --git a/dist/js/bs-button.max.js b/dist/js/bs-button.max.js index 81e1c37..08f471e 100644 --- a/dist/js/bs-button.max.js +++ b/dist/js/bs-button.max.js @@ -109,7 +109,7 @@ }(window.jQuery); (function() { - Bootstrap.BsButtonComponent = Ember.Component.extend(Bootstrap.TypeSupport, Bootstrap.SizeSupport, { + Bootstrap.BsButtonComponent = Ember.Component.extend(Ember._ProxyMixin, Bootstrap.TypeSupport, Bootstrap.SizeSupport, { layoutName: 'components/bs-button', tagName: 'button', classNames: ['btn'], @@ -117,37 +117,60 @@ classTypePrefix: 'btn', clickedParam: null, block: null, - attributeBindings: ['disabled', 'dismiss:data-dismiss', '_type:type', 'style'], + attributeBindings: ['disabled', 'dismiss:data-dismiss', 'contentDismiss:data-dismiss', '_type:type', 'style'], _type: 'button', bubbles: true, allowedProperties: ['title', 'type', 'size', 'block', 'disabled', 'clicked', 'dismiss', 'class'], icon_active: void 0, - icon_inactive: void 0 - }, { + icon_inactive: void 0, + getPojoProperties: function(pojo) { + if (Ember.isEmpty(pojo)) { + return []; + } + return Object.keys(pojo); + }, + getProxiedProperties: function(proxyObject) { + var contentProperties, objectProperties, prototypeProperties; + contentProperties = this.getObjectProperties(proxyObject.get('content')); + prototypeProperties = Object.keys(proxyObject.constructor.prototype); + objectProperties = this.getPojoProperties(proxyObject); + return contentProperties.concat(prototypeProperties).concat(objectProperties).uniq(); + }, + getEmberObjectProperties: function(emberObject) { + var objectProperties, prototypeProperties; + prototypeProperties = Object.keys(emberObject.constructor.prototype); + objectProperties = this.getPojoProperties(emberObject); + return prototypeProperties.concat(objectProperties).uniq(); + }, + getEmberDataProperties: function(emberDataObject) { + var attributes, keys; + attributes = Ember.get(emberDataObject.constructor, 'attributes'); + keys = Ember.get(attributes, 'keys.list'); + return Ember.getProperties(emberDataObject, keys); + }, + getObjectProperties: function(object) { + if (object instanceof DS.Model) { + return this.getEmberDataProperties(object); + } else if (object instanceof Ember.ObjectProxy || Ember._ProxyMixin.detect(object)) { + return this.getProxiedProperties(object); + } else if (object instanceof Ember.Object) { + return this.getEmberObjectProperties(object); + } else { + return this.getPojoProperties(object); + } + }, init: function() { - var attr, c, key, _i, _len, _ref, _results; + var me, properties; this._super(); + me = this; if ((this.get('content') != null) && Ember.typeOf(this.get('content')) === 'instance') { - c = this.get('content'); - _ref = this.get('allowedProperties'); - for (_i = 0, _len = _ref.length; _i < _len; _i++) { - key = _ref[_i]; - if (c[key] != null) { - this.set(key, c[key]); - } - } + properties = this.getObjectProperties(this.get('content')); + return this.getProperties(properties); } else { if (this.get('title') == null) { - this.set('title', this.get('content')); - } - } - _results = []; - for (attr in this) { - if (attr.match(/^data-[\w-]*$/) != null) { - _results.push(this.attributeBindings.pushObject(attr)); + return this.set('title', this.get('content')); } } - return _results; }, blockClass: (function() { if (this.block) { @@ -155,7 +178,10 @@ } else { return null; } - }).property('block').cacheable(), + }).property('block'), + contentDismiss: (function() { + return this.get('content.dismiss'); + }).property('content.dismiss'), click: function(evt) { if (!this.get('bubbles')) { evt.stopPropagation(); @@ -165,7 +191,15 @@ loadingChanged: (function() { var loading; loading = this.get('loading') !== null ? this.get('loading') : "reset"; - return Ember.$("#" + this.elementId).button(loading); + if (loading !== 'reset' && Ember.isEmpty(this.get('reset'))) { + this.set('reset', this.$().html()); + } + this.set('disabled', true); + this.$().html(this.get(loading)); + if (loading === 'reset') { + this.set('disabled', false); + return this.set('reset', null); + } }).observes('loading'), icon: (function() { if (this.get('isActive')) { @@ -223,53 +257,136 @@ A collection of button groups }).call(this); -this["Ember"] = this["Ember"] || {}; -this["Ember"]["TEMPLATES"] = this["Ember"]["TEMPLATES"] || {}; - -this["Ember"]["TEMPLATES"]["components/bs-button"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) { -this.compilerInfo = [4,'>= 1.0.0']; -helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; - var buffer = '', stack1, hashTypes, hashContexts, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, self=this; - -function program1(depth0,data) { - - var buffer = '', stack1, hashContexts, hashTypes, options; - data.buffer.push("\n \n"); - return buffer; - } - - hashTypes = {}; - hashContexts = {}; - stack1 = helpers['if'].call(depth0, "icon", {hash:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); - if(stack1 || stack1 === 0) { data.buffer.push(stack1); } - data.buffer.push("\n"); - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "title", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "yield", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - return buffer; - -}); -this["Ember"] = this["Ember"] || {}; -this["Ember"]["TEMPLATES"] = this["Ember"]["TEMPLATES"] || {}; - -this["Ember"]["TEMPLATES"]["components/bs-btn-toolbar"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) { -this.compilerInfo = [4,'>= 1.0.0']; -helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; - var hashTypes, hashContexts, escapeExpression=this.escapeExpression; - - - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "yield", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - -}); \ No newline at end of file +Ember.TEMPLATES["components/bs-button"] = Ember.HTMLBars.template((function() { + var child0 = (function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createElement("i"); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, element = hooks.element; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var element0 = dom.childAt(fragment, [1]); + element(env, element0, context, "bind-attr", [], {"class": "icon"}); + return fragment; + } + }; + }()); + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, get = hooks.get, block = hooks.block, content = hooks.content; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(fragment,0,0,contextualElement); + var morph1 = dom.createMorphAt(fragment,1,1,contextualElement); + var morph2 = dom.createMorphAt(fragment,2,2,contextualElement); + dom.insertBoundary(fragment, null); + dom.insertBoundary(fragment, 0); + block(env, morph0, context, "if", [get(env, context, "icon")], {}, child0, null); + content(env, morph1, context, "title"); + content(env, morph2, context, "yield"); + return fragment; + } + }; +}())); +Ember.TEMPLATES["components/bs-btn-toolbar"] = Ember.HTMLBars.template((function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, content = hooks.content; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(fragment,0,0,contextualElement); + dom.insertBoundary(fragment, null); + dom.insertBoundary(fragment, 0); + content(env, morph0, context, "yield"); + return fragment; + } + }; +}())); \ No newline at end of file diff --git a/dist/js/bs-button.min.js b/dist/js/bs-button.min.js index 795af74..674c6d8 100644 --- a/dist/js/bs-button.min.js +++ b/dist/js/bs-button.min.js @@ -1 +1 @@ -+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d)};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(a){var b="disabled",c=this.$element,d=c.is("input")?"val":"html",e=c.data();a+="Text",e.resetText||c.data("resetText",c[d]()),c[d](e[a]||this.options[a]),setTimeout(function(){"loadingText"==a?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.closest('[data-toggle="buttons"]');if(a.length){var b=this.$element.find("input").prop("checked",!this.$element.hasClass("active")).trigger("change");"radio"===b.prop("type")&&a.find(".active").removeClass("active")}this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof c&&c;e||d.data("bs.button",e=new b(this,f)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(window.jQuery),function(){Bootstrap.BsButtonComponent=Ember.Component.extend(Bootstrap.TypeSupport,Bootstrap.SizeSupport,{layoutName:"components/bs-button",tagName:"button",classNames:["btn"],classNameBindings:["blockClass"],classTypePrefix:"btn",clickedParam:null,block:null,attributeBindings:["disabled","dismiss:data-dismiss","_type:type","style"],_type:"button",bubbles:!0,allowedProperties:["title","type","size","block","disabled","clicked","dismiss","class"],icon_active:void 0,icon_inactive:void 0},{init:function(){var a,b,c,d,e,f,g;if(this._super(),null!=this.get("content")&&"instance"===Ember.typeOf(this.get("content")))for(b=this.get("content"),f=this.get("allowedProperties"),d=0,e=f.length;e>d;d++)c=f[d],null!=b[c]&&this.set(c,b[c]);else null==this.get("title")&&this.set("title",this.get("content"));g=[];for(a in this)null!=a.match(/^data-[\w-]*$/)&&g.push(this.attributeBindings.pushObject(a));return g},blockClass:function(){return this.block?""+this.classTypePrefix+"-block":null}.property("block").cacheable(),click:function(a){return this.get("bubbles")||a.stopPropagation(),this.sendAction("clicked",this.get("clickedParam"))},loadingChanged:function(){var a;return a=null!==this.get("loading")?this.get("loading"):"reset",Ember.$("#"+this.elementId).button(a)}.observes("loading"),icon:function(){return this.get("isActive")?this.get("icon_active"):this.get("icon_inactive")}.property("isActive")}),Ember.Handlebars.helper("bs-button",Bootstrap.BsButtonComponent)}.call(this),function(){Bootstrap.BsBtnGroup=Bootstrap.ItemsView.extend(Bootstrap.SizeSupport,Bootstrap.ItemsSelection,{classTypePrefix:["btn-group"],classNames:["btn-group"],classNameBindings:["vertical:btn-group-vertical"],itemViewClass:Bootstrap.BsButtonComponent.extend(Bootstrap.ItemValue,Bootstrap.ItemSelection,{init:function(){return this._super(),this.set("icon_active",this.get("parentView.icon_active")),this.set("icon_inactive",this.get("parentView.icon_inactive"))}})}),Ember.Handlebars.helper("bs-btn-group",Bootstrap.BsBtnGroup)}.call(this),function(){Bootstrap.BsBtnToolbarComponent=Ember.Component.extend({layoutName:"components/bs-btn-toolbar",classNames:["btn-toolbar"]}),Ember.Handlebars.helper("bs-btn-toolbar",Bootstrap.BsBtnToolbarComponent)}.call(this),this.Ember=this.Ember||{},this.Ember.TEMPLATES=this.Ember.TEMPLATES||{},this.Ember.TEMPLATES["components/bs-button"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f,g,h="";return b.buffer.push("\n \n"),h}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var g,h,i,j="",k=c.helperMissing,l=this.escapeExpression,m=this;return h={},i={},g=c["if"].call(b,"icon",{hash:{},inverse:m.noop,fn:m.program(1,f,e),contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e}),(g||0===g)&&e.buffer.push(g),e.buffer.push("\n"),h={},i={},e.buffer.push(l(c._triageMustache.call(b,"title",{hash:{},contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e}))),h={},i={},e.buffer.push(l(c._triageMustache.call(b,"yield",{hash:{},contexts:[b],types:["ID"],hashContexts:i,hashTypes:h,data:e}))),j}),this.Ember=this.Ember||{},this.Ember.TEMPLATES=this.Ember.TEMPLATES||{},this.Ember.TEMPLATES["components/bs-btn-toolbar"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g,h=this.escapeExpression;f={},g={},e.buffer.push(h(c._triageMustache.call(b,"yield",{hash:{},contexts:[b],types:["ID"],hashContexts:g,hashTypes:f,data:e})))}); \ No newline at end of file ++function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d)};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(a){var b="disabled",c=this.$element,d=c.is("input")?"val":"html",e=c.data();a+="Text",e.resetText||c.data("resetText",c[d]()),c[d](e[a]||this.options[a]),setTimeout(function(){"loadingText"==a?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.closest('[data-toggle="buttons"]');if(a.length){var b=this.$element.find("input").prop("checked",!this.$element.hasClass("active")).trigger("change");"radio"===b.prop("type")&&a.find(".active").removeClass("active")}this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof c&&c;e||d.data("bs.button",e=new b(this,f)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(window.jQuery),function(){Bootstrap.BsButtonComponent=Ember.Component.extend(Ember._ProxyMixin,Bootstrap.TypeSupport,Bootstrap.SizeSupport,{layoutName:"components/bs-button",tagName:"button",classNames:["btn"],classNameBindings:["blockClass"],classTypePrefix:"btn",clickedParam:null,block:null,attributeBindings:["disabled","dismiss:data-dismiss","contentDismiss:data-dismiss","_type:type","style"],_type:"button",bubbles:!0,allowedProperties:["title","type","size","block","disabled","clicked","dismiss","class"],icon_active:void 0,icon_inactive:void 0,getPojoProperties:function(a){return Ember.isEmpty(a)?[]:Object.keys(a)},getProxiedProperties:function(a){var b,c,d;return b=this.getObjectProperties(a.get("content")),d=Object.keys(a.constructor.prototype),c=this.getPojoProperties(a),b.concat(d).concat(c).uniq()},getEmberObjectProperties:function(a){var b,c;return c=Object.keys(a.constructor.prototype),b=this.getPojoProperties(a),c.concat(b).uniq()},getEmberDataProperties:function(a){var b,c;return b=Ember.get(a.constructor,"attributes"),c=Ember.get(b,"keys.list"),Ember.getProperties(a,c)},getObjectProperties:function(a){return a instanceof DS.Model?this.getEmberDataProperties(a):a instanceof Ember.ObjectProxy||Ember._ProxyMixin.detect(a)?this.getProxiedProperties(a):a instanceof Ember.Object?this.getEmberObjectProperties(a):this.getPojoProperties(a)},init:function(){var a,b;return this._super(),a=this,null!=this.get("content")&&"instance"===Ember.typeOf(this.get("content"))?(b=this.getObjectProperties(this.get("content")),this.getProperties(b)):null==this.get("title")?this.set("title",this.get("content")):void 0},blockClass:function(){return this.block?""+this.classTypePrefix+"-block":null}.property("block"),contentDismiss:function(){return this.get("content.dismiss")}.property("content.dismiss"),click:function(a){return this.get("bubbles")||a.stopPropagation(),this.sendAction("clicked",this.get("clickedParam"))},loadingChanged:function(){var a;return a=null!==this.get("loading")?this.get("loading"):"reset","reset"!==a&&Ember.isEmpty(this.get("reset"))&&this.set("reset",this.$().html()),this.set("disabled",!0),this.$().html(this.get(a)),"reset"===a?(this.set("disabled",!1),this.set("reset",null)):void 0}.observes("loading"),icon:function(){return this.get(this.get("isActive")?"icon_active":"icon_inactive")}.property("isActive")}),Ember.Handlebars.helper("bs-button",Bootstrap.BsButtonComponent)}.call(this),function(){Bootstrap.BsBtnGroup=Bootstrap.ItemsView.extend(Bootstrap.SizeSupport,Bootstrap.ItemsSelection,{classTypePrefix:["btn-group"],classNames:["btn-group"],classNameBindings:["vertical:btn-group-vertical"],itemViewClass:Bootstrap.BsButtonComponent.extend(Bootstrap.ItemValue,Bootstrap.ItemSelection,{init:function(){return this._super(),this.set("icon_active",this.get("parentView.icon_active")),this.set("icon_inactive",this.get("parentView.icon_inactive"))}})}),Ember.Handlebars.helper("bs-btn-group",Bootstrap.BsBtnGroup)}.call(this),function(){Bootstrap.BsBtnToolbarComponent=Ember.Component.extend({layoutName:"components/bs-btn-toolbar",classNames:["btn-toolbar"]}),Ember.Handlebars.helper("bs-btn-toolbar",Bootstrap.BsBtnToolbarComponent)}.call(this),Ember.TEMPLATES["components/bs-button"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createElement("i");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.element;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.childAt(g,[1]);return f(b,h,a,"bind-attr",[],{"class":"icon"}),g}}}();return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createComment("");a.appendChild(b,c);var c=a.createComment("");a.appendChild(b,c);var c=a.createComment("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block,i=f.content;e.detectNamespace(d);var j;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(j=this.build(e),this.hasRendered?this.cachedFragment=j:this.hasRendered=!0),this.cachedFragment&&(j=e.cloneNode(this.cachedFragment,!0))):j=this.build(e);var k=e.createMorphAt(j,0,0,d),l=e.createMorphAt(j,1,1,d),m=e.createMorphAt(j,2,2,d);return e.insertBoundary(j,null),e.insertBoundary(j,0),h(c,k,b,"if",[g(c,b,"icon")],{},a,null),i(c,l,b,"title"),i(c,m,b,"yield"),j}}}()),Ember.TEMPLATES["components/bs-btn-toolbar"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createComment("");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(g,0,0,c);return d.insertBoundary(g,null),d.insertBoundary(g,0),f(b,h,a,"yield"),g}}}()); \ No newline at end of file diff --git a/dist/js/bs-core.max.js b/dist/js/bs-core.max.js index 6dbb9fe..54e3dc1 100644 --- a/dist/js/bs-core.max.js +++ b/dist/js/bs-core.max.js @@ -92,13 +92,16 @@ type: 'default', typeClass: (function() { var pref, type; - type = this.get('type'); + type = this.get('content.type'); + if ((type == null) || typeof type === 'undefined') { + type = this.get('type'); + } if (type == null) { type = 'default'; } pref = this.get('classTypePrefix'); return "" + pref + "-" + type; - }).property('type').cacheable() + }).property('type', 'content.type').cacheable() }); }).call(this); @@ -417,7 +420,7 @@ Views that inherits from this view can be enhanced with: (function() { Bootstrap.ItemPaneView = Ember.View.extend({ - template: Ember.Handlebars.compile(['{{#if view.content.template}}', '{{bsItemPanePartial view.content.template}}', '{{/if}}'].join("\n")), + templateName: 'views/item-pane', corrItem: (function() { var view, _i, _len, _ref; if (this.get('parentView').get('corrItemsView') != null) { @@ -474,3 +477,88 @@ Views that inherits from this view can be enhanced with: }); }).call(this); + +Ember.TEMPLATES["app/templates/views/item-pane"] = Ember.HTMLBars.template((function() { + var child0 = (function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, get = hooks.get, inline = hooks.inline; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(fragment,1,1,contextualElement); + inline(env, morph0, context, "bsItemPanePartial", [get(env, context, "view.content.template")], {}); + return fragment; + } + }; + }()); + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, get = hooks.get, block = hooks.block; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(fragment,0,0,contextualElement); + dom.insertBoundary(fragment, null); + dom.insertBoundary(fragment, 0); + block(env, morph0, context, "if", [get(env, context, "view.content.template")], {}, child0, null); + return fragment; + } + }; +}())); \ No newline at end of file diff --git a/dist/js/bs-core.min.js b/dist/js/bs-core.min.js index 37d145d..be7971b 100644 --- a/dist/js/bs-core.min.js +++ b/dist/js/bs-core.min.js @@ -1 +1 @@ -+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]}}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(window.jQuery),function(){var a;a=window.Bootstrap=Ember.Namespace.create()}.call(this),function(){var a,b;a=window.Bootstrap,b=Ember.get,a.WithRouter=Ember.Mixin.create({router:Ember.computed(function(){return b(this,"controller").container.lookup("router:main")})})}.call(this),function(){var a,b,c;a=window.Bootstrap,b=Ember.get,c=Ember.set,a.TypeSupport=Ember.Mixin.create({classTypePrefix:Ember.required(String),classNameBindings:["typeClass"],type:"default",typeClass:function(){var a,b;return b=this.get("type"),null==b&&(b="default"),a=this.get("classTypePrefix"),""+a+"-"+b}.property("type").cacheable()})}.call(this),function(){var a,b,c;a=window.Bootstrap,b=Ember.get,c=Ember.set,a.SizeSupport=Ember.Mixin.create({classTypePrefix:Ember.required(String),classNameBindings:["sizeClass","largeSizeClass","smallSizeClass","extraSmallSizeClass"],size:null,xs:null,small:null,large:null,extraSmallSizeClass:function(){var a;return a=this.get("classTypePrefix"),this.xs?""+a+"-xs":null}.property("xs").cacheable(),smallSizeClass:function(){var a;return a=this.get("classTypePrefix"),this.small?""+a+"-sm":null}.property("small").cacheable(),largeSizeClass:function(){var a;return a=this.get("classTypePrefix"),this.large?""+a+"-lg":null}.property("large").cacheable(),sizeClass:function(){var a,b;return b=this.get("size"),a=this.get("classTypePrefix"),b?""+a+"-"+b:null}.property("size").cacheable()})}.call(this),function(){Bootstrap.ItemValue=Ember.Mixin.create({value:function(){var a,b;return a=this.get("parentView"),null!=a?b=this.get("content"):void 0}.property("content").cacheable()})}.call(this),function(){Bootstrap.ItemSelection=Ember.Mixin.create(Bootstrap.ItemValue,Bootstrap.WithRouter,{classNameBindings:["isActive:active"],init:function(){return this._super(),this.didRouteChange()},didRouteChange:function(){var a,b,c;return b=this.get("content.linkTo"),null!=b&&(a=this.get("parentView"),null!=a)?(null!=(c=this.get("router"))?c.isActive(b):void 0)?a.set("selected",this.get("value")):void 0:void 0}.observes("router.url"),isActive:function(){var a,b,c;return a=this.get("parentView"),null==a?!1:(b=a.get("selected"),c=this.get("value"),null==c?!1:b===c)}.property("value","parentView.selected","content.linkTo").cacheable(),click:function(a){var b,c;return a.preventDefault(),c=this.get("parentView"),null==c||(b=this.get("content"),"object"==typeof b&&b.get("disabled")||null!=this.get("content.linkTo"))?void 0:c.set("selected",this.get("value"))}})}.call(this),function(){Bootstrap.ItemsSelection=Ember.Mixin.create({multiSelection:!1,selected:[]})}.call(this),function(){Bootstrap.Nav=Ember.Mixin.create({classNames:["nav"],classNameBindings:["navTypeClass"],tagName:"ul",navType:null,navTypeClass:function(){return null!=this.navType?"nav-"+this.navType:null}.property("navType").cacheable()})}.call(this),function(){Bootstrap.NavItem=Ember.Mixin.create(Bootstrap.SelectableView)}.call(this),function(){var a,b;a=function(a){var b,c;if(a&&(c=a.get("parentView")))return b=c instanceof Bootstrap.ItemsView,Ember.assert("The parent view must be an instance of Bootstrap.ItemsView or any inherited class",b),b?c:void 0},b=function(a,b,c){return"instance"===Ember.typeOf(a)||Ember.canInvoke(a,"get")?a.get(b):c},Bootstrap.ItemView=Ember.View.extend({isItem:!0,classNameBindings:["disabled"],title:function(){var c,d,e;if(e=a(this))return d=e.get("itemTitleKey")||"title",c=this.get("content"),b(c,d,c)}.property("content").cacheable(),disabled:function(){var c,d,e;if(e=a(this))return c=this.get("content"),d=!!b(c,"disabled",!1),d&&this.get("isActive")&&e.set("selected",null),d}.property("content","content.disabled").cacheable()})}.call(this),function(){Bootstrap.ItemsView=Ember.CollectionView.extend({didInsertElement:function(){var a,b,c,d,e,f;if(this.get("default")){for(a=this.get("default"),e=this._childViews,c=0,d=e.length;d>c;c++)b=e[c],(null!=(f=b.get("content"))?f.get("title"):void 0)===a&&this.set("selected",b.get("content"));return Ember.assert("Could not activate default tab "+a+" as it doesnt exist",a)}}})}.call(this),function(){Bootstrap.ItemPaneView=Ember.View.extend({template:Ember.Handlebars.compile(["{{#if view.content.template}}","{{bsItemPanePartial view.content.template}}","{{/if}}"].join("\n")),corrItem:function(){var a,b,c,d;if(null!=this.get("parentView").get("corrItemsView"))for(d=this.get("parentView").get("corrItemsView")._childViews,b=0,c=d.length;c>b;b++)if(a=d[b],a.content===this.get("content"))return a}.property("parentView.corrItemsView"),isVisible:function(){var a;return null!=(a=this.get("corrItem"))?a.get("isActive"):void 0}.property("corrItem.isActive"),controller:function(){var a,b;return a=this.get("parentView.controller"),this.get("content.controller")&&(b=this.get("container").lookup("controller:"+this.get("content.controller")),b&&(a=b)),a}.property("content")}),Ember.Handlebars.helper("bsItemPanePartial",function(a,b){var c,d;return d=b.data.view,c=d.templateForName(a),Ember.assert("Unable to find template with name '"+a+"'",c),c(this,{data:b.data})})}.call(this),function(){Bootstrap.ItemsPanesView=Ember.CollectionView.extend({viewsInserted:!1,corrItemsView:function(){var a;return a=Ember.View.views[this.get("items-id")]}.property("viewsInserted"),didInsertElement:function(){return this._super(),this.set("viewsInserted",!0)}})}.call(this); \ No newline at end of file ++function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]}}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(window.jQuery),function(){var a;a=window.Bootstrap=Ember.Namespace.create()}.call(this),function(){var a,b;a=window.Bootstrap,b=Ember.get,a.WithRouter=Ember.Mixin.create({router:Ember.computed(function(){return b(this,"controller").container.lookup("router:main")})})}.call(this),function(){var a,b,c;a=window.Bootstrap,b=Ember.get,c=Ember.set,a.TypeSupport=Ember.Mixin.create({classTypePrefix:Ember.required(String),classNameBindings:["typeClass"],type:"default",typeClass:function(){var a,b;return b=this.get("content.type"),(null==b||"undefined"==typeof b)&&(b=this.get("type")),null==b&&(b="default"),a=this.get("classTypePrefix"),""+a+"-"+b}.property("type","content.type").cacheable()})}.call(this),function(){var a,b,c;a=window.Bootstrap,b=Ember.get,c=Ember.set,a.SizeSupport=Ember.Mixin.create({classTypePrefix:Ember.required(String),classNameBindings:["sizeClass","largeSizeClass","smallSizeClass","extraSmallSizeClass"],size:null,xs:null,small:null,large:null,extraSmallSizeClass:function(){var a;return a=this.get("classTypePrefix"),this.xs?""+a+"-xs":null}.property("xs").cacheable(),smallSizeClass:function(){var a;return a=this.get("classTypePrefix"),this.small?""+a+"-sm":null}.property("small").cacheable(),largeSizeClass:function(){var a;return a=this.get("classTypePrefix"),this.large?""+a+"-lg":null}.property("large").cacheable(),sizeClass:function(){var a,b;return b=this.get("size"),a=this.get("classTypePrefix"),b?""+a+"-"+b:null}.property("size").cacheable()})}.call(this),function(){Bootstrap.ItemValue=Ember.Mixin.create({value:function(){var a,b;return a=this.get("parentView"),null!=a?b=this.get("content"):void 0}.property("content").cacheable()})}.call(this),function(){Bootstrap.ItemSelection=Ember.Mixin.create(Bootstrap.ItemValue,Bootstrap.WithRouter,{classNameBindings:["isActive:active"],init:function(){return this._super(),this.didRouteChange()},didRouteChange:function(){var a,b,c;return b=this.get("content.linkTo"),null!=b&&(a=this.get("parentView"),null!=a)&&(null!=(c=this.get("router"))?c.isActive(b):void 0)?a.set("selected",this.get("value")):void 0}.observes("router.url"),isActive:function(){var a,b,c;return a=this.get("parentView"),null==a?!1:(b=a.get("selected"),c=this.get("value"),null==c?!1:b===c)}.property("value","parentView.selected","content.linkTo").cacheable(),click:function(a){var b,c;return a.preventDefault(),c=this.get("parentView"),null==c||(b=this.get("content"),"object"==typeof b&&b.get("disabled")||null!=this.get("content.linkTo"))?void 0:c.set("selected",this.get("value"))}})}.call(this),function(){Bootstrap.ItemsSelection=Ember.Mixin.create({multiSelection:!1,selected:[]})}.call(this),function(){Bootstrap.Nav=Ember.Mixin.create({classNames:["nav"],classNameBindings:["navTypeClass"],tagName:"ul",navType:null,navTypeClass:function(){return null!=this.navType?"nav-"+this.navType:null}.property("navType").cacheable()})}.call(this),function(){Bootstrap.NavItem=Ember.Mixin.create(Bootstrap.SelectableView)}.call(this),function(){var a,b;a=function(a){var b,c;if(a&&(c=a.get("parentView")))return b=c instanceof Bootstrap.ItemsView,Ember.assert("The parent view must be an instance of Bootstrap.ItemsView or any inherited class",b),b?c:void 0},b=function(a,b,c){return"instance"===Ember.typeOf(a)||Ember.canInvoke(a,"get")?a.get(b):c},Bootstrap.ItemView=Ember.View.extend({isItem:!0,classNameBindings:["disabled"],title:function(){var c,d,e;if(e=a(this))return d=e.get("itemTitleKey")||"title",c=this.get("content"),b(c,d,c)}.property("content").cacheable(),disabled:function(){var c,d,e;if(e=a(this))return c=this.get("content"),d=!!b(c,"disabled",!1),d&&this.get("isActive")&&e.set("selected",null),d}.property("content","content.disabled").cacheable()})}.call(this),function(){Bootstrap.ItemsView=Ember.CollectionView.extend({didInsertElement:function(){var a,b,c,d,e,f;if(this.get("default")){for(a=this.get("default"),e=this._childViews,c=0,d=e.length;d>c;c++)b=e[c],(null!=(f=b.get("content"))?f.get("title"):void 0)===a&&this.set("selected",b.get("content"));return Ember.assert("Could not activate default tab "+a+" as it doesnt exist",a)}}})}.call(this),function(){Bootstrap.ItemPaneView=Ember.View.extend({templateName:"views/item-pane",corrItem:function(){var a,b,c,d;if(null!=this.get("parentView").get("corrItemsView"))for(d=this.get("parentView").get("corrItemsView")._childViews,b=0,c=d.length;c>b;b++)if(a=d[b],a.content===this.get("content"))return a}.property("parentView.corrItemsView"),isVisible:function(){var a;return null!=(a=this.get("corrItem"))?a.get("isActive"):void 0}.property("corrItem.isActive"),controller:function(){var a,b;return a=this.get("parentView.controller"),this.get("content.controller")&&(b=this.get("container").lookup("controller:"+this.get("content.controller")),b&&(a=b)),a}.property("content")}),Ember.Handlebars.helper("bsItemPanePartial",function(a,b){var c,d;return d=b.data.view,c=d.templateForName(a),Ember.assert("Unable to find template with name '"+a+"'",c),c(this,{data:b.data})})}.call(this),function(){Bootstrap.ItemsPanesView=Ember.CollectionView.extend({viewsInserted:!1,corrItemsView:function(){var a;return a=Ember.View.views[this.get("items-id")]}.property("viewsInserted"),didInsertElement:function(){return this._super(),this.set("viewsInserted",!0)}})}.call(this),Ember.TEMPLATES["app/templates/views/item-pane"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createComment("");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.inline;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.createMorphAt(h,1,1,c);return g(b,i,a,"bsItemPanePartial",[f(b,a,"view.content.template")],{}),h}}}();return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createComment("");return a.appendChild(b,c),b},render:function(b,c,d){var e=c.dom,f=c.hooks,g=f.get,h=f.block;e.detectNamespace(d);var i;c.useFragmentCache&&e.canClone?(null===this.cachedFragment&&(i=this.build(e),this.hasRendered?this.cachedFragment=i:this.hasRendered=!0),this.cachedFragment&&(i=e.cloneNode(this.cachedFragment,!0))):i=this.build(e);var j=e.createMorphAt(i,0,0,d);return e.insertBoundary(i,null),e.insertBoundary(i,0),h(c,j,b,"if",[g(c,b,"view.content.template")],{},a,null),i}}}()); \ No newline at end of file diff --git a/dist/js/bs-growl-notifications.min.js b/dist/js/bs-growl-notifications.min.js index 0ba20d8..0d82ff3 100644 --- a/dist/js/bs-growl-notifications.min.js +++ b/dist/js/bs-growl-notifications.min.js @@ -1 +1 @@ -!function(){Bootstrap.GrowlNotifications=Ember.CollectionView.extend({classNames:["growl-notifications"],contentBinding:"Bootstrap.GNM.notifications",attributeBindings:["style"],showTime:1e4,itemViewClass:Ember.View.extend({classNames:["growl-notification"],template:Ember.Handlebars.compile('\n\n \n\n\n {{view.content.title}}\n\n

\n {{view.content.sub}}\n

'),classNameBindings:[":growl-notification","content.closed","isOpaque"],attributeBindings:["style"],timeoutId:null,isOpaque:!1,init:function(){var a,b=this;return this._super(),a=function(){return b.notifyPropertyChange("style")},this.set("_recomputeStyle",a),$(window).bind("resize",a)},didInsertElement:function(){var a=this;return this.set("timeoutId",setTimeout(function(){return a.send("close")},this.get("parentView.showTime"))),Ember.run.later(this,function(){return this.set("isOpaque",!0)},1)},willDestroyElement:function(){return $(window).unbind("resize",this.get("_recomputeStyle"))},style:function(){var a,b,c,d,e,f,g,h,i,j;return c=this.get("parentView.content").rejectProperty("closed",!0),b=c.indexOf(this.get("content")),j=$(window).height(),g=80,h=320,i=Math.floor(j/g),a=Math.floor(b/i),e=b%i,-1===b?"":(f=e*g,d=a*h,"top: "+f+"px; right: "+d+"px;")}.property("parentView.content.@each.closed"),iconType:function(){var a,b;return b=this.get("content.type"),a={info:"fa-bullhorn",success:"fa-check",warning:"fa-exclamation",danger:"fa-times"},a[b]||""}.property("content.type"),actions:{close:function(){var a=this;return this.set("isOpaque",!1),setTimeout(function(){return a.get("parentView.content").removeObject(a.get("content")),clearTimeout(a.get("timeoutId"))},300)}}})}),Ember.Handlebars.helper("bs-growl-notifications",Bootstrap.GrowlNotifications),Bootstrap.GNM=Bootstrap.GrowlNotificationManager=Ember.Object.create({notifications:Ember.A(),push:function(a,b,c){var d;return c=null!=c?c:c="info",d=Bootstrap.Notification.create({title:a,sub:b,type:c,closed:!1}),this.get("notifications").pushObject(d)}}),Bootstrap.GrowlNotification=Ember.Object.extend()}.call(this); \ No newline at end of file +(function(){Bootstrap.GrowlNotifications=Ember.CollectionView.extend({classNames:["growl-notifications"],contentBinding:"Bootstrap.GNM.notifications",attributeBindings:["style"],showTime:1e4,itemViewClass:Ember.View.extend({classNames:["growl-notification"],template:Ember.Handlebars.compile('\n\n \n\n\n {{view.content.title}}\n\n

\n {{view.content.sub}}\n

'),classNameBindings:[":growl-notification","content.closed","isOpaque"],attributeBindings:["style"],timeoutId:null,isOpaque:!1,init:function(){var a,b=this;return this._super(),a=function(){return b.notifyPropertyChange("style")},this.set("_recomputeStyle",a),$(window).bind("resize",a)},didInsertElement:function(){var a=this;return this.set("timeoutId",setTimeout(function(){return a.send("close")},this.get("parentView.showTime"))),Ember.run.later(this,function(){return this.set("isOpaque",!0)},1)},willDestroyElement:function(){return $(window).unbind("resize",this.get("_recomputeStyle"))},style:function(){var a,b,c,d,e,f,g,h,i,j;return c=this.get("parentView.content").rejectProperty("closed",!0),b=c.indexOf(this.get("content")),j=$(window).height(),g=80,h=320,i=Math.floor(j/g),a=Math.floor(b/i),e=b%i,-1===b?"":(f=e*g,d=a*h,"top: "+f+"px; right: "+d+"px;")}.property("parentView.content.@each.closed"),iconType:function(){var a,b;return b=this.get("content.type"),a={info:"fa-bullhorn",success:"fa-check",warning:"fa-exclamation",danger:"fa-times"},a[b]||""}.property("content.type"),actions:{close:function(){var a=this;return this.set("isOpaque",!1),setTimeout(function(){return a.get("parentView.content").removeObject(a.get("content")),clearTimeout(a.get("timeoutId"))},300)}}})}),Ember.Handlebars.helper("bs-growl-notifications",Bootstrap.GrowlNotifications),Bootstrap.GNM=Bootstrap.GrowlNotificationManager=Ember.Object.create({notifications:Ember.A(),push:function(a,b,c){var d;return c=null!=c?c:c="info",d=Bootstrap.Notification.create({title:a,sub:b,type:c,closed:!1}),this.get("notifications").pushObject(d)}}),Bootstrap.GrowlNotification=Ember.Object.extend()}).call(this); \ No newline at end of file diff --git a/dist/js/bs-items-action-bar.min.js b/dist/js/bs-items-action-bar.min.js index c11126b..f1c058b 100644 --- a/dist/js/bs-items-action-bar.min.js +++ b/dist/js/bs-items-action-bar.min.js @@ -1 +1 @@ -!function(){Bootstrap.ItemsActionBar=Ember.CollectionView.extend({classNames:"btn-toolbar",classNameBindings:"rtl:pull-right",role:"toolbar",selectedItems:[],rtl:!1,selection:function(){var a;return a=this.get("selectedItems"),null==a?[]:Array.isArray(a)?a:[a]}.property("selectedItems"),itemViewClass:Ember.CollectionView.extend({tagName:["div"],classNames:["btn-group"],itemViewClass:Ember.View.extend({tagName:"button",classNames:["btn","btn-default"],attributeBindings:["disabled"],template:Ember.Handlebars.compile(" {{#if view.content.transitionTo}} {{link-to view.content.title view.content.transitionTo tagName='div'}} {{else}} {{view.content.title}} {{/if}} "),disabled:function(){var a;return"function"==typeof(a=this.get("content.disabled"))?a(this.get("parentView.parentView.selection")):void 0}.property("parentView.parentView.selection.@each","parentView.parentView.selection"),click:function(){return null!=this.get("content.clickActionName")?this.get("controller").send(this.get("content.clickActionName"),this.get("parentView.parentView.selection")):this.get("content.click")?this.get("content.click")(this.get("parentView.parentView.selection")):void 0}})})}),Ember.Handlebars.helper("bs-items-action-bar",Bootstrap.ItemsActionBar)}.call(this); \ No newline at end of file +(function(){Bootstrap.ItemsActionBar=Ember.CollectionView.extend({classNames:"btn-toolbar",classNameBindings:"rtl:pull-right",role:"toolbar",selectedItems:[],rtl:!1,selection:function(){var a;return a=this.get("selectedItems"),null==a?[]:Array.isArray(a)?a:[a]}.property("selectedItems"),itemViewClass:Ember.CollectionView.extend({tagName:["div"],classNames:["btn-group"],itemViewClass:Ember.View.extend({tagName:"button",classNames:["btn","btn-default"],attributeBindings:["disabled"],template:Ember.Handlebars.compile(" {{#if view.content.transitionTo}} {{link-to view.content.title view.content.transitionTo tagName='div'}} {{else}} {{view.content.title}} {{/if}} "),disabled:function(){var a;return"function"==typeof(a=this.get("content.disabled"))?a(this.get("parentView.parentView.selection")):void 0}.property("parentView.parentView.selection.@each","parentView.parentView.selection"),click:function(){return null!=this.get("content.clickActionName")?this.get("controller").send(this.get("content.clickActionName"),this.get("parentView.parentView.selection")):this.get("content.click")?this.get("content.click")(this.get("parentView.parentView.selection")):void 0}})})}),Ember.Handlebars.helper("bs-items-action-bar",Bootstrap.ItemsActionBar)}).call(this); \ No newline at end of file diff --git a/dist/js/bs-label.max.js b/dist/js/bs-label.max.js index 6b2e30b..3490c98 100644 --- a/dist/js/bs-label.max.js +++ b/dist/js/bs-label.max.js @@ -10,17 +10,44 @@ }).call(this); -this["Ember"] = this["Ember"] || {}; -this["Ember"]["TEMPLATES"] = this["Ember"]["TEMPLATES"] || {}; - -this["Ember"]["TEMPLATES"]["components/bs-label"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) { -this.compilerInfo = [4,'>= 1.0.0']; -helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; - var hashTypes, hashContexts, escapeExpression=this.escapeExpression; - - - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "content", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - -}); \ No newline at end of file +Ember.TEMPLATES["components/bs-label"] = Ember.HTMLBars.template((function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, content = hooks.content; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(fragment,0,0,contextualElement); + dom.insertBoundary(fragment, null); + dom.insertBoundary(fragment, 0); + content(env, morph0, context, "content"); + return fragment; + } + }; +}())); \ No newline at end of file diff --git a/dist/js/bs-label.min.js b/dist/js/bs-label.min.js index 1e1fef6..c20e79c 100644 --- a/dist/js/bs-label.min.js +++ b/dist/js/bs-label.min.js @@ -1 +1 @@ -!function(){Bootstrap.BsLabelComponent=Ember.Component.extend(Bootstrap.TypeSupport,{layoutName:"components/bs-label",tagName:"span",classNames:["label"],classTypePrefix:"label"}),Ember.Handlebars.helper("bs-label",Bootstrap.BsLabelComponent)}.call(this),this.Ember=this.Ember||{},this.Ember.TEMPLATES=this.Ember.TEMPLATES||{},this.Ember.TEMPLATES["components/bs-label"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g,h=this.escapeExpression;f={},g={},e.buffer.push(h(c._triageMustache.call(b,"content",{hash:{},contexts:[b],types:["ID"],hashContexts:g,hashTypes:f,data:e})))}); \ No newline at end of file +(function(){Bootstrap.BsLabelComponent=Ember.Component.extend(Bootstrap.TypeSupport,{layoutName:"components/bs-label",tagName:"span",classNames:["label"],classTypePrefix:"label"}),Ember.Handlebars.helper("bs-label",Bootstrap.BsLabelComponent)}).call(this),Ember.TEMPLATES["components/bs-label"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createComment("");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(g,0,0,c);return d.insertBoundary(g,null),d.insertBoundary(g,0),f(b,h,a,"content"),g}}}()); \ No newline at end of file diff --git a/dist/js/bs-list-group.min.js b/dist/js/bs-list-group.min.js index b706f21..4399d8d 100644 --- a/dist/js/bs-list-group.min.js +++ b/dist/js/bs-list-group.min.js @@ -1 +1 @@ -!function(){Bootstrap.BsListGroupComponent=Bootstrap.ItemsView.extend({tagName:"ul",classNames:["list-group"],itemViewClass:Bootstrap.ItemView.extend(Bootstrap.ItemSelection,{classNames:["list-group-item"],template:Ember.Handlebars.compile('{{#if view.badge}}\n {{bs-badge contentBinding="view.badge"}}\n{{/if}}\n{{#if view.sub}}\n

{{view.title}}

\n

{{view.sub}}

\n{{else}}\n {{view.title}}\n{{/if}}'),badge:function(){var a;return a=this.get("content"),"instance"===Ember.typeOf(a)||Ember.canInvoke(a,"get")?a.get("badge"):null}.property("content"),sub:function(){var a;return a=this.get("content"),"instance"===Ember.typeOf(a)||Ember.canInvoke(a,"get")?a.get("sub"):null}.property("content")})}),Ember.Handlebars.helper("bs-list-group",Bootstrap.BsListGroupComponent)}.call(this); \ No newline at end of file +(function(){Bootstrap.BsListGroupComponent=Bootstrap.ItemsView.extend({tagName:"ul",classNames:["list-group"],itemViewClass:Bootstrap.ItemView.extend(Bootstrap.ItemSelection,{classNames:["list-group-item"],template:Ember.Handlebars.compile('{{#if view.badge}}\n {{bs-badge contentBinding="view.badge"}}\n{{/if}}\n{{#if view.sub}}\n

{{view.title}}

\n

{{view.sub}}

\n{{else}}\n {{view.title}}\n{{/if}}'),badge:function(){var a;return a=this.get("content"),"instance"===Ember.typeOf(a)||Ember.canInvoke(a,"get")?a.get("badge"):null}.property("content"),sub:function(){var a;return a=this.get("content"),"instance"===Ember.typeOf(a)||Ember.canInvoke(a,"get")?a.get("sub"):null}.property("content")})}),Ember.Handlebars.helper("bs-list-group",Bootstrap.BsListGroupComponent)}).call(this); \ No newline at end of file diff --git a/dist/js/bs-modal.max.js b/dist/js/bs-modal.max.js index 04ae00e..71a1c15 100644 --- a/dist/js/bs-modal.max.js +++ b/dist/js/bs-modal.max.js @@ -7,10 +7,32 @@ Modal component. Bootstrap.BsModalComponent = Ember.Component.extend(Ember.Evented, { layoutName: 'components/bs-modal', classNames: ['modal'], + classNameBindings: ['fade', 'isVis:in', 'vertical:modal-dialog-center', 'class'], attributeBindings: ['role', 'aria-labelledby', 'isAriaHidden:aria-hidden', "ariaLabelledBy:aria-labelledby"], isAriaHidden: (function() { return "" + (this.get('isVisible')); }).property('isVisible'), + dialogStyle: (function() { + Ember.run.scheduleOnce('afterRender', this, function() { + if (this.$()) { + return this.$().find('.modal-dialog').css('z-index', this.get('zindex')); + } + }); + }).observes('zindex'), + dialogVerticalStyle: (function() { + if (this.get('vertical')) { + Ember.run.scheduleOnce('afterRender', this, function() { + var marginHeight; + if (this.$()) { + marginHeight = this.$('.modal-dialog').height() / 2; + return this.$().find('.modal-dialog').css('margin-top', '-' + marginHeight + 'px'); + } + }); + } + }).observes('vertical').on('didInsertElement'), + backdropStyle: (function() { + return ("z-index: " + (this.get('zindex') - 2) + ";").htmlSafe(); + }).property('zindex'), modalBackdrop: '', role: 'dialog', footerViews: [], @@ -18,6 +40,12 @@ Modal component. title: null, isVisible: false, manual: false, + isVis: false, + fullSizeButtons: false, + fade: true, + vertical: false, + zindex: 1000, + keyClose: true, didInsertElement: function() { var name; this._super(); @@ -28,19 +56,16 @@ Modal component. name = this.get('elementId'); } Bootstrap.ModalManager.add(name, this); + this.dialogStyle(); if (this.manual) { return this.show(); } }, becameVisible: function() { - if (this.get("backdrop")) { - return this.appendBackdrop(); - } + return Em.$('body').addClass('modal-open'); }, becameHidden: function() { - if (this._backdrop) { - return this._backdrop.remove(); - } + return Em.$('body').removeClass('modal-open'); }, appendBackdrop: function() { var parentElement; @@ -48,10 +73,27 @@ Modal component. return this._backdrop = Em.$(this.modalBackdrop).appendTo(parentElement); }, show: function() { - return this.set('isVisible', true); + this.set('isVisible', true); + Ember.run.later(this, (function() { + this.set('isVis', true); + }), 15); }, hide: function() { - return this.set('isVisible', false); + if (this.get('isDestroyed') || this.get('isDestroying')) { + return; + } + this.set('isVis', false); + if (this.get('fade')) { + Ember.run.later(this, (function() { + if (this.get('isDestroyed') || this.get('isDestroying')) { + return; + } + this.set('isVisible', false); + }), 300); + } else { + this.set('isVisible', false); + } + return false; }, toggle: function() { return this.toggleProperty('isVisible'); @@ -65,20 +107,39 @@ Modal component. } }, keyPressed: function(event) { - if (event.keyCode === 27) { + if (event.keyCode === 27 && this.get('keyClose') && this.get('zindex') === Bootstrap.ModalManager.get('zindex')) { return this.close(event); } }, close: function(event) { - if (this.get('manual')) { - this.destroy(); + if (this.get('isDestroyed') || this.get('isDestroying')) { + return; + } + this.set('isVis', false); + if (this.get('fade')) { + return Ember.run.later(this, (function() { + if (this.get('isDestroyed') || this.get('isDestroying')) { + return; + } + if (this.get('manual')) { + this.destroy(); + } else { + this.set('isVisible', false); + } + this.trigger('closed', this); + }), 300); } else { - this.hide(); + if (this.get('manual')) { + this.destroy(); + } else { + this.set('isVisible', false); + } + return this.trigger('closed', this); } - return this.trigger('closed'); }, willDestroyElement: function() { var name; + Em.$('body').removeClass('modal-open'); this.removeHandlers(); name = this.get('name'); if (name == null) { @@ -114,8 +175,19 @@ Modal component. */ - Bootstrap.ModalManager = Ember.Object.create({ + Bootstrap.ModalManager = Ember.Object.createWithMixins(Ember.Evented, { add: function(name, modalInstance) { + var zindex; + zindex = this.get('zindex'); + this.set('zindex', zindex + 2); + modalInstance.set('zindex', zindex + 2); + modalInstance.on('closed', function(e) { + zindex = e.get('zindex'); + if (zindex === Bootstrap.ModalManager.get('zindex')) { + Bootstrap.ModalManager.set('zindex', zindex - 2); + } + return Bootstrap.ModalManager.trigger('closed', e); + }); return this.set(name, modalInstance); }, register: function(name, modalInstance) { @@ -137,29 +209,67 @@ Modal component. toggle: function(name) { return this.get(name).toggle(); }, - confirm: function(controller, title, message, confirmButtonTitle, cancelButtonTitle) { + confirm: function(controller, title, message, options, confirmButtonTitle, confirmButtonEvent, confirmButtonType, cancelButtonTitle, cancelButtonEvent, cancelButtonType) { var body, buttons; if (confirmButtonTitle == null) { confirmButtonTitle = "Confirm"; } + if (confirmButtonEvent == null) { + confirmButtonEvent = "modalConfirmed"; + } + if (confirmButtonType == null) { + confirmButtonType = null; + } if (cancelButtonTitle == null) { cancelButtonTitle = "Cancel"; } + if (cancelButtonEvent == null) { + cancelButtonEvent = "modalCanceled"; + } + if (cancelButtonType == null) { + cancelButtonType = null; + } body = Ember.View.extend({ template: Ember.Handlebars.compile(message || "Are you sure you would like to perform this action?") }); buttons = [ Ember.Object.create({ title: confirmButtonTitle, - clicked: "modalConfirmed", + clicked: confirmButtonEvent, + type: confirmButtonType, dismiss: 'modal' }), Ember.Object.create({ title: cancelButtonTitle, - clicked: "modalCanceled", + clicked: cancelButtonEvent, + type: cancelButtonType, dismiss: 'modal' }) ]; - return this.open('confirm-modal', title || 'Confirmation required!', body, buttons, controller); + return this.open('confirm-modal', title || 'Confirmation required!', body, buttons, controller, options); + }, + okModal: function(controller, title, message, options, okButtonTitle, okButtonEvent, okButtonType) { + var body, buttons; + if (okButtonTitle == null) { + okButtonTitle = "OK"; + } + if (okButtonEvent == null) { + okButtonEvent = "okModal"; + } + if (okButtonType == null) { + okButtonType = null; + } + body = Ember.View.extend({ + template: Ember.Handlebars.compile(message || "Are you sure you would like to perform this action?") + }); + buttons = [ + Ember.Object.create({ + title: okButtonTitle, + clicked: okButtonEvent, + type: okButtonType, + dismiss: 'modal' + }) + ]; + return this.open('ok-modal', title || 'Confirmation required!', body, buttons, controller, options); }, openModal: function(modalView, options) { var instance, rootElement; @@ -170,18 +280,44 @@ Modal component. instance = modalView.create(options); return instance.appendTo(rootElement); }, - open: function(name, title, view, footerButtons, controller) { - var cl, modalComponent, template; - cl = controller.container.lookup('component-lookup:main'); - modalComponent = cl.lookupFactory('bs-modal', controller.get('container')).create(); + openManual: function(name, title, content, footerButtons, controller, options) { + var view; + view = Ember.View.extend({ + template: Ember.Handlebars.compile(content), + controller: controller + }); + return this.open(name, title, view, footerButtons, controller, options); + }, + open: function(name, title, view, footerButtons, controller, options) { + var cl, modalComponent, rootElement, template; + cl = void 0; + modalComponent = void 0; + template = void 0; + if (options == null) { + options = {}; + } + if (options.fade == null) { + options.fade = this.get("fade"); + } + if (options.fullSizeButtons == null) { + options.fullSizeButtons = this.get("fullSizeButtons"); + } + if (options.targetObject == null) { + options.targetObject = controller; + } + if (options.vertical == null) { + options.vertical = this.get("vertical"); + } + cl = controller.container.lookup("component-lookup:main"); + modalComponent = cl.lookupFactory("bs-modal", controller.get("container")).create(); modalComponent.setProperties({ name: name, title: title, manual: true, - footerButtons: footerButtons, - targetObject: controller + footerButtons: footerButtons }); - if (Ember.typeOf(view) === 'string') { + modalComponent.setProperties(options); + if (Ember.typeOf(view) === "string") { template = controller.container.lookup("template:" + view); Ember.assert("Template " + view + " was specified for Modal but template could not be found.", template); if (template) { @@ -192,123 +328,369 @@ Modal component. }) }); } - } else if (Ember.typeOf(view) === 'class') { + } else if (Ember.typeOf(view) === "class") { modalComponent.setProperties({ body: view, controller: controller }); } - return modalComponent.appendTo(controller.namespace.rootElement); - } + rootElement = controller.rootElement; + if (typeof controller.rootElement === "undefined") { + rootElement = controller.namespace.rootElement; + } + return modalComponent.appendTo(rootElement); + }, + fade: true, + fullSizeButtons: false, + vertical: false, + zindex: 1000 }); Ember.Application.initializer({ name: 'bs-modal', initialize: function(container, application) { - return container.register('component:bs-modal', Bootstrap.BsModalComponent); + return container.register("component:bs-modal", Bootstrap.BsModalComponent); } }); }).call(this); -this["Ember"] = this["Ember"] || {}; -this["Ember"]["TEMPLATES"] = this["Ember"]["TEMPLATES"] || {}; - -this["Ember"]["TEMPLATES"]["components/bs-modal"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) { -this.compilerInfo = [4,'>= 1.0.0']; -helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; - var buffer = '', stack1, hashTypes, hashContexts, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, self=this; - -function program1(depth0,data) { - - var buffer = '', stack1, hashContexts, hashTypes, options; - data.buffer.push("\n \n "); - return buffer; - } - -function program3(depth0,data) { - - var buffer = '', hashTypes, hashContexts; - data.buffer.push("\n "); - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers.view.call(depth0, "view.body", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - data.buffer.push("\n "); - return buffer; - } - -function program5(depth0,data) { - - var buffer = '', hashTypes, hashContexts; - data.buffer.push("\n "); - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "yield", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - data.buffer.push("\n "); - return buffer; - } - -function program7(depth0,data) { - - var buffer = '', stack1, hashContexts, hashTypes, options; - data.buffer.push("\n "); - hashContexts = {'content': depth0,'targetObjectBinding': depth0}; - hashTypes = {'content': "ID",'targetObjectBinding': "STRING"}; - options = {hash:{ - 'content': (""), - 'targetObjectBinding': ("view.targetObject") - },contexts:[],types:[],hashContexts:hashContexts,hashTypes:hashTypes,data:data}; - data.buffer.push(escapeExpression(((stack1 = helpers['bs-button'] || depth0['bs-button']),stack1 ? stack1.call(depth0, options) : helperMissing.call(depth0, "bs-button", options)))); - data.buffer.push("\n "); - return buffer; - } - -function program9(depth0,data) { - - var buffer = '', hashTypes, hashContexts; - data.buffer.push("\n "); - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers.view.call(depth0, "", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - data.buffer.push("\n "); - return buffer; - } - - data.buffer.push("
\n
\n
\n \n

\n "); - hashTypes = {}; - hashContexts = {}; - stack1 = helpers['if'].call(depth0, "titleIconClasses", {hash:{},inverse:self.noop,fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); - if(stack1 || stack1 === 0) { data.buffer.push(stack1); } - data.buffer.push("\n "); - hashContexts = {'unescaped': depth0}; - hashTypes = {'unescaped': "STRING"}; - stack1 = helpers._triageMustache.call(depth0, "title", {hash:{ - 'unescaped': ("true") - },contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); - if(stack1 || stack1 === 0) { data.buffer.push(stack1); } - data.buffer.push("\n

\n
\n
\n "); - hashTypes = {}; - hashContexts = {}; - stack1 = helpers['if'].call(depth0, "body", {hash:{},inverse:self.program(5, program5, data),fn:self.program(3, program3, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); - if(stack1 || stack1 === 0) { data.buffer.push(stack1); } - data.buffer.push("\n
\n
\n "); - hashTypes = {}; - hashContexts = {}; - stack1 = helpers.each.call(depth0, "footerButtons", {hash:{},inverse:self.noop,fn:self.program(7, program7, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); - if(stack1 || stack1 === 0) { data.buffer.push(stack1); } - data.buffer.push("\n "); - hashTypes = {}; - hashContexts = {}; - stack1 = helpers.each.call(depth0, "footerViews", {hash:{},inverse:self.noop,fn:self.program(9, program9, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); - if(stack1 || stack1 === 0) { data.buffer.push(stack1); } - data.buffer.push("\n
\n
\n
"); - return buffer; - -}); \ No newline at end of file +Ember.TEMPLATES["components/bs-modal"] = Ember.HTMLBars.template((function() { + var child0 = (function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createElement("i"); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, element = hooks.element; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var element0 = dom.childAt(fragment, [1]); + element(env, element0, context, "bind-attr", [], {"class": "titleIconClasses"}); + return fragment; + } + }; + }()); + var child1 = (function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, get = hooks.get, inline = hooks.inline; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(fragment,1,1,contextualElement); + inline(env, morph0, context, "view", [get(env, context, "view.body")], {}); + return fragment; + } + }; + }()); + var child2 = (function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, content = hooks.content; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(fragment,1,1,contextualElement); + content(env, morph0, context, "yield"); + return fragment; + } + }; + }()); + var child3 = (function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, get = hooks.get, inline = hooks.inline; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(fragment,1,1,contextualElement); + inline(env, morph0, context, "bs-button", [], {"content": get(env, context, "footerButton"), "targetObjectBinding": "view.targetObject"}); + return fragment; + } + }; + }()); + var child4 = (function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, get = hooks.get, inline = hooks.inline; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(fragment,1,1,contextualElement); + inline(env, morph0, context, "view", [get(env, context, "footerView")], {}); + return fragment; + } + }; + }()); + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createElement("div"); + dom.setAttribute(el1,"class","modal-dialog"); + var el2 = dom.createTextNode("\n "); + dom.appendChild(el1, el2); + var el2 = dom.createElement("div"); + dom.setAttribute(el2,"class","modal-content"); + var el3 = dom.createTextNode("\n "); + dom.appendChild(el2, el3); + var el3 = dom.createElement("div"); + dom.setAttribute(el3,"class","modal-header"); + var el4 = dom.createTextNode("\n "); + dom.appendChild(el3, el4); + var el4 = dom.createElement("button"); + dom.setAttribute(el4,"type","button"); + dom.setAttribute(el4,"data-dismiss","modal"); + dom.setAttribute(el4,"aria-hidden","true"); + var el5 = dom.createTextNode("×"); + dom.appendChild(el4, el5); + dom.appendChild(el3, el4); + var el4 = dom.createTextNode("\n "); + dom.appendChild(el3, el4); + var el4 = dom.createElement("h4"); + dom.setAttribute(el4,"class","modal-title"); + var el5 = dom.createTextNode("\n"); + dom.appendChild(el4, el5); + var el5 = dom.createComment(""); + dom.appendChild(el4, el5); + var el5 = dom.createTextNode(" "); + dom.appendChild(el4, el5); + var el5 = dom.createComment(""); + dom.appendChild(el4, el5); + var el5 = dom.createTextNode("\n "); + dom.appendChild(el4, el5); + dom.appendChild(el3, el4); + var el4 = dom.createTextNode("\n "); + dom.appendChild(el3, el4); + dom.appendChild(el2, el3); + var el3 = dom.createTextNode("\n "); + dom.appendChild(el2, el3); + var el3 = dom.createElement("div"); + dom.setAttribute(el3,"class","modal-body"); + var el4 = dom.createTextNode("\n"); + dom.appendChild(el3, el4); + var el4 = dom.createComment(""); + dom.appendChild(el3, el4); + var el4 = dom.createTextNode(" "); + dom.appendChild(el3, el4); + dom.appendChild(el2, el3); + var el3 = dom.createTextNode("\n "); + dom.appendChild(el2, el3); + var el3 = dom.createElement("div"); + var el4 = dom.createTextNode("\n"); + dom.appendChild(el3, el4); + var el4 = dom.createComment(""); + dom.appendChild(el3, el4); + var el4 = dom.createComment(""); + dom.appendChild(el3, el4); + var el4 = dom.createTextNode(" "); + dom.appendChild(el3, el4); + dom.appendChild(el2, el3); + var el3 = dom.createTextNode("\n "); + dom.appendChild(el2, el3); + dom.appendChild(el1, el2); + var el2 = dom.createTextNode("\n"); + dom.appendChild(el1, el2); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n\n"); + dom.appendChild(el0, el1); + var el1 = dom.createElement("div"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, element = hooks.element, get = hooks.get, block = hooks.block, content = hooks.content; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var element1 = dom.childAt(fragment, [0, 1]); + var element2 = dom.childAt(element1, [1]); + var element3 = dom.childAt(element2, [1]); + var element4 = dom.childAt(element2, [3]); + var element5 = dom.childAt(element1, [5]); + var element6 = dom.childAt(fragment, [2]); + var morph0 = dom.createMorphAt(element4,1,1); + var morph1 = dom.createUnsafeMorphAt(element4,3,3); + var morph2 = dom.createMorphAt(dom.childAt(element1, [3]),1,1); + var morph3 = dom.createMorphAt(element5,1,1); + var morph4 = dom.createMorphAt(element5,2,2); + element(env, element3, context, "bind-attr", [], {"class": ":close allowClose::hide"}); + block(env, morph0, context, "if", [get(env, context, "titleIconClasses")], {}, child0, null); + content(env, morph1, context, "title"); + block(env, morph2, context, "if", [get(env, context, "body")], {}, child1, child2); + element(env, element5, context, "bind-attr", [], {"class": ":modal-footer fullSizeButtons:modal-footer-full"}); + block(env, morph3, context, "each", [get(env, context, "footerButtons")], {"keyword": "footerButton"}, child3, null); + block(env, morph4, context, "each", [get(env, context, "footerViews")], {"keyword": "footerView"}, child4, null); + element(env, element6, context, "bind-attr", [], {"style": get(env, context, "backdropStyle"), "class": ":modal-backdrop fade:fade backdrop:in"}); + return fragment; + } + }; +}())); \ No newline at end of file diff --git a/dist/js/bs-modal.min.js b/dist/js/bs-modal.min.js index 7ff65cf..8ce8ee9 100644 --- a/dist/js/bs-modal.min.js +++ b/dist/js/bs-modal.min.js @@ -1 +1 @@ -!function(){Bootstrap.BsModalComponent=Ember.Component.extend(Ember.Evented,{layoutName:"components/bs-modal",classNames:["modal"],attributeBindings:["role","aria-labelledby","isAriaHidden:aria-hidden","ariaLabelledBy:aria-labelledby"],isAriaHidden:function(){return""+this.get("isVisible")}.property("isVisible"),modalBackdrop:'',role:"dialog",footerViews:[],backdrop:!0,title:null,isVisible:!1,manual:!1,didInsertElement:function(){var a;return this._super(),this.setupBinders(),a=this.get("name"),Ember.assert("Modal name is required for modal view "+this.get("elementId"),this.get("name")),null==a&&(a=this.get("elementId")),Bootstrap.ModalManager.add(a,this),this.manual?this.show():void 0},becameVisible:function(){return this.get("backdrop")?this.appendBackdrop():void 0},becameHidden:function(){return this._backdrop?this._backdrop.remove():void 0},appendBackdrop:function(){var a;return a=this.$().parent(),this._backdrop=Em.$(this.modalBackdrop).appendTo(a)},show:function(){return this.set("isVisible",!0)},hide:function(){return this.set("isVisible",!1)},toggle:function(){return this.toggleProperty("isVisible")},click:function(a){var b,c;return b=a.target,c=b.getAttribute("data-dismiss"),"modal"===c?this.close():void 0},keyPressed:function(a){return 27===a.keyCode?this.close(a):void 0},close:function(){return this.get("manual")?this.destroy():this.hide(),this.trigger("closed")},willDestroyElement:function(){var a;return this.removeHandlers(),a=this.get("name"),null==a&&(a=this.get("elementId")),Bootstrap.ModalManager.remove(a,this),this._backdrop?this._backdrop.remove():void 0},removeHandlers:function(){return jQuery(window.document).unbind("keyup",this._keyUpHandler)},setupBinders:function(){var a,b=this;return a=function(a){return b.keyPressed(a)},jQuery(window.document).bind("keyup",a),this._keyUpHandler=a}}),Bootstrap.ModalManager=Ember.Object.create({add:function(a,b){return this.set(a,b)},register:function(a,b){return this.add(a,b),b.appendTo(b.get("targetObject").namespace.rootElement)},remove:function(a){return this.set(a,null)},close:function(a){return this.get(a).close()},hide:function(a){return this.get(a).hide()},show:function(a){return this.get(a).show()},toggle:function(a){return this.get(a).toggle()},confirm:function(a,b,c,d,e){var f,g;return null==d&&(d="Confirm"),null==e&&(e="Cancel"),f=Ember.View.extend({template:Ember.Handlebars.compile(c||"Are you sure you would like to perform this action?")}),g=[Ember.Object.create({title:d,clicked:"modalConfirmed",dismiss:"modal"}),Ember.Object.create({title:e,clicked:"modalCanceled",dismiss:"modal"})],this.open("confirm-modal",b||"Confirmation required!",f,g,a)},openModal:function(a,b){var c,d;return null==b&&(b={}),d=b.rootElement||".ember-application",c=a.create(b),c.appendTo(d)},open:function(a,b,c,d,e){var f,g,h;return f=e.container.lookup("component-lookup:main"),g=f.lookupFactory("bs-modal",e.get("container")).create(),g.setProperties({name:a,title:b,manual:!0,footerButtons:d,targetObject:e}),"string"===Ember.typeOf(c)?(h=e.container.lookup("template:"+c),Ember.assert("Template "+c+" was specified for Modal but template could not be found.",h),h&&g.setProperties({body:Ember.View.extend({template:h,controller:e})})):"class"===Ember.typeOf(c)&&g.setProperties({body:c,controller:e}),g.appendTo(e.namespace.rootElement)}}),Ember.Application.initializer({name:"bs-modal",initialize:function(a){return a.register("component:bs-modal",Bootstrap.BsModalComponent)}})}.call(this),this.Ember=this.Ember||{},this.Ember.TEMPLATES=this.Ember.TEMPLATES||{},this.Ember.TEMPLATES["components/bs-modal"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f,g,h="";return b.buffer.push("\n \n "),h}function g(a,b){var d,e,f="";return b.buffer.push("\n "),d={},e={},b.buffer.push(p(c.view.call(a,"view.body",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push("\n "),f}function h(a,b){var d,e,f="";return b.buffer.push("\n "),d={},e={},b.buffer.push(p(c._triageMustache.call(a,"yield",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push("\n "),f}function i(a,b){var d,e,f,g,h="";return b.buffer.push("\n "),e={content:a,targetObjectBinding:a},f={content:"ID",targetObjectBinding:"STRING"},g={hash:{content:"",targetObjectBinding:"view.targetObject"},contexts:[],types:[],hashContexts:e,hashTypes:f,data:b},b.buffer.push(p((d=c["bs-button"]||a["bs-button"],d?d.call(a,g):o.call(a,"bs-button",g)))),b.buffer.push("\n "),h}function j(a,b){var d,e,f="";return b.buffer.push("\n "),d={},e={},b.buffer.push(p(c.view.call(a,"",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push("\n "),f}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var k,l,m,n="",o=c.helperMissing,p=this.escapeExpression,q=this;return e.buffer.push('"),n}); \ No newline at end of file +(function(){Bootstrap.BsModalComponent=Ember.Component.extend(Ember.Evented,{layoutName:"components/bs-modal",classNames:["modal"],classNameBindings:["fade","isVis:in","vertical:modal-dialog-center","class"],attributeBindings:["role","aria-labelledby","isAriaHidden:aria-hidden","ariaLabelledBy:aria-labelledby"],isAriaHidden:function(){return""+this.get("isVisible")}.property("isVisible"),dialogStyle:function(){Ember.run.scheduleOnce("afterRender",this,function(){return this.$()?this.$().find(".modal-dialog").css("z-index",this.get("zindex")):void 0})}.observes("zindex"),dialogVerticalStyle:function(){this.get("vertical")&&Ember.run.scheduleOnce("afterRender",this,function(){var a;return this.$()?(a=this.$(".modal-dialog").height()/2,this.$().find(".modal-dialog").css("margin-top","-"+a+"px")):void 0})}.observes("vertical").on("didInsertElement"),backdropStyle:function(){return("z-index: "+(this.get("zindex")-2)+";").htmlSafe()}.property("zindex"),modalBackdrop:'',role:"dialog",footerViews:[],backdrop:!0,title:null,isVisible:!1,manual:!1,isVis:!1,fullSizeButtons:!1,fade:!0,vertical:!1,zindex:1e3,keyClose:!0,didInsertElement:function(){var a;return this._super(),this.setupBinders(),a=this.get("name"),Ember.assert("Modal name is required for modal view "+this.get("elementId"),this.get("name")),null==a&&(a=this.get("elementId")),Bootstrap.ModalManager.add(a,this),this.dialogStyle(),this.manual?this.show():void 0},becameVisible:function(){return Em.$("body").addClass("modal-open")},becameHidden:function(){return Em.$("body").removeClass("modal-open")},appendBackdrop:function(){var a;return a=this.$().parent(),this._backdrop=Em.$(this.modalBackdrop).appendTo(a)},show:function(){this.set("isVisible",!0),Ember.run.later(this,function(){this.set("isVis",!0)},15)},hide:function(){return this.get("isDestroyed")||this.get("isDestroying")?void 0:(this.set("isVis",!1),this.get("fade")?Ember.run.later(this,function(){this.get("isDestroyed")||this.get("isDestroying")||this.set("isVisible",!1)},300):this.set("isVisible",!1),!1)},toggle:function(){return this.toggleProperty("isVisible")},click:function(a){var b,c;return b=a.target,c=b.getAttribute("data-dismiss"),"modal"===c?this.close():void 0},keyPressed:function(a){return 27===a.keyCode&&this.get("keyClose")&&this.get("zindex")===Bootstrap.ModalManager.get("zindex")?this.close(a):void 0},close:function(a){return this.get("isDestroyed")||this.get("isDestroying")?void 0:(this.set("isVis",!1),this.get("fade")?Ember.run.later(this,function(){this.get("isDestroyed")||this.get("isDestroying")||(this.get("manual")?this.destroy():this.set("isVisible",!1),this.trigger("closed",this))},300):(this.get("manual")?this.destroy():this.set("isVisible",!1),this.trigger("closed",this)))},willDestroyElement:function(){var a;return Em.$("body").removeClass("modal-open"),this.removeHandlers(),a=this.get("name"),null==a&&(a=this.get("elementId")),Bootstrap.ModalManager.remove(a,this),this._backdrop?this._backdrop.remove():void 0},removeHandlers:function(){return jQuery(window.document).unbind("keyup",this._keyUpHandler)},setupBinders:function(){var a,b=this;return a=function(a){return b.keyPressed(a)},jQuery(window.document).bind("keyup",a),this._keyUpHandler=a}}),Bootstrap.ModalManager=Ember.Object.createWithMixins(Ember.Evented,{add:function(a,b){var c;return c=this.get("zindex"),this.set("zindex",c+2),b.set("zindex",c+2),b.on("closed",function(a){return c=a.get("zindex"),c===Bootstrap.ModalManager.get("zindex")&&Bootstrap.ModalManager.set("zindex",c-2),Bootstrap.ModalManager.trigger("closed",a)}),this.set(a,b)},register:function(a,b){return this.add(a,b),b.appendTo(b.get("targetObject").namespace.rootElement)},remove:function(a){return this.set(a,null)},close:function(a){return this.get(a).close()},hide:function(a){return this.get(a).hide()},show:function(a){return this.get(a).show()},toggle:function(a){return this.get(a).toggle()},confirm:function(a,b,c,d,e,f,g,h,i,j){var k,l;return null==e&&(e="Confirm"),null==f&&(f="modalConfirmed"),null==g&&(g=null),null==h&&(h="Cancel"),null==i&&(i="modalCanceled"),null==j&&(j=null),k=Ember.View.extend({template:Ember.Handlebars.compile(c||"Are you sure you would like to perform this action?")}),l=[Ember.Object.create({title:e,clicked:f,type:g,dismiss:"modal"}),Ember.Object.create({title:h,clicked:i,type:j,dismiss:"modal"})],this.open("confirm-modal",b||"Confirmation required!",k,l,a,d)},okModal:function(a,b,c,d,e,f,g){var h,i;return null==e&&(e="OK"),null==f&&(f="okModal"),null==g&&(g=null),h=Ember.View.extend({template:Ember.Handlebars.compile(c||"Are you sure you would like to perform this action?")}),i=[Ember.Object.create({title:e,clicked:f,type:g,dismiss:"modal"})],this.open("ok-modal",b||"Confirmation required!",h,i,a,d)},openModal:function(a,b){var c,d;return null==b&&(b={}),d=b.rootElement||".ember-application",c=a.create(b),c.appendTo(d)},openManual:function(a,b,c,d,e,f){var g;return g=Ember.View.extend({template:Ember.Handlebars.compile(c),controller:e}),this.open(a,b,g,d,e,f)},open:function(a,b,c,d,e,f){var g,h,i,j;return g=void 0,h=void 0,j=void 0,null==f&&(f={}),null==f.fade&&(f.fade=this.get("fade")),null==f.fullSizeButtons&&(f.fullSizeButtons=this.get("fullSizeButtons")),null==f.targetObject&&(f.targetObject=e),null==f.vertical&&(f.vertical=this.get("vertical")),g=e.container.lookup("component-lookup:main"),h=g.lookupFactory("bs-modal",e.get("container")).create(),h.setProperties({name:a,title:b,manual:!0,footerButtons:d}),h.setProperties(f),"string"===Ember.typeOf(c)?(j=e.container.lookup("template:"+c),Ember.assert("Template "+c+" was specified for Modal but template could not be found.",j),j&&h.setProperties({body:Ember.View.extend({template:j,controller:e})})):"class"===Ember.typeOf(c)&&h.setProperties({body:c,controller:e}),i=e.rootElement,"undefined"==typeof e.rootElement&&(i=e.namespace.rootElement),h.appendTo(i)},fade:!0,fullSizeButtons:!1,vertical:!1,zindex:1e3}),Ember.Application.initializer({name:"bs-modal",initialize:function(a,b){return a.register("component:bs-modal",Bootstrap.BsModalComponent)}})}).call(this),Ember.TEMPLATES["components/bs-modal"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createElement("i");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.element;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.childAt(g,[1]);return f(b,h,a,"bind-attr",[],{"class":"titleIconClasses"}),g}}}(),b=function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createComment("");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.inline;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.createMorphAt(h,1,1,c);return g(b,i,a,"view",[f(b,a,"view.body")],{}),h}}}(),c=function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createComment("");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(g,1,1,c);return f(b,h,a,"yield"),g}}}(),d=function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createComment("");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.inline;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.createMorphAt(h,1,1,c);return g(b,i,a,"bs-button",[],{content:f(b,a,"footerButton"),targetObjectBinding:"view.targetObject"}),h}}}(),e=function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createComment("");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.inline;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.createMorphAt(h,1,1,c);return g(b,i,a,"view",[f(b,a,"footerView")],{}),h}}}();return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("div");a.setAttribute(c,"class","modal-dialog");var d=a.createTextNode("\n ");a.appendChild(c,d);var d=a.createElement("div");a.setAttribute(d,"class","modal-content");var e=a.createTextNode("\n ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","modal-header");var f=a.createTextNode("\n ");a.appendChild(e,f);var f=a.createElement("button");a.setAttribute(f,"type","button"),a.setAttribute(f,"data-dismiss","modal"),a.setAttribute(f,"aria-hidden","true");var g=a.createTextNode("×");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n ");a.appendChild(e,f);var f=a.createElement("h4");a.setAttribute(f,"class","modal-title");var g=a.createTextNode("\n");a.appendChild(f,g);var g=a.createComment("");a.appendChild(f,g);var g=a.createTextNode(" ");a.appendChild(f,g);var g=a.createComment("");a.appendChild(f,g);var g=a.createTextNode("\n ");a.appendChild(f,g),a.appendChild(e,f);var f=a.createTextNode("\n ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n ");a.appendChild(d,e);var e=a.createElement("div");a.setAttribute(e,"class","modal-body");var f=a.createTextNode("\n");a.appendChild(e,f);var f=a.createComment("");a.appendChild(e,f);var f=a.createTextNode(" ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n ");a.appendChild(d,e);var e=a.createElement("div"),f=a.createTextNode("\n");a.appendChild(e,f);var f=a.createComment("");a.appendChild(e,f);var f=a.createComment("");a.appendChild(e,f);var f=a.createTextNode(" ");a.appendChild(e,f),a.appendChild(d,e);var e=a.createTextNode("\n ");a.appendChild(d,e),a.appendChild(c,d);var d=a.createTextNode("\n");a.appendChild(c,d),a.appendChild(b,c);var c=a.createTextNode("\n\n");a.appendChild(b,c);var c=a.createElement("div");return a.appendChild(b,c),b},render:function(f,g,h){var i=g.dom,j=g.hooks,k=j.element,l=j.get,m=j.block,n=j.content;i.detectNamespace(h);var o;g.useFragmentCache&&i.canClone?(null===this.cachedFragment&&(o=this.build(i),this.hasRendered?this.cachedFragment=o:this.hasRendered=!0),this.cachedFragment&&(o=i.cloneNode(this.cachedFragment,!0))):o=this.build(i);var p=i.childAt(o,[0,1]),q=i.childAt(p,[1]),r=i.childAt(q,[1]),s=i.childAt(q,[3]),t=i.childAt(p,[5]),u=i.childAt(o,[2]),v=i.createMorphAt(s,1,1),w=i.createUnsafeMorphAt(s,3,3),x=i.createMorphAt(i.childAt(p,[3]),1,1),y=i.createMorphAt(t,1,1),z=i.createMorphAt(t,2,2);return k(g,r,f,"bind-attr",[],{"class":":close allowClose::hide"}),m(g,v,f,"if",[l(g,f,"titleIconClasses")],{},a,null),n(g,w,f,"title"),m(g,x,f,"if",[l(g,f,"body")],{},b,c),k(g,t,f,"bind-attr",[],{"class":":modal-footer fullSizeButtons:modal-footer-full"}),m(g,y,f,"each",[l(g,f,"footerButtons")],{keyword:"footerButton"},d,null),m(g,z,f,"each",[l(g,f,"footerViews")],{keyword:"footerView"},e,null),k(g,u,f,"bind-attr",[],{style:l(g,f,"backdropStyle"),"class":":modal-backdrop fade:fade backdrop:in"}),o}}}()); \ No newline at end of file diff --git a/dist/js/bs-nav.min.js b/dist/js/bs-nav.min.js index 8f9f7af..3a368f1 100644 --- a/dist/js/bs-nav.min.js +++ b/dist/js/bs-nav.min.js @@ -1 +1 @@ -!function(){Bootstrap.BsPill=Bootstrap.ItemView.extend(Bootstrap.NavItem,Bootstrap.ItemSelection,{template:Ember.Handlebars.compile("{{#if view.content.linkTo}}\n {{#if view.parentView.dynamicLink}}\n {{#link-to view.content.linkTo model}}{{view.title}}{{/link-to}}\n {{else}}\n {{#link-to view.content.linkTo}}{{view.title}}{{/link-to}}\n {{/if}}\n{{else}}\n {{view view.pillAsLinkView}}\n{{/if}}"),pillAsLinkView:Ember.View.extend({tagName:"a",template:Ember.Handlebars.compile("{{view.parentView.title}}"),attributeBindings:["href"],href:"#"})})}.call(this),function(){Bootstrap.BsPills=Bootstrap.ItemsView.extend(Bootstrap.Nav,{navType:"pills",classNameBindings:["stacked:nav-stacked","justified:nav-justified"],attributeBindings:["style"],itemViewClass:Bootstrap.BsPill}),Ember.Handlebars.helper("bs-pills",Bootstrap.BsPills)}.call(this),function(){Bootstrap.BsTabPane=Bootstrap.ItemPaneView.extend()}.call(this),function(){Bootstrap.BsTabsPanes=Bootstrap.ItemsPanesView.extend({classNames:["tab-content"],itemViewClass:Bootstrap.BsTabPane}),Ember.Handlebars.helper("bs-tabs-panes",Bootstrap.BsTabsPanes)}.call(this),function(){Bootstrap.BsTabs=Bootstrap.ItemsView.extend(Bootstrap.Nav,{navType:"tabs",classNameBindings:["justified:nav-justified"],attributeBindings:["style"],itemViewClass:Bootstrap.BsPill}),Ember.Handlebars.helper("bs-tabs",Bootstrap.BsTabs)}.call(this); \ No newline at end of file +(function(){Bootstrap.BsPill=Bootstrap.ItemView.extend(Bootstrap.NavItem,Bootstrap.ItemSelection,{template:Ember.Handlebars.compile("{{#if view.content.linkTo}}\n {{#if view.parentView.dynamicLink}}\n {{#link-to view.content.linkTo model}}{{view.title}}{{/link-to}}\n {{else}}\n {{#link-to view.content.linkTo}}{{view.title}}{{/link-to}}\n {{/if}}\n{{else}}\n {{view view.pillAsLinkView}}\n{{/if}}"),pillAsLinkView:Ember.View.extend({tagName:"a",template:Ember.Handlebars.compile("{{view.parentView.title}}"),attributeBindings:["href"],href:"#"})})}).call(this),function(){Bootstrap.BsPills=Bootstrap.ItemsView.extend(Bootstrap.Nav,{navType:"pills",classNameBindings:["stacked:nav-stacked","justified:nav-justified"],attributeBindings:["style"],itemViewClass:Bootstrap.BsPill}),Ember.Handlebars.helper("bs-pills",Bootstrap.BsPills)}.call(this),function(){Bootstrap.BsTabPane=Bootstrap.ItemPaneView.extend()}.call(this),function(){Bootstrap.BsTabsPanes=Bootstrap.ItemsPanesView.extend({classNames:["tab-content"],itemViewClass:Bootstrap.BsTabPane}),Ember.Handlebars.helper("bs-tabs-panes",Bootstrap.BsTabsPanes)}.call(this),function(){Bootstrap.BsTabs=Bootstrap.ItemsView.extend(Bootstrap.Nav,{navType:"tabs",classNameBindings:["justified:nav-justified"],attributeBindings:["style"],itemViewClass:Bootstrap.BsPill}),Ember.Handlebars.helper("bs-tabs",Bootstrap.BsTabs)}.call(this); \ No newline at end of file diff --git a/dist/js/bs-notifications.min.js b/dist/js/bs-notifications.min.js index 343d390..9311efb 100644 --- a/dist/js/bs-notifications.min.js +++ b/dist/js/bs-notifications.min.js @@ -1 +1 @@ -!function(){Bootstrap.NotificationsView=Ember.CollectionView.extend({classNames:["notifications"],attributeBindings:["style"],contentBinding:"Bootstrap.NM.content",showTime:2e3,fadeInTime:500,fadeOutTime:3e3,showTimeTimeoutId:null,itemViewClass:Ember.View.extend({classNames:["alert","notification"],template:Ember.Handlebars.compile("{{view.content.message}}"),classNameBindings:["alertType"],isVisible:!1,alertType:function(){return this.get("content").get("classType")}.property("content"),didInsertElement:function(){return this.$().fadeIn(this.get("fadeInTime"))}}),contentChanged:function(){return this.get("content").length>0?this.resetShowTime():void 0}.observes("content.length"),resetShowTime:function(){var a=this;return this.$().css({display:"block"}),this.$().is(":animated")&&this.$().stop().animate({opacity:"100"}),null!=this.showTimeTimeoutId&&clearTimeout(this.showTimeTimeoutId),this.showTimeTimeoutId=setTimeout(function(){return a.fadeOut(a)},this.showTime)},fadeOut:function(a){return a.$().fadeOut(a.fadeOutTime,function(){return a.get("content").clear()})},mouseEnter:function(){return this.$().is(":animated")?this.$().stop().animate({opacity:"100"}):void 0},mouseLeave:function(){return this.resetShowTime()}}),Ember.Handlebars.helper("bs-notifications",Bootstrap.NotificationsView),Bootstrap.NM=Bootstrap.NotificationManager=Ember.Object.create({content:Ember.A(),push:function(a,b){var c;return b=null!=b?b:b="info",c=Bootstrap.Notification.create({message:a,type:b}),this.get("content").pushObject(c)}}),Bootstrap.Notification=Ember.Object.extend({classType:function(){return null!=this.type?"alert-"+this.type:null}.property("type").cacheable()})}.call(this); \ No newline at end of file +(function(){Bootstrap.NotificationsView=Ember.CollectionView.extend({classNames:["notifications"],attributeBindings:["style"],contentBinding:"Bootstrap.NM.content",showTime:2e3,fadeInTime:500,fadeOutTime:3e3,showTimeTimeoutId:null,itemViewClass:Ember.View.extend({classNames:["alert","notification"],template:Ember.Handlebars.compile("{{view.content.message}}"),classNameBindings:["alertType"],isVisible:!1,alertType:function(){return this.get("content").get("classType")}.property("content"),didInsertElement:function(){return this.$().fadeIn(this.get("fadeInTime"))}}),contentChanged:function(){return this.get("content").length>0?this.resetShowTime():void 0}.observes("content.length"),resetShowTime:function(){var a=this;return this.$().css({display:"block"}),this.$().is(":animated")&&this.$().stop().animate({opacity:"100"}),null!=this.showTimeTimeoutId&&clearTimeout(this.showTimeTimeoutId),this.showTimeTimeoutId=setTimeout(function(){return a.fadeOut(a)},this.showTime)},fadeOut:function(a){return a.$().fadeOut(a.fadeOutTime,function(){return a.get("content").clear()})},mouseEnter:function(){return this.$().is(":animated")?this.$().stop().animate({opacity:"100"}):void 0},mouseLeave:function(){return this.resetShowTime()}}),Ember.Handlebars.helper("bs-notifications",Bootstrap.NotificationsView),Bootstrap.NM=Bootstrap.NotificationManager=Ember.Object.create({content:Ember.A(),push:function(a,b){var c;return b=null!=b?b:b="info",c=Bootstrap.Notification.create({message:a,type:b}),this.get("content").pushObject(c)}}),Bootstrap.Notification=Ember.Object.extend({classType:function(){return null!=this.type?"alert-"+this.type:null}.property("type").cacheable()})}).call(this); \ No newline at end of file diff --git a/dist/js/bs-popover.max.js b/dist/js/bs-popover.max.js index fb302dd..2b4b65a 100644 --- a/dist/js/bs-popover.max.js +++ b/dist/js/bs-popover.max.js @@ -12,14 +12,30 @@ Bootstrap.BsPopoverComponent = Ember.Component.extend({ layoutName: 'components/bs-popover', classNames: "popover", - classNameBindings: ["fade", "in", "realPlacement"], + classNameBindings: ["fade", "in", "top", "left", "right", "bottom"], + top: (function() { + return this.get("realPlacement") === "top"; + }).property("realPlacement"), + left: (function() { + return this.get("realPlacement") === "left"; + }).property("realPlacement"), + right: (function() { + return this.get("realPlacement") === "right"; + }).property("realPlacement"), + bottom: (function() { + return this.get("realPlacement") === "bottom"; + }).property("realPlacement"), titleBinding: "data.title", content: Ember.computed.alias('data.content'), html: false, delay: 0, animation: true, - fade: Ember.computed.oneWay("animation"), - "in": Ember.computed.oneWay("isVisible"), + fade: (function() { + return this.get("animation"); + }).property("animation"), + "in": (function() { + return this.get("isVisible"); + }).property("isVisible"), placement: (function() { return this.get("data.placement") || "top"; }).property("data.placement"), @@ -374,6 +390,8 @@ object[name] = ""; binding = Ember.Binding.from(p).to(name); binding.connect(object); + } else { + object.set(name, value); } } } diff --git a/dist/js/bs-popover.min.js b/dist/js/bs-popover.min.js index d56d925..ecfe573 100644 --- a/dist/js/bs-popover.min.js +++ b/dist/js/bs-popover.min.js @@ -1 +1 @@ -!function(){var a,b,c;a='
{{#if title}}

{{title}}

{{/if}}
{{#if template}} {{partial partialTemplateName}}{{else}} {{#if content}} {{#if html}} {{{content}}} {{else}} {{content}} {{/if}} {{else}} {{yield}} {{/if}}{{/if}}
',Ember.TEMPLATES["components/bs-popover"]=Ember.Handlebars.compile(a),c='
{{#if html}} {{{content}}}{{else}} {{content}}{{/if}}
',Ember.TEMPLATES["components/bs-tooltip"]=Ember.Handlebars.compile(c),Bootstrap.BsPopoverComponent=Ember.Component.extend({layoutName:"components/bs-popover",classNames:"popover",classNameBindings:["fade","in","top","left","right","bottom"],top:function(){return"top"===this.get("realPlacement")}.property("realPlacement"),left:function(){return"left"===this.get("realPlacement")}.property("realPlacement"),right:function(){return"right"===this.get("realPlacement")}.property("realPlacement"),bottom:function(){return"bottom"===this.get("realPlacement")}.property("realPlacement"),titleBinding:"data.title",content:Ember.computed.alias("data.content"),html:!1,delay:0,animation:!0,fade:function(){return this.get("animation")}.property("animation"),"in":function(){return this.get("isVisible")}.property("isVisible"),placement:function(){return this.get("data.placement")||"top"}.property("data.placement"),$element:null,$tip:null,inserted:!1,styleUpdater:function(){var a,b,c,d,e;if(this.$tip&&this.get("isVisible"))return this.$tip.css({top:0,left:0,display:"block"}).addClass(this.get("realPlacement")),d=this.get("realPlacement"),e=this.getPosition(),b=this.$tip[0].offsetWidth,a=this.$tip[0].offsetHeight,c=this.getCalculatedOffset(d,e,b,a),this.$tip.css("top",c.top),this.$tip.css("left",c.left),this.firstTime?(this.firstTime=!1,this.styleUpdater(),this.firstTime=!0):void 0}.observes("content","realPlacement","inserted","isVisible"),init:function(){var a,b;return this._super(),this.set("html",this.get("data.html")||!1),this.set("template",void 0!==this.get("data.template")),this.get("template")?(a="components/bs-popover/_partial-content-"+this.get("tip_id"),b=this.get("data.template"),Ember.TEMPLATES[a]="function"==typeof b?b:Ember.Handlebars.compile(b),this.set("partialTemplateName",a)):void 0},didInsertElement:function(){var a,b=this;return this.$tip=this.$(),a=Bootstrap.TooltipBoxManager.attribute,a="["+a+"='"+this.get("tip_id")+"']",this.$element=$(a),this.set("inserted",!0),"hover"===this.get("data.trigger")&&this.get("data.sticky")&&this.$().on("mouseenter",function(){return clearTimeout(Bootstrap.TooltipBoxManager.timeout)}),this.$().on("mouseleave",function(){return Bootstrap.TooltipBoxManager.removeTip(b.get("tip_id"))}),this.$().find("img").load(function(){return b.afterRender()})},afterRender:function(){return this.notifyPropertyChange("content")},realPlacement:function(){var a,b,c,d,e,f,g,h,i,j,k,l;return this.$tip?(k=this.get("placement")||"",e=/\s?auto?\s?/i,d=e.test(k),d&&(k=k.replace(e,"")||"top"),l=this.getPosition(),c=this.$tip[0].offsetWidth,b=this.$tip[0].offsetHeight,d&&(a=this.$element.parent(),g=k,f=document.documentElement.scrollTop||document.body.scrollTop,j=window.innerWidth,h=window.innerHeight,i=0,k="bottom"===k&&l.top+l.height+b-f>h?"top":"top"===k&&l.top-f-b<0?"bottom":"right"===k&&l.right+c>j?"left":"left"===k&&l.left-c
{{#if html}} {{{content}}}{{else}} {{content}}{{/if}}
',Ember.TEMPLATES["components/bs-tooltip"]=Ember.Handlebars.compile(c),Bootstrap.BsPopoverComponent=Ember.Component.extend({layoutName:"components/bs-popover",classNames:"popover",classNameBindings:["fade","in","top","left","right","bottom"],top:function(){return"top"===this.get("realPlacement")}.property("realPlacement"),left:function(){return"left"===this.get("realPlacement")}.property("realPlacement"),right:function(){return"right"===this.get("realPlacement")}.property("realPlacement"),bottom:function(){return"bottom"===this.get("realPlacement")}.property("realPlacement"),titleBinding:"data.title",content:Ember.computed.alias("data.content"),html:!1,delay:0,animation:!0,fade:function(){return this.get("animation")}.property("animation"),"in":function(){return this.get("isVisible")}.property("isVisible"),placement:function(){return this.get("data.placement")||"top"}.property("data.placement"),$element:null,$tip:null,inserted:!1,styleUpdater:function(){var a,b,c,d,e;if(this.$tip&&this.get("isVisible"))return this.$tip.css({top:0,left:0,display:"block"}).addClass(this.get("realPlacement")),d=this.get("realPlacement"),e=this.getPosition(),b=this.$tip[0].offsetWidth,a=this.$tip[0].offsetHeight,c=this.getCalculatedOffset(d,e,b,a),this.$tip.css("top",c.top),this.$tip.css("left",c.left),this.firstTime?(this.firstTime=!1,this.styleUpdater(),this.firstTime=!0):void 0}.observes("content","realPlacement","inserted","isVisible"),init:function(){var a,b;return this._super(),this.set("html",this.get("data.html")||!1),this.set("template",void 0!==this.get("data.template")),this.get("template")?(a="components/bs-popover/_partial-content-"+this.get("tip_id"),b=this.get("data.template"),Ember.TEMPLATES[a]="function"==typeof b?b:Ember.Handlebars.compile(b),this.set("partialTemplateName",a)):void 0},didInsertElement:function(){var a,b=this;return this.$tip=this.$(),a=Bootstrap.TooltipBoxManager.attribute,a="["+a+"='"+this.get("tip_id")+"']",this.$element=$(a),this.set("inserted",!0),"hover"===this.get("data.trigger")&&this.get("data.sticky")&&this.$().on("mouseenter",function(){return clearTimeout(Bootstrap.TooltipBoxManager.timeout)}),this.$().on("mouseleave",function(){return Bootstrap.TooltipBoxManager.removeTip(b.get("tip_id"))}),this.$().find("img").load(function(){return b.afterRender()})},afterRender:function(){return this.notifyPropertyChange("content")},realPlacement:function(){var a,b,c,d,e,f,g,h,i,j,k,l;return this.$tip?(k=this.get("placement")||"",e=/\s?auto?\s?/i,d=e.test(k),d&&(k=k.replace(e,"")||"top"),l=this.getPosition(),c=this.$tip[0].offsetWidth,b=this.$tip[0].offsetHeight,d&&(a=this.$element.parent(),g=k,f=document.documentElement.scrollTop||document.body.scrollTop,j=window.innerWidth,h=window.innerHeight,i=0,k="bottom"===k&&l.top+l.height+b-f>h?"top":"top"===k&&l.top-f-b<0?"bottom":"right"===k&&l.right+c>j?"left":"left"===k&&l.left-c= 1.0.0']; -helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; - var stack1, hashTypes, hashContexts, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, self=this; - -function program1(depth0,data) { - - var buffer = '', stack1, hashContexts, hashTypes, options; - data.buffer.push("\n "); - hashContexts = {'progress': depth0,'type': depth0}; - hashTypes = {'progress': "ID",'type': "ID"}; - options = {hash:{ - 'progress': ("progress"), - 'type': ("type") - },contexts:[],types:[],hashContexts:hashContexts,hashTypes:hashTypes,data:data}; - data.buffer.push(escapeExpression(((stack1 = helpers['bs-progressbar'] || depth0['bs-progressbar']),stack1 ? stack1.call(depth0, options) : helperMissing.call(depth0, "bs-progressbar", options)))); - data.buffer.push("\n"); - return buffer; - } - -function program3(depth0,data) { - - var buffer = '', hashTypes, hashContexts; - data.buffer.push("\n "); - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "yield", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - data.buffer.push("\n"); - return buffer; - } - - hashTypes = {}; - hashContexts = {}; - stack1 = helpers['if'].call(depth0, "default", {hash:{},inverse:self.program(3, program3, data),fn:self.program(1, program1, data),contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}); - if(stack1 || stack1 === 0) { data.buffer.push(stack1); } - else { data.buffer.push(''); } - -}); - -this["Ember"]["TEMPLATES"]["components/bs-progressbar"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) { -this.compilerInfo = [4,'>= 1.0.0']; -helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {}; - var buffer = '', hashTypes, hashContexts, escapeExpression=this.escapeExpression; - +Ember.TEMPLATES["components/bs-progress"] = Ember.HTMLBars.template((function() { + var child0 = (function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, get = hooks.get, inline = hooks.inline; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(fragment,1,1,contextualElement); + inline(env, morph0, context, "bs-progressbar", [], {"progress": get(env, context, "progress"), "type": get(env, context, "type")}); + return fragment; + } + }; + }()); + var child1 = (function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createTextNode(" "); + dom.appendChild(el0, el1); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + var el1 = dom.createTextNode("\n"); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, content = hooks.content; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(fragment,1,1,contextualElement); + content(env, morph0, context, "yield"); + return fragment; + } + }; + }()); + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createComment(""); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, get = hooks.get, block = hooks.block; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(fragment,0,0,contextualElement); + dom.insertBoundary(fragment, null); + dom.insertBoundary(fragment, 0); + block(env, morph0, context, "if", [get(env, context, "default")], {}, child0, child1); + return fragment; + } + }; +}())); - data.buffer.push(""); - hashTypes = {}; - hashContexts = {}; - data.buffer.push(escapeExpression(helpers._triageMustache.call(depth0, "progress", {hash:{},contexts:[depth0],types:["ID"],hashContexts:hashContexts,hashTypes:hashTypes,data:data}))); - data.buffer.push("% Complete"); - return buffer; - -}); \ No newline at end of file +Ember.TEMPLATES["components/bs-progressbar"] = Ember.HTMLBars.template((function() { + return { + isHTMLBars: true, + revision: "Ember@1.11.0", + blockParams: 0, + cachedFragment: null, + hasRendered: false, + build: function build(dom) { + var el0 = dom.createDocumentFragment(); + var el1 = dom.createElement("span"); + dom.setAttribute(el1,"class","sr-only"); + var el2 = dom.createComment(""); + dom.appendChild(el1, el2); + var el2 = dom.createTextNode("% Complete"); + dom.appendChild(el1, el2); + dom.appendChild(el0, el1); + return el0; + }, + render: function render(context, env, contextualElement) { + var dom = env.dom; + var hooks = env.hooks, content = hooks.content; + dom.detectNamespace(contextualElement); + var fragment; + if (env.useFragmentCache && dom.canClone) { + if (this.cachedFragment === null) { + fragment = this.build(dom); + if (this.hasRendered) { + this.cachedFragment = fragment; + } else { + this.hasRendered = true; + } + } + if (this.cachedFragment) { + fragment = dom.cloneNode(this.cachedFragment, true); + } + } else { + fragment = this.build(dom); + } + var morph0 = dom.createMorphAt(dom.childAt(fragment, [0]),0,0); + content(env, morph0, context, "progress"); + return fragment; + } + }; +}())); \ No newline at end of file diff --git a/dist/js/bs-progressbar.min.js b/dist/js/bs-progressbar.min.js index 5507dc2..3c34766 100644 --- a/dist/js/bs-progressbar.min.js +++ b/dist/js/bs-progressbar.min.js @@ -1 +1 @@ -!function(){Bootstrap.BsProgressComponent=Ember.Component.extend({layoutName:"components/bs-progress",classNames:["progress"],classNameBindings:["animated:active","stripped:progress-striped"],progress:null,stripped:!1,animated:!1,"default":function(){return this.progress}.property("progress")}),Ember.Handlebars.helper("bs-progress",Bootstrap.BsProgressComponent)}.call(this),function(){Bootstrap.BsProgressbarComponent=Ember.Component.extend(Bootstrap.TypeSupport,{layoutName:"components/bs-progressbar",classNames:["progress-bar"],attributeBindings:["style","role","aria-valuemin","ariaValueNow:aria-valuenow","aria-valuemax"],classTypePrefix:"progress-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,init:function(){return this._super()},style:function(){return"width:"+this.progress+"%;"}.property("progress").cacheable(),ariaValueNow:function(){return this.progress}.property("progress").cacheable()}),Ember.Handlebars.helper("bs-progressbar",Bootstrap.BsProgressbarComponent)}.call(this),this.Ember=this.Ember||{},this.Ember.TEMPLATES=this.Ember.TEMPLATES||{},this.Ember.TEMPLATES["components/bs-progress"]=Ember.Handlebars.template(function(a,b,c,d,e){function f(a,b){var d,e,f,g,h="";return b.buffer.push("\n "),e={progress:a,type:a},f={progress:"ID",type:"ID"},g={hash:{progress:"progress",type:"type"},contexts:[],types:[],hashContexts:e,hashTypes:f,data:b},b.buffer.push(l((d=c["bs-progressbar"]||a["bs-progressbar"],d?d.call(a,g):k.call(a,"bs-progressbar",g)))),b.buffer.push("\n"),h}function g(a,b){var d,e,f="";return b.buffer.push("\n "),d={},e={},b.buffer.push(l(c._triageMustache.call(a,"yield",{hash:{},contexts:[a],types:["ID"],hashContexts:e,hashTypes:d,data:b}))),b.buffer.push("\n"),f}this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var h,i,j,k=c.helperMissing,l=this.escapeExpression,m=this;i={},j={},h=c["if"].call(b,"default",{hash:{},inverse:m.program(3,g,e),fn:m.program(1,f,e),contexts:[b],types:["ID"],hashContexts:j,hashTypes:i,data:e}),h||0===h?e.buffer.push(h):e.buffer.push("")}),this.Ember.TEMPLATES["components/bs-progressbar"]=Ember.Handlebars.template(function(a,b,c,d,e){this.compilerInfo=[4,">= 1.0.0"],c=this.merge(c,Ember.Handlebars.helpers),e=e||{};var f,g,h="",i=this.escapeExpression;return e.buffer.push(''),f={},g={},e.buffer.push(i(c._triageMustache.call(b,"progress",{hash:{},contexts:[b],types:["ID"],hashContexts:g,hashTypes:f,data:e}))),e.buffer.push("% Complete"),h}); \ No newline at end of file +(function(){Bootstrap.BsProgressComponent=Ember.Component.extend({layoutName:"components/bs-progress",classNames:["progress"],classNameBindings:["animated:active","stripped:progress-striped"],progress:null,stripped:!1,animated:!1,"default":function(){return this.progress}.property("progress")}),Ember.Handlebars.helper("bs-progress",Bootstrap.BsProgressComponent)}).call(this),function(){Bootstrap.BsProgressbarComponent=Ember.Component.extend(Bootstrap.TypeSupport,{layoutName:"components/bs-progressbar",classNames:["progress-bar"],attributeBindings:["style","role","aria-valuemin","ariaValueNow:aria-valuenow","aria-valuemax"],classTypePrefix:"progress-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,init:function(){return this._super()},style:function(){return"width:"+this.progress+"%;"}.property("progress").cacheable(),ariaValueNow:function(){return this.progress}.property("progress").cacheable()}),Ember.Handlebars.helper("bs-progressbar",Bootstrap.BsProgressbarComponent)}.call(this),Ember.TEMPLATES["components/bs-progress"]=Ember.HTMLBars.template(function(){var a=function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createComment("");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.get,g=e.inline;d.detectNamespace(c);var h;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(h=this.build(d),this.hasRendered?this.cachedFragment=h:this.hasRendered=!0),this.cachedFragment&&(h=d.cloneNode(this.cachedFragment,!0))):h=this.build(d);var i=d.createMorphAt(h,1,1,c);return g(b,i,a,"bs-progressbar",[],{progress:f(b,a,"progress"),type:f(b,a,"type")}),h}}}(),b=function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createTextNode(" ");a.appendChild(b,c);var c=a.createComment("");a.appendChild(b,c);var c=a.createTextNode("\n");return a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(g,1,1,c);return f(b,h,a,"yield"),g}}}();return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createComment("");return a.appendChild(b,c),b},render:function(c,d,e){var f=d.dom,g=d.hooks,h=g.get,i=g.block;f.detectNamespace(e);var j;d.useFragmentCache&&f.canClone?(null===this.cachedFragment&&(j=this.build(f),this.hasRendered?this.cachedFragment=j:this.hasRendered=!0),this.cachedFragment&&(j=f.cloneNode(this.cachedFragment,!0))):j=this.build(f);var k=f.createMorphAt(j,0,0,e);return f.insertBoundary(j,null),f.insertBoundary(j,0),i(d,k,c,"if",[h(d,c,"default")],{},a,b),j}}}()),Ember.TEMPLATES["components/bs-progressbar"]=Ember.HTMLBars.template(function(){return{isHTMLBars:!0,revision:"Ember@1.11.0",blockParams:0,cachedFragment:null,hasRendered:!1,build:function(a){var b=a.createDocumentFragment(),c=a.createElement("span");a.setAttribute(c,"class","sr-only");var d=a.createComment("");a.appendChild(c,d);var d=a.createTextNode("% Complete");return a.appendChild(c,d),a.appendChild(b,c),b},render:function(a,b,c){var d=b.dom,e=b.hooks,f=e.content;d.detectNamespace(c);var g;b.useFragmentCache&&d.canClone?(null===this.cachedFragment&&(g=this.build(d),this.hasRendered?this.cachedFragment=g:this.hasRendered=!0),this.cachedFragment&&(g=d.cloneNode(this.cachedFragment,!0))):g=this.build(d);var h=d.createMorphAt(d.childAt(g,[0]),0,0);return f(b,h,a,"progress"),g}}}()); \ No newline at end of file diff --git a/dist/js/bs-wizard.min.js b/dist/js/bs-wizard.min.js index d14abbe..40486d5 100644 --- a/dist/js/bs-wizard.min.js +++ b/dist/js/bs-wizard.min.js @@ -1 +1 @@ -!function(){Bootstrap.BsWizardStep=Bootstrap.ItemView.extend(Bootstrap.ItemSelection,Bootstrap.NavItem,{classNames:["wizard-step"],classNameBindings:["completed"],completed:!1,template:Ember.Handlebars.compile(["{{view view.stepAsLink}}"].join("\n")),stepAsLink:Ember.View.extend({tagName:"a",template:Ember.Handlebars.compile("{{view.parentView.title}}"),attributeBindings:["href"],href:"#"})}),Bootstrap.BsWizardSteps=Bootstrap.ItemsView.extend(Bootstrap.Nav,{navType:"pills",classNames:["wizard-steps"],itemViewClass:Bootstrap.BsWizardStep,currentItemIdx:function(){var a,b,c,d,e,f,g;for(b=this.get("selected"),a=0,g=this._childViews,e=0,f=g.length;f>e;e++){if(d=g[e],d.get("content")===b){c=d;break}a++}return c?a:null}.property("selected")}),Bootstrap.BsWizardStepPane=Bootstrap.ItemPaneView.extend(),Bootstrap.BsWizardStepsPanes=Bootstrap.ItemsPanesView.extend({classNames:["wizard-panes"],itemViewClass:Bootstrap.BsWizardStepPane}),Bootstrap.BsWizardComponent=Ember.ContainerView.extend(Ember.TargetActionSupport,{classNames:["wizard"],childViews:["steps","panes","controls"],prevAllowed:!0,items:function(){var a;return null!=(a=this._childViews)?a[0]:void 0}.property("content"),panes:function(){return this._childViews[1]}.property("content"),steps:Bootstrap.BsWizardSteps.extend({contentBinding:"parentView.content",selectedBinding:"parentView.selected"}),panes:Bootstrap.BsWizardStepsPanes.extend({contentBinding:"parentView.content"}),controls:Ember.ContainerView.extend({childViews:["prev","next","finish"],prev:Bootstrap.BsButtonComponent.extend({layoutName:"components/bs-button",title:"Prev",size:"xs","data-rel":"PREV",isVisible:function(){return this.get("parentView").get("parentView").get("hasPrev")}.property("parentView.parentView.items.selected")}),next:Bootstrap.BsButtonComponent.extend({layoutName:"components/bs-button",title:"Next",size:"xs","data-rel":"NEXT",isVisible:function(){return this.get("parentView").get("parentView").get("hasNext")}.property("parentView.parentView.items.selected")}),finish:Bootstrap.BsButtonComponent.extend({layoutName:"components/bs-button",title:"Finish",size:"xs","data-rel":"FINISH",isVisible:function(){return this.get("parentView").get("parentView").get("isLast")}.property("parentView.parentView.items.selected")})}),currentStepIdx:function(){return this.get("items").get("currentItemIdx")}.property("items.selected"),willInsertElement:function(){return this.get("panes").set("items-id",this.get("items").get("elementId")),this.get("items").set("default",this.get("items")._childViews[0].get("content").get("title"))},click:function(a){var b;return b=a.target.getAttribute("data-rel"),"PREV"===b&&this.prev(),"NEXT"===b&&this.next(),"FINISH"===b?this.close():void 0},next:function(){var a;return this.get("hasNext")?(this.stepCompleted(this.get("currentStepIdx")),a=this.get("currentStepIdx")+1,this.move(a),this.triggerAction({action:"onNext",actionContext:this.get("targetObject")})):void 0},prev:function(){var a;return this.get("hasPrev")?(a=this.get("currentStepIdx")-1,this.stepCompleted(a,!1),this.move(a),this.triggerAction({action:"onPrev",actionContext:this.get("targetObject")})):void 0},move:function(a){var b,c;return null!=(b=this._childViews[0])?b.set("selected",null!=(c=this._childViews[0]._childViews[a])?c.get("content"):void 0):void 0},hasNext:function(){return this.get("items")._childViews.length>this.get("currentStepIdx")+1}.property("currentStepIdx"),hasPrev:function(){return this.get("currentStepIdx")>0,this.get("currentStepIdx")>0&&this.get("prevAllowed")}.property("currentStepIdx"),isLast:function(){return this.get("items")._childViews.length===this.get("currentStepIdx")+1}.property("currentStepIdx"),close:function(){return this.triggerAction({action:"onFinish",actionContext:this.get("targetObject")}),this.destroy()},stepCompleted:function(a,b){return null==b&&(b=!0),this._childViews[0]._childViews[a].set("completed",b)}}),Bootstrap.BsWizardComponent=Bootstrap.BsWizardComponent.reopenClass({build:function(a){var b;return a||(a={}),a.manual=!0,b=this.create(a),b.append()}}),Ember.Handlebars.helper("bs-wizard",Bootstrap.BsWizardComponent)}.call(this); \ No newline at end of file +(function(){Bootstrap.BsWizardStep=Bootstrap.ItemView.extend(Bootstrap.ItemSelection,Bootstrap.NavItem,{classNames:["wizard-step"],classNameBindings:["completed"],completed:!1,template:Ember.Handlebars.compile(["{{view view.stepAsLink}}"].join("\n")),stepAsLink:Ember.View.extend({tagName:"a",template:Ember.Handlebars.compile("{{view.parentView.title}}"),attributeBindings:["href"],href:"#"})}),Bootstrap.BsWizardSteps=Bootstrap.ItemsView.extend(Bootstrap.Nav,{navType:"pills",classNames:["wizard-steps"],itemViewClass:Bootstrap.BsWizardStep,currentItemIdx:function(){var a,b,c,d,e,f,g;for(b=this.get("selected"),a=0,g=this._childViews,e=0,f=g.length;f>e;e++){if(d=g[e],d.get("content")===b){c=d;break}a++}return c?a:null}.property("selected")}),Bootstrap.BsWizardStepPane=Bootstrap.ItemPaneView.extend(),Bootstrap.BsWizardStepsPanes=Bootstrap.ItemsPanesView.extend({classNames:["wizard-panes"],itemViewClass:Bootstrap.BsWizardStepPane}),Bootstrap.BsWizardComponent=Ember.ContainerView.extend(Ember.TargetActionSupport,{classNames:["wizard"],childViews:["steps","panes","controls"],prevAllowed:!0,items:function(){var a;return null!=(a=this._childViews)?a[0]:void 0}.property("content"),panes:function(){return this._childViews[1]}.property("content"),steps:Bootstrap.BsWizardSteps.extend({contentBinding:"parentView.content",selectedBinding:"parentView.selected"}),panes:Bootstrap.BsWizardStepsPanes.extend({contentBinding:"parentView.content"}),controls:Ember.ContainerView.extend({childViews:["prev","next","finish"],prev:Bootstrap.BsButtonComponent.extend({layoutName:"components/bs-button",title:"Prev",size:"xs","data-rel":"PREV",isVisible:function(){return this.get("parentView").get("parentView").get("hasPrev")}.property("parentView.parentView.items.selected")}),next:Bootstrap.BsButtonComponent.extend({layoutName:"components/bs-button",title:"Next",size:"xs","data-rel":"NEXT",isVisible:function(){return this.get("parentView").get("parentView").get("hasNext")}.property("parentView.parentView.items.selected")}),finish:Bootstrap.BsButtonComponent.extend({layoutName:"components/bs-button",title:"Finish",size:"xs","data-rel":"FINISH",isVisible:function(){return this.get("parentView").get("parentView").get("isLast")}.property("parentView.parentView.items.selected")})}),currentStepIdx:function(){return this.get("items").get("currentItemIdx")}.property("items.selected"),willInsertElement:function(){return this.get("panes").set("items-id",this.get("items").get("elementId")),this.get("items").set("default",this.get("items")._childViews[0].get("content").get("title"))},click:function(a){var b;return b=a.target.getAttribute("data-rel"),"PREV"===b&&this.prev(),"NEXT"===b&&this.next(),"FINISH"===b?this.close():void 0},next:function(){var a;return this.get("hasNext")?(this.stepCompleted(this.get("currentStepIdx")),a=this.get("currentStepIdx")+1,this.move(a),this.triggerAction({action:"onNext",actionContext:this.get("targetObject")})):void 0},prev:function(){var a;return this.get("hasPrev")?(a=this.get("currentStepIdx")-1,this.stepCompleted(a,!1),this.move(a),this.triggerAction({action:"onPrev",actionContext:this.get("targetObject")})):void 0},move:function(a){var b,c;return null!=(b=this._childViews[0])?b.set("selected",null!=(c=this._childViews[0]._childViews[a])?c.get("content"):void 0):void 0},hasNext:function(){return this.get("items")._childViews.length>this.get("currentStepIdx")+1}.property("currentStepIdx"),hasPrev:function(){return this.get("currentStepIdx")>0,this.get("currentStepIdx")>0&&this.get("prevAllowed")}.property("currentStepIdx"),isLast:function(){return this.get("items")._childViews.length===this.get("currentStepIdx")+1}.property("currentStepIdx"),close:function(){return this.triggerAction({action:"onFinish",actionContext:this.get("targetObject")}),this.destroy()},stepCompleted:function(a,b){return null==b&&(b=!0),this._childViews[0]._childViews[a].set("completed",b)}}),Bootstrap.BsWizardComponent=Bootstrap.BsWizardComponent.reopenClass({build:function(a){var b;return a||(a={}),a.manual=!0,b=this.create(a),b.append()}}),Ember.Handlebars.helper("bs-wizard",Bootstrap.BsWizardComponent)}).call(this); \ No newline at end of file diff --git a/dist/showcase/scripts/showcase-components.js b/dist/showcase/scripts/showcase-components.js new file mode 100644 index 0000000..362b87f --- /dev/null +++ b/dist/showcase/scripts/showcase-components.js @@ -0,0 +1,33 @@ +!function(a,b){function c(a){var b=a.length,c=ia.type(a);return ia.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||"function"!==c&&(0===b||"number"==typeof b&&b>0&&b-1 in a)}function d(a){var b=xa[a]={};return ia.each(a.match(ka)||[],function(a,c){b[c]=!0}),b}function e(a,c,d,e){if(ia.acceptData(a)){var f,g,h=ia.expando,i="string"==typeof c,j=a.nodeType,k=j?ia.cache:a,l=j?a[h]:a[h]&&h;if(l&&k[l]&&(e||k[l].data)||!i||d!==b)return l||(j?a[h]=l=_.pop()||ia.guid++:l=h),k[l]||(k[l]={},j||(k[l].toJSON=ia.noop)),("object"==typeof c||"function"==typeof c)&&(e?k[l]=ia.extend(k[l],c):k[l].data=ia.extend(k[l].data,c)),f=k[l],e||(f.data||(f.data={}),f=f.data),d!==b&&(f[ia.camelCase(c)]=d),i?(g=f[c],null==g&&(g=f[ia.camelCase(c)])):g=f,g}}function f(a,b,c){if(ia.acceptData(a)){var d,e,f,g=a.nodeType,i=g?ia.cache:a,j=g?a[ia.expando]:ia.expando;if(i[j]){if(b&&(f=c?i[j]:i[j].data)){ia.isArray(b)?b=b.concat(ia.map(b,ia.camelCase)):b in f?b=[b]:(b=ia.camelCase(b),b=b in f?[b]:b.split(" "));for(d=0,e=b.length;e>d;d++)delete f[b[d]];if(!(c?h:ia.isEmptyObject)(f))return}(c||(delete i[j].data,h(i[j])))&&(g?ia.cleanData([a],!0):ia.support.deleteExpando||i!=i.window?delete i[j]:i[j]=null)}}}function g(a,c,d){if(d===b&&1===a.nodeType){var e="data-"+c.replace(za,"-$1").toLowerCase();if(d=a.getAttribute(e),"string"==typeof d){try{d="true"===d?!0:"false"===d?!1:"null"===d?null:+d+""===d?+d:ya.test(d)?ia.parseJSON(d):d}catch(f){}ia.data(a,c,d)}else d=b}return d}function h(a){var b;for(b in a)if(("data"!==b||!ia.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function i(){return!0}function j(){return!1}function k(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}function l(a,b,c){if(b=b||0,ia.isFunction(b))return ia.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return ia.grep(a,function(a){return a===b===c});if("string"==typeof b){var d=ia.grep(a,function(a){return 1===a.nodeType});if(Ra.test(b))return ia.filter(b,d,!c);b=ia.filter(b,d)}return ia.grep(a,function(a){return ia.inArray(a,b)>=0===c})}function m(a){var b=Ua.split("|"),c=a.createDocumentFragment();if(c.createElement)for(;b.length;)c.createElement(b.pop());return c}function n(a,b){return a.getElementsByTagName(b)[0]||a.appendChild(a.ownerDocument.createElement(b))}function o(a){var b=a.getAttributeNode("type");return a.type=(b&&b.specified)+"/"+a.type,a}function p(a){var b=eb.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function q(a,b){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;e>d;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;h>g;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;h>g;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;4>f;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(0>=e||null==e){if(e=lb(a,b,f),(0>e||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("\r\n \r\n
  • \r\n \r\n
  • \r\n \r\n \r\n\r\n')},useData:!0}),Ember.TEMPLATES["tabs/bar-tabpane"]=Ember.HTMLBars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=b.helperMissing,g=this.escapeExpression,h="";return d.buffer.push(g((b["bs-page-header"]||a&&a["bs-page-header"]||f).call(a,{name:"bs-page-header",hash:{sub:"Tab Pane Content",title:"BAR "},hashTypes:{sub:"STRING",title:"STRING"},hashContexts:{sub:a,title:a},types:[],contexts:[],data:d}))),d.buffer.push("\r\nController is: "),e=b._triageMustache.call(a,"controller",{name:"_triageMustache",hash:{},hashTypes:{},hashContexts:{},types:["ID"],contexts:[a],data:d}),null!=e&&d.buffer.push(e),h},useData:!0}),Ember.TEMPLATES["tabs/baz-tabpane"]=Ember.HTMLBars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e=b.helperMissing,f=this.escapeExpression;d.buffer.push(f((b["bs-page-header"]||a&&a["bs-page-header"]||e).call(a,{name:"bs-page-header",hash:{sub:"Tab Pane Content",title:"BAZ"},hashTypes:{sub:"STRING",title:"STRING"},hashContexts:{sub:a,title:a},types:[],contexts:[],data:d})))},useData:!0}),Ember.TEMPLATES["tabs/foo-tabpane"]=Ember.HTMLBars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=b.helperMissing,g=this.escapeExpression,h="";return d.buffer.push(g((b["bs-page-header"]||a&&a["bs-page-header"]||f).call(a,{name:"bs-page-header",hash:{sub:"Tab Pane Content",title:"FOO"},hashTypes:{sub:"STRING",title:"STRING"},hashContexts:{sub:a,title:a},types:[],contexts:[],data:d}))),d.buffer.push("\r\nController is: "),e=b._triageMustache.call(a,"controller",{name:"_triageMustache",hash:{},hashTypes:{},hashContexts:{},types:["ID"],contexts:[a],data:d}),null!=e&&d.buffer.push(e),h},useData:!0}),Ember.TEMPLATES.user=Ember.HTMLBars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e,f=b.helperMissing,g=this.escapeExpression,h="";return d.buffer.push(g((b["bs-tabs"]||a&&a["bs-tabs"]||f).call(a,{name:"bs-tabs",hash:{contentBinding:"tabsMeta"},hashTypes:{contentBinding:"STRING"},hashContexts:{contentBinding:a},types:[],contexts:[],data:d}))),d.buffer.push("\r\n\r\n"),e=b._triageMustache.call(a,"outlet",{name:"_triageMustache",hash:{},hashTypes:{},hashContexts:{},types:["ID"],contexts:[a],data:d}),null!=e&&d.buffer.push(e),h},useData:!0}),Ember.TEMPLATES["user/activities"]=Ember.HTMLBars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e=b.helperMissing,f=this.escapeExpression;d.buffer.push(f((b["bs-page-header"]||a&&a["bs-page-header"]||e).call(a,{name:"bs-page-header",hash:{sub:"User latest Activities",title:"Activities"},hashTypes:{sub:"STRING",title:"STRING"},hashContexts:{sub:a,title:a},types:[],contexts:[],data:d})))},useData:!0}),Ember.TEMPLATES["user/general"]=Ember.HTMLBars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e=b.helperMissing,f=this.escapeExpression;d.buffer.push(f((b["bs-page-header"]||a&&a["bs-page-header"]||e).call(a,{name:"bs-page-header",hash:{sub:"User general details",title:"General"},hashTypes:{sub:"STRING",title:"STRING"},hashContexts:{sub:a,title:a},types:[],contexts:[],data:d})))},useData:!0}),Ember.TEMPLATES["user/privacy"]=Ember.HTMLBars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){var e=b.helperMissing,f=this.escapeExpression;d.buffer.push(f((b["bs-page-header"]||a&&a["bs-page-header"]||e).call(a,{name:"bs-page-header",hash:{sub:"User Privacy details",title:"Privacy"},hashTypes:{sub:"STRING",title:"STRING"},hashContexts:{sub:a,title:a},types:[],contexts:[],data:d})))},useData:!0}),Ember.TEMPLATES["wizard/step1"]=Ember.HTMLBars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){d.buffer.push("

    Step1

    ")},useData:!0}),Ember.TEMPLATES["wizard/step2"]=Ember.HTMLBars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){d.buffer.push("

    Step 2

    ")},useData:!0}),Ember.TEMPLATES["wizard/step3"]=Ember.HTMLBars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,b,c,d){d.buffer.push("

    Step 3

    ")},useData:!0}),function(){!function(){var a,b;a=window.Bootstrap,b=window.Showcase=Ember.Application.create({LOG_TRANSITIONS:!0,LOG_VIEW_LOOKUPS:!0,LOG_ACTIVE_GENERATION:!0}),Ember.ENV={HELPER_PARAM_LOOKUPS:!0},Ember.Handlebars.registerHelper("raw",function(a){return a.fn(a)})}(),function(){(function(){Showcase.Router.map(function(){return this.resource("show_components",function(){return this.route("alert"),this.route("breadcrumbs"),this.route("modal"),this.route("label"),this.route("badge"),this.route("well"),this.route("list-group"),this.route("panel"),this.route("page-header"),this.route("button"),this.route("buttonGroup"),this.route("progressbar"),this.route("pills"),this.route("tabs"),this.route("tabs-panes"),this.route("wizard"),this.route("items_action_bar"),this.route("tabs-with-routes"),this.route("notifications"),this.route("growl-notif"),this.route("popover"),this.resource("user",function(){return this.route("general"),this.route("privacy"),this.route("activities")})})})}).call(this)}(),function(){(function(){Showcase.ApplicationRoute=Ember.Route.extend({model:function(){return[Ember.Object.create({title:"Alert",route:"show_components.alert"}),Ember.Object.create({title:"Breadcrumbs",route:"show_components.breadcrumbs","new":!0}),Ember.Object.create({title:"Modal",route:"show_components.modal"}),Ember.Object.create({title:"Label",route:"show_components.label"}),Ember.Object.create({title:"Badge",route:"show_components.badge"}),Ember.Object.create({title:"Well",route:"show_components.well"}),Ember.Object.create({title:"List Group",route:"show_components.list-group"}),Ember.Object.create({title:"Panel",route:"show_components.panel"}),Ember.Object.create({title:"Page Header",route:"show_components.page-header"}),Ember.Object.create({title:"Button",route:"show_components.button"}),Ember.Object.create({title:"Button Group",route:"show_components.buttonGroup"}),Ember.Object.create({title:"Progressbar",route:"show_components.progressbar"}),Ember.Object.create({title:"Tooltips & Popover","new":!0,route:"show_components.popover"}),Ember.Object.create({title:"Nav - Pills",route:"show_components.pills"}),Ember.Object.create({title:"Nav - Tabs",route:"show_components.tabs"}),Ember.Object.create({title:"Nav - Tabs Panes",route:"show_components.tabs-panes"}),Ember.Object.create({title:"Nav - Tabs with Routes",special:!0,route:"show_components.tabs-with-routes"}),Ember.Object.create({title:"Wizard",special:!0,route:"show_components.wizard"}),Ember.Object.create({title:"Notifications",special:!0,route:"show_components.notifications"}),Ember.Object.create({title:"Items Action Bar","new":!0,route:"show_components.items_action_bar"}),Ember.Object.create({title:"Growl Notifications",special:!0,route:"show_components.growl-notif"})]}})}).call(this)}(),function(){(function(){Showcase.ShowComponentsPopoverRoute=Ember.Route.extend({renderTemplate:function(){var a;return this.render(),a=this.controllerFor("ShowComponentsTooltipBox"),this.render("bs-tooltip-box",{outlet:"bs-tooltip-box",controller:a,into:"application"})}})}).call(this)}(),function(){(function(){Showcase.ShowComponentsAlertController=Ember.Controller.extend({actions:{submit:function(){return alert("Action taken by controller!")},didAlertClosed:function(){return alert("From controller: The -closed- event was triggered.")},didAlertClose:function(){return alert("From controller: The -close- event was triggered.")}}})}).call(this)}(),function(){(function(){Showcase.ShowComponentsButtonController=Ember.Controller.extend({isButtonDisabled:!1,loadingState:null,loadingState1:null,actions:{disableButton:function(){return this.set("isButtonDisabled",!0)},startLoading:function(){var a=this;return this.set("loadingState","loading"),Ember.run.later(function(){return a.set("loadingState",null)},2e3)},startLoading1:function(){var a=this;return this.set("loadingState1","loading"),Ember.run.later(function(){return a.set("loadingState1","completed")},2e3)},buttonWithParam:function(a){return alert("Passed controller as a param: "+a)}}})}).call(this)}(),function(){(function(){Showcase.ShowComponentsItemsActionBarController=Ember.Controller.extend({actionsInBar:[[{title:"To Alerts",disabled:function(a){var b;return a.size<1||"Alerts"!==(null!=a&&null!=(b=a[0])?b.title:void 0)?!0:void 0},transitionTo:"show_components.alert"},{title:"To Panels",transitionTo:"show_components.panel",disabled:function(a){var b;return a.size<1||"Panels"!==(null!=a&&null!=(b=a[0])?b.title:void 0)?!0:void 0}}],[{title:"To Wizard",disabled:function(a){var b;return a.size<1||"Wizards"!==(null!=a&&null!=(b=a[0])?b.title:void 0)?!0:void 0},clickActionName:"wizard"}]],actions:{wizard:function(a){return alert("Wizard pressed!")}},items:[Ember.Object.create({title:"Alerts"}),Ember.Object.create({title:"Panels"}),Ember.Object.create({title:"Wizards"})]})}).call(this)}(),function(){(function(){Showcase.ShowComponentsPanelController=Ember.Controller.extend({actions:{panelClicked:function(){return alert("Hello from controller: A click in a panel!")},panelClosed:function(){return alert("Hello from controller: The panel was closed!")}}})}).call(this)}(),function(){(function(){Showcase.ShowComponentsPopoverController=Ember.Controller.extend({testObject:Ember.Object.createWithMixins({sticky:function(){return Ember.Object.create({user:this,content:"know this is a sticky tooltip! You can hover over it.",trigger:"hover",sticky:!0})}.property()}),user:Ember.Object.create({firstNameBinding:"content.name",title:"rename",template:'name: {{input type="text" value=content.name}}',content:{name:"John"},trigger:"hover",sticky:!0}),hoverPop:Ember.Object.create({title:"I'm a title!",content:"And i'm a content!",trigger:"hover",placement:"right",sticky:!0}),clickPop:Ember.Object.create({title:"Clickable!",content:"

    Hello

    This is a clickable popover with html content!",placement:"left",html:!0}),templPop:Ember.Object.create({firstName:"numbers",title:"Popover with Template",template:"numbers:
      {{#each val in content.numbers}}
    • {{val}}
    • {{/each}}
    ",content:{numbers:[1,2,3]}})})}).call(this)}(),function(){(function(){Showcase.ShowComponentsProgressbarController=Ember.Controller.extend({prog:0,incrementBy:20,actions:{increment:function(){return this.prog<100?this.incrementProperty("prog",this.incrementBy):this.set("prog",this.incrementBy)}}})}).call(this)}(),function(){(function(){Showcase.ShowComponentsTooltipBoxController=Bootstrap.TooltipBoxController}).call(this)}(),function(){(function(){Showcase.ShowComponentsWellController=Ember.Controller.extend({wellClick:function(){return alert("Hello from controller: A click in a well!")}})}).call(this)}(),function(){(function(){Showcase.ShowComponentsButtonGroupController=Ember.Controller.extend({options:["Home","Profile","Messages"],options2:["Admin","Settings"],optionsWithMeta:[Ember.Object.create({title:"Create",type:"primary"}),Ember.Object.create({title:"Destroy",type:"danger"})]})}).call(this)}(),function(){(function(){Showcase.ShowComponentsPillsController=Ember.Controller.extend({content:["Home","Profile","Messages"],init:function(){return this._super(),this.set("content1",Ember.A([Ember.Object.create({title:"Home","default":!0,disabled:!1}),Ember.Object.create({title:"Admin",disabled:!0})])),this.set("selected1",this.get("content1").objectAt(0))},contentChanged:function(){return console.log("Selection has changed to: "+this.get("selected"))}.observes("selected"),actions:{disableHome:function(){return this.get("content1").objectAt(0).set("disabled",!0)}}})}).call(this)}(),function(){(function(){Showcase.ShowComponentsGrowlNotifController=Ember.Controller.extend({actions:{pushInfo:function(){return Bootstrap.GNM.push("INFO!","Hello, this is just an info message.","info")},pushSuccess:function(){return Bootstrap.GNM.push("SUCCESS!","Successfully performed operation!","success")},pushWarn:function(){return Bootstrap.GNM.push("WARN!","Could not perform operation!","warning")},pushDanger:function(){return Bootstrap.GNM.push("Danger!","System is halting!","danger")}}})}).call(this)}(),function(){(function(){Showcase.ShowComponentsListGroupController=Ember.Controller.extend({listSimple:Ember.A(["Cras justo odio","Dapibus ac facilisis in","Morbi leo risus"]),listWithBadges:Ember.A([Ember.Object.create({title:"Inbox",badge:"45"}),Ember.Object.create({title:"Sent",badge:"33"})]),listWithSub:Ember.A([Ember.Object.create({title:"Inbox",sub:"Incoming mails folder",badge:"45"}),Ember.Object.create({title:"Sent",sub:"Sent emails folder",badge:"33"})])})}).call(this)}(),function(){(function(){Showcase.ShowComponentsModalController=Ember.Controller.extend({message:"Welcome to Bootstrap for Ember..!",myModalButtons:[Ember.Object.create({title:"Submit",clicked:"submit"}),Ember.Object.create({title:"Cancel",clicked:"cancel",dismiss:"modal"})],manualButtons:[Ember.Object.create({title:"Submit",clicked:"submitManual"}),Ember.Object.create({title:"Cancel",dismiss:"modal"})],actions:{submit:function(){return Bootstrap.NM.push("Successfully submitted modal","success"),Bootstrap.ModalManager.hide("myModal")},cancel:function(){return Bootstrap.NM.push("Modal was cancelled","info")},show:function(){return Bootstrap.ModalManager.show("myModal")},submitManual:function(){return Bootstrap.NM.push("Modal destroyed!","success"),Bootstrap.ModalManager.close("manualModal")},createModalProgramatically:function(){var a;return a=Ember.View.extend({template:Ember.Handlebars.compile("This is a programatic ")}),Bootstrap.ModalManager.open("manualModal","Hello","demo-template",this.manualButtons,this)},confirm:function(){return Bootstrap.ModalManager.confirm(this)},modalConfirmed:function(){return Bootstrap.NM.push("Confirmed!","success")},modalCanceled:function(){return Bootstrap.NM.push("Cancelled!","info")}}})}).call(this)}(),function(){(function(){Showcase.ShowComponentsNotificationsController=Ember.Controller.extend({actions:{pushInfo:function(){return Bootstrap.NM.push("Hello, this is just an info message.","info")},pushWarn:function(){return Bootstrap.NM.push("Could not perform operation!","warning")},pushSuccess:function(){return Bootstrap.NM.push("Successfully performed operation!","success")},pushDanger:function(){return Bootstrap.NM.push("Danger! system is halting!","danger")}}})}).call(this)}(),function(){(function(){Showcase.ShowComponentsTabsController=Ember.Controller.extend({content:["Home","Profile","Messages"],init:function(){return this._super(),this.set("selected","Home"),this.set("tabsPanesOptions",Ember.A([Ember.Object.create({title:"Foo",template:"tabs/foo-tabpane"}),Ember.Object.create({title:"Bar",template:"tabs/bar-tabpane"})]))}})}).call(this)}(),function(){(function(){Showcase.ShowcaseComponentsTabsFooController=Ember.Controller.extend()}).call(this)}(),function(){(function(){Showcase.ShowComponentsTabsPanesController=Ember.Controller.extend({tabsMeta:Ember.A([Ember.Object.create({title:"Foo",template:"tabs/foo-tabpane",controller:"ShowcaseComponentsTabsFoo"}),Ember.Object.create({title:"Bar",template:"tabs/bar-tabpane"})])})}).call(this)}(),function(){(function(){Showcase.ShowComponentsWizardController=Ember.Controller.extend({init:function(){return this._super(),this.set("steps",Ember.A([Ember.Object.create({title:"Foo",template:"tabs/foo-tabpane"}),Ember.Object.create({title:"Bar",template:"tabs/bar-tabpane"}),Ember.Object.create({title:"Baz",template:"tabs/baz-tabpane"})])),this.set("stepsNoPrev",Ember.A([Ember.Object.create({title:"Step1",template:"tabs/foo-tabpane",disabled:!0}),Ember.Object.create({title:"Step2",template:"tabs/bar-tabpane",disabled:!0}),Ember.Object.create({title:"Step3",template:"tabs/baz-tabpane",disabled:!0})]))},actions:{createWizard:function(){var a;return a=Bootstrap.BsWizardComponent.extend({content:[Ember.Object.create({title:"Step1",template:"wizard/step1",disabled:!0}),Ember.Object.create({title:"Step2",template:"wizard/step2",disabled:!0}),Ember.Object.create({title:"Step3",template:"wizard/step3",disabled:!0})],targetObject:this,onNext:"onNext",onPrev:"onPrev",onFinish:"onFinish"}),Bootstrap.ModalManager.open("manualModal","Wizard Title...",a,null,this)},onNext:function(){return console.log("NEXT")},onPrev:function(){return console.log("PREV")},onFinish:function(){return Bootstrap.ModalManager.close("manualModal"),Bootstrap.NM.push("Wizard completed!")}}})}).call(this)}(),function(){(function(){Showcase.UserController=Ember.Controller.extend({tabsMeta:[Ember.Object.create({title:"General",linkTo:"user.general"}),Ember.Object.create({title:"Privacy",linkTo:"user.privacy"}),Ember.Object.create({title:"Activities",linkTo:"user.activities"})]})}).call(this)}(),function(){}.call(this)}(); \ No newline at end of file diff --git a/dist/showcase/scripts/vendor/modernizr.js b/dist/showcase/scripts/vendor/modernizr.js new file mode 100644 index 0000000..421f8b9 --- /dev/null +++ b/dist/showcase/scripts/vendor/modernizr.js @@ -0,0 +1 @@ +window.Modernizr=function(a,b,c){function d(a){t.cssText=a}function e(a,b){return d(x.join(a+";")+(b||""))}function f(a,b){return typeof a===b}function g(a,b){return!!~(""+a).indexOf(b)}function h(a,b){for(var d in a){var e=a[d];if(!g(e,"-")&&t[e]!==c)return"pfx"==b?e:!0}return!1}function i(a,b,d){for(var e in a){var g=b[a[e]];if(g!==c)return d===!1?a[e]:f(g,"function")?g.bind(d||b):g}return!1}function j(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+z.join(d+" ")+d).split(" ");return f(b,"string")||f(b,"undefined")?h(e,b):(e=(a+" "+A.join(d+" ")+d).split(" "),i(e,b,c))}function k(){o.input=function(c){for(var d=0,e=c.length;e>d;d++)E[c[d]]=!!(c[d]in u);return E.list&&(E.list=!(!b.createElement("datalist")||!a.HTMLDataListElement)),E}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),o.inputtypes=function(a){for(var d,e,f,g=0,h=a.length;h>g;g++)u.setAttribute("type",e=a[g]),d="text"!==u.type,d&&(u.value=v,u.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(e)&&u.style.WebkitAppearance!==c?(q.appendChild(u),f=b.defaultView,d=f.getComputedStyle&&"textfield"!==f.getComputedStyle(u,null).WebkitAppearance&&0!==u.offsetHeight,q.removeChild(u)):/^(search|tel)$/.test(e)||(d=/^(url|email)$/.test(e)?u.checkValidity&&u.checkValidity()===!1:u.value!=v)),D[a[g]]=!!d;return D}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var l,m,n="2.6.3",o={},p=!0,q=b.documentElement,r="modernizr",s=b.createElement(r),t=s.style,u=b.createElement("input"),v=":)",w={}.toString,x=" -webkit- -moz- -o- -ms- ".split(" "),y="Webkit Moz O ms",z=y.split(" "),A=y.toLowerCase().split(" "),B={svg:"http://www.w3.org/2000/svg"},C={},D={},E={},F=[],G=F.slice,H=function(a,c,d,e){var f,g,h,i,j=b.createElement("div"),k=b.body,l=k||b.createElement("body");if(parseInt(d,10))for(;d--;)h=b.createElement("div"),h.id=e?e[d]:r+(d+1),j.appendChild(h);return f=["­",'"].join(""),j.id=r,(k?j:l).innerHTML+=f,l.appendChild(j),k||(l.style.background="",l.style.overflow="hidden",i=q.style.overflow,q.style.overflow="hidden",q.appendChild(l)),g=c(j,a),k?j.parentNode.removeChild(j):(l.parentNode.removeChild(l),q.style.overflow=i),!!g},I=function(b){var c=a.matchMedia||a.msMatchMedia;if(c)return c(b).matches;var d;return H("@media "+b+" { #"+r+" { position: absolute; } }",function(b){d="absolute"==(a.getComputedStyle?getComputedStyle(b,null):b.currentStyle).position}),d},J=function(){function a(a,e){e=e||b.createElement(d[a]||"div"),a="on"+a;var g=a in e;return g||(e.setAttribute||(e=b.createElement("div")),e.setAttribute&&e.removeAttribute&&(e.setAttribute(a,""),g=f(e[a],"function"),f(e[a],"undefined")||(e[a]=c),e.removeAttribute(a))),e=null,g}var d={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return a}(),K={}.hasOwnProperty;m=f(K,"undefined")||f(K.call,"undefined")?function(a,b){return b in a&&f(a.constructor.prototype[b],"undefined")}:function(a,b){return K.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(a){var b=this;if("function"!=typeof b)throw new TypeError;var c=G.call(arguments,1),d=function(){if(this instanceof d){var e=function(){};e.prototype=b.prototype;var f=new e,g=b.apply(f,c.concat(G.call(arguments)));return Object(g)===g?g:f}return b.apply(a,c.concat(G.call(arguments)))};return d}),C.flexbox=function(){return j("flexWrap")},C.flexboxlegacy=function(){return j("boxDirection")},C.canvas=function(){var a=b.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))},C.canvastext=function(){return!(!o.canvas||!f(b.createElement("canvas").getContext("2d").fillText,"function"))},C.webgl=function(){return!!a.WebGLRenderingContext},C.touch=function(){var c;return"ontouchstart"in a||a.DocumentTouch&&b instanceof DocumentTouch?c=!0:H(["@media (",x.join("touch-enabled),("),r,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(a){c=9===a.offsetTop}),c},C.geolocation=function(){return"geolocation"in navigator},C.postmessage=function(){return!!a.postMessage},C.websqldatabase=function(){return!!a.openDatabase},C.indexedDB=function(){return!!j("indexedDB",a)},C.hashchange=function(){return J("hashchange",a)&&(b.documentMode===c||b.documentMode>7)},C.history=function(){return!(!a.history||!history.pushState)},C.draganddrop=function(){var a=b.createElement("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},C.websockets=function(){return"WebSocket"in a||"MozWebSocket"in a},C.rgba=function(){return d("background-color:rgba(150,255,150,.5)"),g(t.backgroundColor,"rgba")},C.hsla=function(){return d("background-color:hsla(120,40%,100%,.5)"),g(t.backgroundColor,"rgba")||g(t.backgroundColor,"hsla")},C.multiplebgs=function(){return d("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(t.background)},C.backgroundsize=function(){return j("backgroundSize")},C.borderimage=function(){return j("borderImage")},C.borderradius=function(){return j("borderRadius")},C.boxshadow=function(){return j("boxShadow")},C.textshadow=function(){return""===b.createElement("div").style.textShadow},C.opacity=function(){return e("opacity:.55"),/^0.55$/.test(t.opacity)},C.cssanimations=function(){return j("animationName")},C.csscolumns=function(){return j("columnCount")},C.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return d((a+"-webkit- ".split(" ").join(b+a)+x.join(c+a)).slice(0,-a.length)),g(t.backgroundImage,"gradient")},C.cssreflections=function(){return j("boxReflect")},C.csstransforms=function(){return!!j("transform")},C.csstransforms3d=function(){var a=!!j("perspective");return a&&"webkitPerspective"in q.style&&H("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(b,c){a=9===b.offsetLeft&&3===b.offsetHeight}),a},C.csstransitions=function(){return j("transition")},C.fontface=function(){var a;return H('@font-face {font-family:"font";src:url("https://")}',function(c,d){var e=b.getElementById("smodernizr"),f=e.sheet||e.styleSheet,g=f?f.cssRules&&f.cssRules[0]?f.cssRules[0].cssText:f.cssText||"":"";a=/src/i.test(g)&&0===g.indexOf(d.split(" ")[0])}),a},C.generatedcontent=function(){var a;return H(["#",r,"{font:0/0 a}#",r,':after{content:"',v,'";visibility:hidden;font:3px/1 a}'].join(""),function(b){a=b.offsetHeight>=3}),a},C.video=function(){var a=b.createElement("video"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(d){}return c},C.audio=function(){var a=b.createElement("audio"),c=!1;try{(c=!!a.canPlayType)&&(c=new Boolean(c),c.ogg=a.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),c.mp3=a.canPlayType("audio/mpeg;").replace(/^no$/,""),c.wav=a.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),c.m4a=(a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(d){}return c},C.localstorage=function(){try{return localStorage.setItem(r,r),localStorage.removeItem(r),!0}catch(a){return!1}},C.sessionstorage=function(){try{return sessionStorage.setItem(r,r),sessionStorage.removeItem(r),!0}catch(a){return!1}},C.webworkers=function(){return!!a.Worker},C.applicationcache=function(){return!!a.applicationCache},C.svg=function(){return!!b.createElementNS&&!!b.createElementNS(B.svg,"svg").createSVGRect},C.inlinesvg=function(){var a=b.createElement("div");return a.innerHTML="",(a.firstChild&&a.firstChild.namespaceURI)==B.svg},C.smil=function(){return!!b.createElementNS&&/SVGAnimate/.test(w.call(b.createElementNS(B.svg,"animate")))},C.svgclippaths=function(){return!!b.createElementNS&&/SVGClipPath/.test(w.call(b.createElementNS(B.svg,"clipPath")))};for(var L in C)m(C,L)&&(l=L.toLowerCase(),o[l]=C[L](),F.push((o[l]?"":"no-")+l));return o.input||k(),o.addTest=function(a,b){if("object"==typeof a)for(var d in a)m(a,d)&&o.addTest(d,a[d]);else{if(a=a.toLowerCase(),o[a]!==c)return o;b="function"==typeof b?b():b,"undefined"!=typeof p&&p&&(q.className+=" "+(b?"":"no-")+a),o[a]=b}return o},d(""),s=u=null,function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=r.elements;return"string"==typeof a?a.split(" "):a}function e(a){var b=q[a[o]];return b||(b={},p++,a[o]=p,q[p]=b),b}function f(a,c,d){if(c||(c=b),k)return c.createElement(a);d||(d=e(c));var f;return f=d.cache[a]?d.cache[a].cloneNode():n.test(a)?(d.cache[a]=d.createElem(a)).cloneNode():d.createElem(a),f.canHaveChildren&&!m.test(a)?d.frag.appendChild(f):f}function g(a,c){if(a||(a=b),k)return a.createDocumentFragment();c=c||e(a);for(var f=c.frag.cloneNode(),g=0,h=d(),i=h.length;i>g;g++)f.createElement(h[g]);return f}function h(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return r.shivMethods?f(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+d().join().replace(/\w+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(r,b.frag)}function i(a){a||(a=b);var d=e(a);return!r.shivCSS||j||d.hasCSS||(d.hasCSS=!!c(a,"article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}mark{background:#FF0;color:#000}")),k||h(a,d),a}var j,k,l=a.html5||{},m=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,n=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,o="_html5shiv",p=0,q={};!function(){try{var a=b.createElement("a");a.innerHTML="",j="hidden"in a,k=1==a.childNodes.length||function(){b.createElement("a");var a=b.createDocumentFragment();return"undefined"==typeof a.cloneNode||"undefined"==typeof a.createDocumentFragment||"undefined"==typeof a.createElement}()}catch(c){j=!0,k=!0}}();var r={elements:l.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",shivCSS:l.shivCSS!==!1,supportsUnknownElements:k,shivMethods:l.shivMethods!==!1,type:"default",shivDocument:i,createElement:f,createDocumentFragment:g};a.html5=r,i(b)}(this,b),o._version=n,o._prefixes=x,o._domPrefixes=A,o._cssomPrefixes=z,o.mq=I,o.hasEvent=J,o.testProp=function(a){return h([a])},o.testAllProps=j,o.testStyles=H,o.prefixed=function(a,b,c){return b?j(a,b,c):j(a,"pfx")},q.className=q.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(p?" js "+F.join(" "):""),o}(this,this.document); \ No newline at end of file diff --git a/dist/showcase/styles/main.css b/dist/showcase/styles/main.css new file mode 100644 index 0000000..377484a --- /dev/null +++ b/dist/showcase/styles/main.css @@ -0,0 +1,12 @@ +body{padding-top:70px}footer{padding-left:15px;padding-right:15px}/*! + * Bootstrap v3.0.0 + * + * Copyright 2013 Twitter, Inc + * Licensed under the Apache License v2.0 + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Designed and built with all the love in the world by @mdo and @fat. + *//*! normalize.css v2.1.0 | MIT License | git.io/normalize */article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block}audio:not([controls]){display:none;height:0}[hidden]{display:none}html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}a:focus{outline:thin dotted}a:active,a:hover{outline:0}h1{margin:.67em 0;font-size:2em}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}hr{height:0;-moz-box-sizing:content-box;box-sizing:content-box}mark{color:#000;background:#ff0}code,kbd,pre,samp{font-family:monospace,serif;font-size:1em}pre{white-space:pre-wrap}q{quotes:"\201C" "\201D" "\2018" "\2019"}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:0}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}button,input,select,textarea{margin:0;font-family:inherit;font-size:100%}button,input{line-height:normal}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}button[disabled],html input[disabled]{cursor:default}input[type=checkbox],input[type=radio]{padding:0;box-sizing:border-box}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}textarea{overflow:auto;vertical-align:top}table{border-collapse:collapse;border-spacing:0}@media print{*{color:#000!important;text-shadow:none!important;background:transparent!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}.ir a:after,a[href^="javascript:"]:after,a[href^="#"]:after{content:""}pre,blockquote{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}img{max-width:100%!important}@page{margin:2cm .5cm}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.table td,.table th{background-color:#fff!important}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table-bordered th,.table-bordered td{border:1px solid #ddd!important}}*,:before,:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:62.5%;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.428571429;color:#333;background-color:#fff}input,button,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}button,input,select[multiple],textarea{background-image:none}a{color:#428bca;text-decoration:none}a:hover,a:focus{color:#2a6496;text-decoration:underline}a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}img{vertical-align:middle}.img-responsive{display:block;height:auto;max-width:100%}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;height:auto;max-width:100%;padding:4px;line-height:1.428571429;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16.099999999999998px;font-weight:200;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}small{font-size:85%}cite{font-style:normal}.text-muted{color:#999}.text-primary{color:#428bca}.text-warning{color:#c09853}.text-danger{color:#b94a48}.text-success{color:#468847}.text-info{color:#3a87ad}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:500;line-height:1.1}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small{font-weight:400;line-height:1;color:#999}h1,h2,h3{margin-top:20px;margin-bottom:10px}h4,h5,h6{margin-top:10px;margin-bottom:10px}h1,.h1{font-size:36px}h2,.h2{font-size:30px}h3,.h3{font-size:24px}h4,.h4{font-size:18px}h5,.h5{font-size:14px}h6,.h6{font-size:12px}h1 small,.h1 small{font-size:24px}h2 small,.h2 small{font-size:18px}h3 small,.h3 small,h4 small,.h4 small{font-size:14px}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ul,ol{margin-top:0;margin-bottom:10px}ul ul,ol ul,ul ol,ol ol{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-bottom:20px}dt,dd{line-height:1.428571429}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}.dl-horizontal dd:before,.dl-horizontal dd:after{display:table;content:" "}.dl-horizontal dd:after{clear:both}}abbr[title],abbr[data-original-title]{cursor:help;border-bottom:1px dotted #999}abbr.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;border-left:5px solid #eee}blockquote p{font-size:17.5px;font-weight:300;line-height:1.25}blockquote p:last-child{margin-bottom:0}blockquote small{display:block;line-height:1.428571429;color:#999}blockquote small:before{content:'\2014 \00A0'}blockquote.pull-right{padding-right:15px;padding-left:0;border-right:5px solid #eee;border-left:0}blockquote.pull-right p,blockquote.pull-right small{text-align:right}blockquote.pull-right small:before{content:''}blockquote.pull-right small:after{content:'\00A0 \2014'}q:before,q:after,blockquote:before,blockquote:after{content:""}address{display:block;margin-bottom:20px;font-style:normal;line-height:1.428571429}code,pre{font-family:Monaco,Menlo,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;white-space:nowrap;background-color:#f9f2f4;border-radius:4px}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.428571429;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre.prettyprint{margin-bottom:20px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}.container:before,.container:after{display:table;content:" "}.container:after{clear:both}.row{margin-right:-15px;margin-left:-15px}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}.row:before,.row:after{display:table;content:" "}.row:after{clear:both}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11,.col-xs-12,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9,.col-xs-10,.col-xs-11{float:left}.col-xs-1{width:8.333333333333332%}.col-xs-2{width:16.666666666666664%}.col-xs-3{width:25%}.col-xs-4{width:33.33333333333333%}.col-xs-5{width:41.66666666666667%}.col-xs-6{width:50%}.col-xs-7{width:58.333333333333336%}.col-xs-8{width:66.66666666666666%}.col-xs-9{width:75%}.col-xs-10{width:83.33333333333334%}.col-xs-11{width:91.66666666666666%}.col-xs-12{width:100%}@media (min-width:768px){.container{max-width:750px}.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11{float:left}.col-sm-1{width:8.333333333333332%}.col-sm-2{width:16.666666666666664%}.col-sm-3{width:25%}.col-sm-4{width:33.33333333333333%}.col-sm-5{width:41.66666666666667%}.col-sm-6{width:50%}.col-sm-7{width:58.333333333333336%}.col-sm-8{width:66.66666666666666%}.col-sm-9{width:75%}.col-sm-10{width:83.33333333333334%}.col-sm-11{width:91.66666666666666%}.col-sm-12{width:100%}.col-sm-push-1{left:8.333333333333332%}.col-sm-push-2{left:16.666666666666664%}.col-sm-push-3{left:25%}.col-sm-push-4{left:33.33333333333333%}.col-sm-push-5{left:41.66666666666667%}.col-sm-push-6{left:50%}.col-sm-push-7{left:58.333333333333336%}.col-sm-push-8{left:66.66666666666666%}.col-sm-push-9{left:75%}.col-sm-push-10{left:83.33333333333334%}.col-sm-push-11{left:91.66666666666666%}.col-sm-pull-1{right:8.333333333333332%}.col-sm-pull-2{right:16.666666666666664%}.col-sm-pull-3{right:25%}.col-sm-pull-4{right:33.33333333333333%}.col-sm-pull-5{right:41.66666666666667%}.col-sm-pull-6{right:50%}.col-sm-pull-7{right:58.333333333333336%}.col-sm-pull-8{right:66.66666666666666%}.col-sm-pull-9{right:75%}.col-sm-pull-10{right:83.33333333333334%}.col-sm-pull-11{right:91.66666666666666%}.col-sm-offset-1{margin-left:8.333333333333332%}.col-sm-offset-2{margin-left:16.666666666666664%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-4{margin-left:33.33333333333333%}.col-sm-offset-5{margin-left:41.66666666666667%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-7{margin-left:58.333333333333336%}.col-sm-offset-8{margin-left:66.66666666666666%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-10{margin-left:83.33333333333334%}.col-sm-offset-11{margin-left:91.66666666666666%}}@media (min-width:992px){.container{max-width:970px}.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11{float:left}.col-md-1{width:8.333333333333332%}.col-md-2{width:16.666666666666664%}.col-md-3{width:25%}.col-md-4{width:33.33333333333333%}.col-md-5{width:41.66666666666667%}.col-md-6{width:50%}.col-md-7{width:58.333333333333336%}.col-md-8{width:66.66666666666666%}.col-md-9{width:75%}.col-md-10{width:83.33333333333334%}.col-md-11{width:91.66666666666666%}.col-md-12{width:100%}.col-md-push-0{left:auto}.col-md-push-1{left:8.333333333333332%}.col-md-push-2{left:16.666666666666664%}.col-md-push-3{left:25%}.col-md-push-4{left:33.33333333333333%}.col-md-push-5{left:41.66666666666667%}.col-md-push-6{left:50%}.col-md-push-7{left:58.333333333333336%}.col-md-push-8{left:66.66666666666666%}.col-md-push-9{left:75%}.col-md-push-10{left:83.33333333333334%}.col-md-push-11{left:91.66666666666666%}.col-md-pull-0{right:auto}.col-md-pull-1{right:8.333333333333332%}.col-md-pull-2{right:16.666666666666664%}.col-md-pull-3{right:25%}.col-md-pull-4{right:33.33333333333333%}.col-md-pull-5{right:41.66666666666667%}.col-md-pull-6{right:50%}.col-md-pull-7{right:58.333333333333336%}.col-md-pull-8{right:66.66666666666666%}.col-md-pull-9{right:75%}.col-md-pull-10{right:83.33333333333334%}.col-md-pull-11{right:91.66666666666666%}.col-md-offset-0{margin-left:0}.col-md-offset-1{margin-left:8.333333333333332%}.col-md-offset-2{margin-left:16.666666666666664%}.col-md-offset-3{margin-left:25%}.col-md-offset-4{margin-left:33.33333333333333%}.col-md-offset-5{margin-left:41.66666666666667%}.col-md-offset-6{margin-left:50%}.col-md-offset-7{margin-left:58.333333333333336%}.col-md-offset-8{margin-left:66.66666666666666%}.col-md-offset-9{margin-left:75%}.col-md-offset-10{margin-left:83.33333333333334%}.col-md-offset-11{margin-left:91.66666666666666%}}@media (min-width:1200px){.container{max-width:1170px}.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11{float:left}.col-lg-1{width:8.333333333333332%}.col-lg-2{width:16.666666666666664%}.col-lg-3{width:25%}.col-lg-4{width:33.33333333333333%}.col-lg-5{width:41.66666666666667%}.col-lg-6{width:50%}.col-lg-7{width:58.333333333333336%}.col-lg-8{width:66.66666666666666%}.col-lg-9{width:75%}.col-lg-10{width:83.33333333333334%}.col-lg-11{width:91.66666666666666%}.col-lg-12{width:100%}.col-lg-push-0{left:auto}.col-lg-push-1{left:8.333333333333332%}.col-lg-push-2{left:16.666666666666664%}.col-lg-push-3{left:25%}.col-lg-push-4{left:33.33333333333333%}.col-lg-push-5{left:41.66666666666667%}.col-lg-push-6{left:50%}.col-lg-push-7{left:58.333333333333336%}.col-lg-push-8{left:66.66666666666666%}.col-lg-push-9{left:75%}.col-lg-push-10{left:83.33333333333334%}.col-lg-push-11{left:91.66666666666666%}.col-lg-pull-0{right:auto}.col-lg-pull-1{right:8.333333333333332%}.col-lg-pull-2{right:16.666666666666664%}.col-lg-pull-3{right:25%}.col-lg-pull-4{right:33.33333333333333%}.col-lg-pull-5{right:41.66666666666667%}.col-lg-pull-6{right:50%}.col-lg-pull-7{right:58.333333333333336%}.col-lg-pull-8{right:66.66666666666666%}.col-lg-pull-9{right:75%}.col-lg-pull-10{right:83.33333333333334%}.col-lg-pull-11{right:91.66666666666666%}.col-lg-offset-0{margin-left:0}.col-lg-offset-1{margin-left:8.333333333333332%}.col-lg-offset-2{margin-left:16.666666666666664%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-4{margin-left:33.33333333333333%}.col-lg-offset-5{margin-left:41.66666666666667%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-7{margin-left:58.333333333333336%}.col-lg-offset-8{margin-left:66.66666666666666%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-10{margin-left:83.33333333333334%}.col-lg-offset-11{margin-left:91.66666666666666%}}table{max-width:100%;background-color:transparent}th{text-align:left}.table{width:100%;margin-bottom:20px}.table thead>tr>th,.table tbody>tr>th,.table tfoot>tr>th,.table thead>tr>td,.table tbody>tr>td,.table tfoot>tr>td{padding:8px;line-height:1.428571429;vertical-align:top;border-top:1px solid #ddd}.table thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table caption+thead tr:first-child th,.table colgroup+thead tr:first-child th,.table thead:first-child tr:first-child th,.table caption+thead tr:first-child td,.table colgroup+thead tr:first-child td,.table thead:first-child tr:first-child td{border-top:0}.table tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed thead>tr>th,.table-condensed tbody>tr>th,.table-condensed tfoot>tr>th,.table-condensed thead>tr>td,.table-condensed tbody>tr>td,.table-condensed tfoot>tr>td{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>tbody>tr>td,.table-bordered>tfoot>tr>td{border:1px solid #ddd}.table-bordered>thead>tr>th,.table-bordered>thead>tr>td{border-bottom-width:2px}.table-striped>tbody>tr:nth-child(odd)>td,.table-striped>tbody>tr:nth-child(odd)>th{background-color:#f9f9f9}.table-hover>tbody>tr:hover>td,.table-hover>tbody>tr:hover>th{background-color:#f5f5f5}table col[class*=col-]{display:table-column;float:none}table td[class*=col-],table th[class*=col-]{display:table-cell;float:none}.table>thead>tr>td.active,.table>tbody>tr>td.active,.table>tfoot>tr>td.active,.table>thead>tr>th.active,.table>tbody>tr>th.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>tbody>tr.active>td,.table>tfoot>tr.active>td,.table>thead>tr.active>th,.table>tbody>tr.active>th,.table>tfoot>tr.active>th{background-color:#f5f5f5}.table>thead>tr>td.success,.table>tbody>tr>td.success,.table>tfoot>tr>td.success,.table>thead>tr>th.success,.table>tbody>tr>th.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>tbody>tr.success>td,.table>tfoot>tr.success>td,.table>thead>tr.success>th,.table>tbody>tr.success>th,.table>tfoot>tr.success>th{background-color:#dff0d8;border-color:#d6e9c6}.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover,.table-hover>tbody>tr.success:hover>td{background-color:#d0e9c6;border-color:#c9e2b3}.table>thead>tr>td.danger,.table>tbody>tr>td.danger,.table>tfoot>tr>td.danger,.table>thead>tr>th.danger,.table>tbody>tr>th.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>tbody>tr.danger>td,.table>tfoot>tr.danger>td,.table>thead>tr.danger>th,.table>tbody>tr.danger>th,.table>tfoot>tr.danger>th{background-color:#f2dede;border-color:#eed3d7}.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover,.table-hover>tbody>tr.danger:hover>td{background-color:#ebcccc;border-color:#e6c1c7}.table>thead>tr>td.warning,.table>tbody>tr>td.warning,.table>tfoot>tr>td.warning,.table>thead>tr>th.warning,.table>tbody>tr>th.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>tbody>tr.warning>td,.table>tfoot>tr.warning>td,.table>thead>tr.warning>th,.table>tbody>tr.warning>th,.table>tfoot>tr.warning>th{background-color:#fcf8e3;border-color:#fbeed5}.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover,.table-hover>tbody>tr.warning:hover>td{background-color:#faf2cc;border-color:#f8e5be}@media (max-width:768px){.table-responsive{width:100%;margin-bottom:15px;overflow-x:scroll;overflow-y:hidden;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0;background-color:#fff}.table-responsive>.table>thead>tr>th,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tfoot>tr>td{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>thead>tr>th:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child{border-left:0}.table-responsive>.table-bordered>thead>tr>th:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child{border-right:0}.table-responsive>.table-bordered>thead>tr:last-child>th,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>th,.table-responsive>.table-bordered>thead>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>td{border-bottom:0}}fieldset{padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=radio],input[type=checkbox]{margin:4px 0 0;margin-top:1px \9;line-height:normal}input[type=file]{display:block}select[multiple],select[size]{height:auto}select optgroup{font-family:inherit;font-size:inherit;font-style:inherit}input[type=file]:focus,input[type=radio]:focus,input[type=checkbox]:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{height:auto}.form-control:-moz-placeholder{color:#999}.form-control::-moz-placeholder{color:#999}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.428571429;color:#555;vertical-align:middle;background-color:#fff;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{cursor:not-allowed;background-color:#eee}textarea.form-control{height:auto}.form-group{margin-bottom:15px}.radio,.checkbox{display:block;min-height:20px;padding-left:20px;margin-top:10px;margin-bottom:10px;vertical-align:middle}.radio label,.checkbox label{display:inline;margin-bottom:0;font-weight:400;cursor:pointer}.radio input[type=radio],.radio-inline input[type=radio],.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox]{float:left;margin-left:-20px}.radio+.radio,.checkbox+.checkbox{margin-top:-5px}.radio-inline,.checkbox-inline{display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.radio-inline+.radio-inline,.checkbox-inline+.checkbox-inline{margin-top:0;margin-left:10px}input[type=radio][disabled],input[type=checkbox][disabled],.radio[disabled],.radio-inline[disabled],.checkbox[disabled],.checkbox-inline[disabled],fieldset[disabled] input[type=radio],fieldset[disabled] input[type=checkbox],fieldset[disabled] .radio,fieldset[disabled] .radio-inline,fieldset[disabled] .checkbox,fieldset[disabled] .checkbox-inline{cursor:not-allowed}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}textarea.input-sm{height:auto}.input-lg{height:45px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-lg{height:45px;line-height:45px}textarea.input-lg{height:auto}.has-warning .help-block,.has-warning .control-label{color:#c09853}.has-warning .form-control{border-color:#c09853;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#a47e3c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #dbc59e;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #dbc59e}.has-warning .input-group-addon{color:#c09853;background-color:#fcf8e3;border-color:#c09853}.has-error .help-block,.has-error .control-label{color:#b94a48}.has-error .form-control{border-color:#b94a48;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#953b39;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #d59392;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #d59392}.has-error .input-group-addon{color:#b94a48;background-color:#f2dede;border-color:#b94a48}.has-success .help-block,.has-success .control-label{color:#468847}.has-success .form-control{border-color:#468847;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#356635;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #7aba7b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #7aba7b}.has-success .input-group-addon{color:#468847;background-color:#dff0d8;border-color:#468847}.form-control-static{padding-top:7px;margin-bottom:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block}.form-inline .radio,.form-inline .checkbox{display:inline-block;padding-left:0;margin-top:0;margin-bottom:0}.form-inline .radio input[type=radio],.form-inline .checkbox input[type=checkbox]{float:none;margin-left:0}}.form-horizontal .control-label,.form-horizontal .radio,.form-horizontal .checkbox,.form-horizontal .radio-inline,.form-horizontal .checkbox-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}.form-horizontal .form-group:before,.form-horizontal .form-group:after{display:table;content:" "}.form-horizontal .form-group:after{clear:both}@media (min-width:768px){.form-horizontal .control-label{text-align:right}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.428571429;text-align:center;white-space:nowrap;vertical-align:middle;cursor:pointer;border:1px solid transparent;border-radius:4px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn:hover,.btn:focus{color:#333;text-decoration:none}.btn:active,.btn.active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{pointer-events:none;cursor:not-allowed;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default:hover,.btn-default:focus,.btn-default:active,.btn-default.active,.open .dropdown-toggle.btn-default{color:#333;background-color:#ebebeb;border-color:#adadad}.btn-default:active,.btn-default.active,.open .dropdown-toggle.btn-default{background-image:none}.btn-default.disabled,.btn-default[disabled],fieldset[disabled] .btn-default,.btn-default.disabled:hover,.btn-default[disabled]:hover,fieldset[disabled] .btn-default:hover,.btn-default.disabled:focus,.btn-default[disabled]:focus,fieldset[disabled] .btn-default:focus,.btn-default.disabled:active,.btn-default[disabled]:active,fieldset[disabled] .btn-default:active,.btn-default.disabled.active,.btn-default[disabled].active,fieldset[disabled] .btn-default.active{background-color:#fff;border-color:#ccc}.btn-primary{color:#fff;background-color:#428bca;border-color:#357ebd}.btn-primary:hover,.btn-primary:focus,.btn-primary:active,.btn-primary.active,.open .dropdown-toggle.btn-primary{color:#fff;background-color:#3276b1;border-color:#285e8e}.btn-primary:active,.btn-primary.active,.open .dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled,.btn-primary[disabled],fieldset[disabled] .btn-primary,.btn-primary.disabled:hover,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary:hover,.btn-primary.disabled:focus,.btn-primary[disabled]:focus,fieldset[disabled] .btn-primary:focus,.btn-primary.disabled:active,.btn-primary[disabled]:active,fieldset[disabled] .btn-primary:active,.btn-primary.disabled.active,.btn-primary[disabled].active,fieldset[disabled] .btn-primary.active{background-color:#428bca;border-color:#357ebd}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning:hover,.btn-warning:focus,.btn-warning:active,.btn-warning.active,.open .dropdown-toggle.btn-warning{color:#fff;background-color:#ed9c28;border-color:#d58512}.btn-warning:active,.btn-warning.active,.open .dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled,.btn-warning[disabled],fieldset[disabled] .btn-warning,.btn-warning.disabled:hover,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning:hover,.btn-warning.disabled:focus,.btn-warning[disabled]:focus,fieldset[disabled] .btn-warning:focus,.btn-warning.disabled:active,.btn-warning[disabled]:active,fieldset[disabled] .btn-warning:active,.btn-warning.disabled.active,.btn-warning[disabled].active,fieldset[disabled] .btn-warning.active{background-color:#f0ad4e;border-color:#eea236}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger:hover,.btn-danger:focus,.btn-danger:active,.btn-danger.active,.open .dropdown-toggle.btn-danger{color:#fff;background-color:#d2322d;border-color:#ac2925}.btn-danger:active,.btn-danger.active,.open .dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled,.btn-danger[disabled],fieldset[disabled] .btn-danger,.btn-danger.disabled:hover,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger:hover,.btn-danger.disabled:focus,.btn-danger[disabled]:focus,fieldset[disabled] .btn-danger:focus,.btn-danger.disabled:active,.btn-danger[disabled]:active,fieldset[disabled] .btn-danger:active,.btn-danger.disabled.active,.btn-danger[disabled].active,fieldset[disabled] .btn-danger.active{background-color:#d9534f;border-color:#d43f3a}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success:hover,.btn-success:focus,.btn-success:active,.btn-success.active,.open .dropdown-toggle.btn-success{color:#fff;background-color:#47a447;border-color:#398439}.btn-success:active,.btn-success.active,.open .dropdown-toggle.btn-success{background-image:none}.btn-success.disabled,.btn-success[disabled],fieldset[disabled] .btn-success,.btn-success.disabled:hover,.btn-success[disabled]:hover,fieldset[disabled] .btn-success:hover,.btn-success.disabled:focus,.btn-success[disabled]:focus,fieldset[disabled] .btn-success:focus,.btn-success.disabled:active,.btn-success[disabled]:active,fieldset[disabled] .btn-success:active,.btn-success.disabled.active,.btn-success[disabled].active,fieldset[disabled] .btn-success.active{background-color:#5cb85c;border-color:#4cae4c}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info:hover,.btn-info:focus,.btn-info:active,.btn-info.active,.open .dropdown-toggle.btn-info{color:#fff;background-color:#39b3d7;border-color:#269abc}.btn-info:active,.btn-info.active,.open .dropdown-toggle.btn-info{background-image:none}.btn-info.disabled,.btn-info[disabled],fieldset[disabled] .btn-info,.btn-info.disabled:hover,.btn-info[disabled]:hover,fieldset[disabled] .btn-info:hover,.btn-info.disabled:focus,.btn-info[disabled]:focus,fieldset[disabled] .btn-info:focus,.btn-info.disabled:active,.btn-info[disabled]:active,fieldset[disabled] .btn-info:active,.btn-info.disabled.active,.btn-info[disabled].active,fieldset[disabled] .btn-info.active{background-color:#5bc0de;border-color:#46b8da}.btn-link{font-weight:400;color:#428bca;cursor:pointer;border-radius:0}.btn-link,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:hover,.btn-link:focus,.btn-link:active{border-color:transparent}.btn-link:hover,.btn-link:focus{color:#2a6496;text-decoration:underline;background-color:transparent}.btn-link[disabled]:hover,fieldset[disabled] .btn-link:hover,.btn-link[disabled]:focus,fieldset[disabled] .btn-link:focus{color:#999;text-decoration:none}.btn-lg{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.btn-sm,.btn-xs{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-xs{padding:1px 5px}.btn-block{display:block;width:100%;padding-right:0;padding-left:0}.btn-block+.btn-block{margin-top:5px}input[type=submit].btn-block,input[type=reset].btn-block,input[type=button].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition:height .35s ease;transition:height .35s ease}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons-halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';-webkit-font-smoothing:antialiased;font-style:normal;font-weight:400;line-height:1}.glyphicon-asterisk:before{content:"\2a"}.glyphicon-plus:before{content:"\2b"}.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-print:before{content:"\e045"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-briefcase:before{content:"\1f4bc"}.glyphicon-calendar:before{content:"\1f4c5"}.glyphicon-pushpin:before{content:"\1f4cc"}.glyphicon-paperclip:before{content:"\1f4ce"}.glyphicon-camera:before{content:"\1f4f7"}.glyphicon-lock:before{content:"\1f512"}.glyphicon-bell:before{content:"\1f514"}.glyphicon-bookmark:before{content:"\1f516"}.glyphicon-fire:before{content:"\1f525"}.glyphicon-wrench:before{content:"\1f527"}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px solid #000;border-right:4px solid transparent;border-bottom:0 dotted;border-left:4px solid transparent;content:""}.dropdown{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);background-clip:padding-box}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.428571429;color:#333;white-space:nowrap}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus{color:#fff;text-decoration:none;background-color:#428bca}.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{color:#fff;text-decoration:none;background-color:#428bca;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{color:#999}.dropdown-menu>.disabled>a:hover,.dropdown-menu>.disabled>a:focus{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.428571429;color:#999}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{border-top:0 dotted;border-bottom:4px solid #000;content:""}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}}.btn-default .caret{border-top-color:#333}.btn-primary .caret,.btn-success .caret,.btn-warning .caret,.btn-danger .caret,.btn-info .caret{border-top-color:#fff}.dropup .btn-default .caret{border-bottom-color:#333}.dropup .btn-primary .caret,.dropup .btn-success .caret,.dropup .btn-warning .caret,.dropup .btn-danger .caret,.dropup .btn-info .caret{border-bottom-color:#fff}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;float:left}.btn-group>.btn:hover,.btn-group-vertical>.btn:hover,.btn-group>.btn:focus,.btn-group-vertical>.btn:focus,.btn-group>.btn:active,.btn-group-vertical>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn.active{z-index:2}.btn-group>.btn:focus,.btn-group-vertical>.btn:focus{outline:0}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar:before,.btn-toolbar:after{display:table;content:" "}.btn-toolbar:after{clear:both}.btn-toolbar .btn-group{float:left}.btn-toolbar>.btn+.btn,.btn-toolbar>.btn-group+.btn,.btn-toolbar>.btn+.btn-group,.btn-toolbar>.btn-group+.btn-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child>.btn:last-child,.btn-group>.btn-group:first-child>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child>.btn:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group-xs>.btn{padding:5px 10px;padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-sm>.btn{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-lg>.btn{padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after{display:table;content:" "}.btn-group-vertical>.btn-group:after{clear:both}.btn-group-vertical>.btn-group:before,.btn-group-vertical>.btn-group:after{display:table;content:" "}.btn-group-vertical>.btn-group:after{clear:both}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-right-radius:0;border-bottom-left-radius:4px;border-top-left-radius:0}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child>.btn:last-child,.btn-group-vertical>.btn-group:first-child>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child>.btn:first-child{border-top-right-radius:0;border-top-left-radius:0}.btn-group-justified{display:table;width:100%;border-collapse:separate;table-layout:fixed}.btn-group-justified .btn{display:table-cell;float:none;width:1%}[data-toggle=buttons]>.btn>input[type=radio],[data-toggle=buttons]>.btn>input[type=checkbox]{display:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group.col{float:none;padding-right:0;padding-left:0}.input-group .form-control{width:100%;margin-bottom:0}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:45px;padding:10px 16px;font-size:18px;line-height:1.33;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:45px;line-height:45px}textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group-addon,.input-group-btn,.input-group .form-control{display:table-cell}.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child),.input-group .form-control:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=radio],.input-group-addon input[type=checkbox]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:last-child>.btn,.input-group-btn:last-child>.dropdown-toggle,.input-group-btn:first-child>.btn:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-4px}.input-group-btn>.btn:hover,.input-group-btn>.btn:active{z-index:2}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav:before,.nav:after{display:table;content:" "}.nav:after{clear:both}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:hover,.nav>li>a:focus{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#999}.nav>li.disabled>a:hover,.nav>li.disabled>a:focus{color:#999;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:hover,.nav .open>a:focus{background-color:#eee;border-color:#428bca}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.428571429;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:hover,.nav-tabs>li.active>a:focus{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{text-align:center}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}}.nav-tabs.nav-justified>li>a{margin-right:0;border-bottom:1px solid #ddd}.nav-tabs.nav-justified>.active>a{border-bottom-color:#fff}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:5px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:hover,.nav-pills>li.active>a:focus{color:#fff;background-color:#428bca}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{text-align:center}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-bottom:1px solid #ddd}.nav-tabs-justified>.active>a{border-bottom-color:#fff}.tabbable:before,.tabbable:after{display:table;content:" "}.tabbable:after{clear:both}.tabbable:before,.tabbable:after{display:table;content:" "}.tabbable:after{clear:both}.tab-content>.tab-pane,.pill-content>.pill-pane{display:none}.tab-content>.active,.pill-content>.active{display:block}.nav .caret{border-top-color:#428bca;border-bottom-color:#428bca}.nav a:hover .caret{border-top-color:#2a6496;border-bottom-color:#2a6496}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-right-radius:0;border-top-left-radius:0}.navbar{position:relative;z-index:1000;min-height:50px;margin-bottom:20px;border:1px solid transparent}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}.navbar:before,.navbar:after{display:table;content:" "}.navbar:after{clear:both}@media (min-width:768px){.navbar{border-radius:4px}}.navbar-header:before,.navbar-header:after{display:table;content:" "}.navbar-header:after{clear:both}.navbar-header:before,.navbar-header:after{display:table;content:" "}.navbar-header:after{clear:both}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{max-height:340px;padding-right:15px;padding-left:15px;overflow-x:visible;border-top:1px solid transparent;box-shadow:inset 0 1px 0 rgba(255,255,255,.1);-webkit-overflow-scrolling:touch}.navbar-collapse:before,.navbar-collapse:after{display:table;content:" "}.navbar-collapse:after{clear:both}.navbar-collapse:before,.navbar-collapse:after{display:table;content:" "}.navbar-collapse:after{clear:both}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-collapse .navbar-nav.navbar-left:first-child{margin-left:-15px}.navbar-collapse .navbar-nav.navbar-right:last-child{margin-right:-15px}.navbar-collapse .navbar-text:last-child{margin-right:0}}.container>.navbar-header,.container>.navbar-collapse{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container>.navbar-header,.container>.navbar-collapse{margin-right:0;margin-left:0}}.navbar-static-top{border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-top,.navbar-fixed-bottom{position:fixed;right:0;left:0;border-width:0 0 1px}@media (min-width:768px){.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}}.navbar-fixed-top{top:0;z-index:1030}.navbar-fixed-bottom{bottom:0;margin-bottom:0}.navbar-brand{float:left;padding:15px;font-size:18px;line-height:20px}.navbar-brand:hover,.navbar-brand:focus{text-decoration:none}@media (min-width:768px){.navbar>.container .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;border:1px solid transparent;border-radius:4px}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;box-shadow:none}.navbar-nav .open .dropdown-menu>li>a,.navbar-nav .open .dropdown-menu .dropdown-header{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:hover,.navbar-nav .open .dropdown-menu>li>a:focus{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block}.navbar-form .radio,.navbar-form .checkbox{display:inline-block;padding-left:0;margin-top:0;margin-bottom:0}.navbar-form .radio input[type=radio],.navbar-form .checkbox input[type=checkbox]{float:none;margin-left:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-right-radius:0;border-top-left-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-nav.pull-right>li>.dropdown-menu,.navbar-nav>li>.dropdown-menu.pull-right{right:0;left:auto}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-text{float:left;margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{margin-right:15px;margin-left:15px}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:hover,.navbar-default .navbar-brand:focus{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:hover,.navbar-default .navbar-nav>li>a:focus{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:hover,.navbar-default .navbar-nav>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:hover,.navbar-default .navbar-nav>.disabled>a:focus{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:hover,.navbar-default .navbar-toggle:focus{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#ccc}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e6e6e6}.navbar-default .navbar-nav>.dropdown>a:hover .caret,.navbar-default .navbar-nav>.dropdown>a:focus .caret{border-top-color:#333;border-bottom-color:#333}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:hover,.navbar-default .navbar-nav>.open>a:focus{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.open>a .caret,.navbar-default .navbar-nav>.open>a:hover .caret,.navbar-default .navbar-nav>.open>a:focus .caret{border-top-color:#555;border-bottom-color:#555}.navbar-default .navbar-nav>.dropdown>a .caret{border-top-color:#777;border-bottom-color:#777}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#999}.navbar-inverse .navbar-brand:hover,.navbar-inverse .navbar-brand:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#999}.navbar-inverse .navbar-nav>li>a{color:#999}.navbar-inverse .navbar-nav>li>a:hover,.navbar-inverse .navbar-nav>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:hover,.navbar-inverse .navbar-nav>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:hover,.navbar-inverse .navbar-nav>.disabled>a:focus{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:hover,.navbar-inverse .navbar-toggle:focus{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:hover,.navbar-inverse .navbar-nav>.open>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.dropdown>a:hover .caret{border-top-color:#fff;border-bottom-color:#fff}.navbar-inverse .navbar-nav>.dropdown>a .caret{border-top-color:#999;border-bottom-color:#999}.navbar-inverse .navbar-nav>.open>a .caret,.navbar-inverse .navbar-nav>.open>a:hover .caret,.navbar-inverse .navbar-nav>.open>a:focus .caret{border-top-color:#fff;border-bottom-color:#fff}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#999}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#999}.navbar-inverse .navbar-link:hover{color:#fff}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#999}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.428571429;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-bottom-left-radius:4px;border-top-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:hover,.pagination>li>span:hover,.pagination>li>a:focus,.pagination>li>span:focus{background-color:#eee}.pagination>.active>a,.pagination>.active>span,.pagination>.active>a:hover,.pagination>.active>span:hover,.pagination>.active>a:focus,.pagination>.active>span:focus{z-index:2;color:#fff;cursor:default;background-color:#428bca;border-color:#428bca}.pagination>.disabled>span,.pagination>.disabled>a,.pagination>.disabled>a:hover,.pagination>.disabled>a:focus{color:#999;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-bottom-left-radius:6px;border-top-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-bottom-left-radius:3px;border-top-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager:before,.pager:after{display:table;content:" "}.pager:after{clear:both}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:hover,.pager li>a:focus{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:hover,.pager .disabled>a:focus,.pager .disabled>span{color:#999;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}.label[href]:hover,.label[href]:focus{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.label-default{background-color:#999}.label-default[href]:hover,.label-default[href]:focus{background-color:gray}.label-primary{background-color:#428bca}.label-primary[href]:hover,.label-primary[href]:focus{background-color:#3071a9}.label-success{background-color:#5cb85c}.label-success[href]:hover,.label-success[href]:focus{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:hover,.label-info[href]:focus{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:hover,.label-warning[href]:focus{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:hover,.label-danger[href]:focus{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;background-color:#999;border-radius:10px}.badge:empty{display:none}a.badge:hover,a.badge:focus{color:#fff;text-decoration:none;cursor:pointer}.btn .badge{position:relative;top:-1px}a.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#428bca;background-color:#fff}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding:30px;margin-bottom:30px;font-size:21px;font-weight:200;line-height:2.1428571435;color:inherit;background-color:#eee}.jumbotron h1{line-height:1;color:inherit}.jumbotron p{line-height:1.4}.container .jumbotron{border-radius:6px}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron{padding-right:60px;padding-left:60px}.jumbotron h1{font-size:63px}}.thumbnail{display:inline-block;display:block;height:auto;max-width:100%;padding:4px;line-height:1.428571429;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.thumbnail>img{display:block;height:auto;max-width:100%}a.thumbnail:hover,a.thumbnail:focus{border-color:#428bca}.thumbnail>img{margin-right:auto;margin-left:auto}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable{padding-right:35px}.alert-dismissable .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#356635}.alert-info{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#2d6987}.alert-warning{color:#c09853;background-color:#fcf8e3;border-color:#fbeed5}.alert-warning hr{border-top-color:#f8e5be}.alert-warning .alert-link{color:#a47e3c}.alert-danger{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.alert-danger hr{border-top-color:#e6c1c7}.alert-danger .alert-link{color:#953b39}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-moz-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:0 0}to{background-position:40px 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;color:#fff;text-align:center;background-color:#428bca;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;transition:width .6s ease}.progress-striped .progress-bar{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,.15)),color-stop(0.75,rgba(255,255,255,.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:40px 40px}.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-moz-animation:progress-bar-stripes 2s linear infinite;-ms-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,.15)),color-stop(0.75,rgba(255,255,255,.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,.15)),color-stop(0.75,rgba(255,255,255,.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,.15)),color-stop(0.75,rgba(255,255,255,.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(0.25,rgba(255,255,255,.15)),color-stop(0.25,transparent),color-stop(0.5,transparent),color-stop(0.5,rgba(255,255,255,.15)),color-stop(0.75,rgba(255,255,255,.15)),color-stop(0.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media,.media-body{overflow:hidden;zoom:1}.media,.media .media{margin-top:15px}.media:first-child{margin-top:0}.media-object{display:block}.media-heading{margin:0 0 5px}.media>.pull-left{margin-right:10px}.media>.pull-right{margin-left:10px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-right-radius:4px;border-top-left-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}a.list-group-item{color:#555}a.list-group-item .list-group-item-heading{color:#333}a.list-group-item:hover,a.list-group-item:focus{text-decoration:none;background-color:#f5f5f5}.list-group-item.active,.list-group-item.active:hover,.list-group-item.active:focus{z-index:2;color:#fff;background-color:#428bca;border-color:#428bca}.list-group-item.active .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:hover .list-group-item-text,.list-group-item.active:focus .list-group-item-text{color:#e1edf7}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-body:before,.panel-body:after{display:table;content:" "}.panel-body:after{clear:both}.panel-body:before,.panel-body:after{display:table;content:" "}.panel-body:after{clear:both}.panel>.list-group{margin-bottom:0}.panel>.list-group .list-group-item{border-width:1px 0}.panel>.list-group .list-group-item:first-child{border-top-right-radius:0;border-top-left-radius:0}.panel>.list-group .list-group-item:last-child{border-bottom:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.panel>.table{margin-bottom:0}.panel>.panel-body+.table{border-top:1px solid #ddd}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-right-radius:3px;border-top-left-radius:3px}.panel-title{margin-top:0;margin-bottom:0;font-size:16px}.panel-title>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel-group .panel{margin-bottom:0;overflow:hidden;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse .panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse .panel-body{border-top-color:#ddd}.panel-default>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#428bca}.panel-primary>.panel-heading{color:#fff;background-color:#428bca;border-color:#428bca}.panel-primary>.panel-heading+.panel-collapse .panel-body{border-top-color:#428bca}.panel-primary>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#428bca}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse .panel-body{border-top-color:#d6e9c6}.panel-success>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#d6e9c6}.panel-warning{border-color:#fbeed5}.panel-warning>.panel-heading{color:#c09853;background-color:#fcf8e3;border-color:#fbeed5}.panel-warning>.panel-heading+.panel-collapse .panel-body{border-top-color:#fbeed5}.panel-warning>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#fbeed5}.panel-danger{border-color:#eed3d7}.panel-danger>.panel-heading{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.panel-danger>.panel-heading+.panel-collapse .panel-body{border-top-color:#eed3d7}.panel-danger>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#eed3d7}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse .panel-body{border-top-color:#bce8f1}.panel-info>.panel-footer+.panel-collapse .panel-body{border-bottom-color:#bce8f1}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.2;filter:alpha(opacity=20)}.close:hover,.close:focus{color:#000;text-decoration:none;cursor:pointer;opacity:.5;filter:alpha(opacity=50)}button.close{padding:0;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.modal-open{overflow:hidden}body.modal-open,.modal-open .navbar-fixed-top,.modal-open .navbar-fixed-bottom{margin-right:15px}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;display:none;overflow:auto;overflow-y:scroll}.modal.fade .modal-dialog{-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);transform:translate(0,-25%);-webkit-transition:-webkit-transform .3s ease-out;-moz-transition:-moz-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);transform:translate(0,0)}.modal-dialog{z-index:1050;width:auto;padding:10px;margin-right:auto;margin-left:auto}.modal-content{position:relative;background-color:#fff;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5);background-clip:padding-box}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1030;background-color:#000}.modal-backdrop.fade{opacity:0;filter:alpha(opacity=0)}.modal-backdrop.in{opacity:.5;filter:alpha(opacity=50)}.modal-header{min-height:16.428571429px;padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.428571429}.modal-body{position:relative;padding:20px}.modal-footer{padding:19px 20px 20px;margin-top:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer:before,.modal-footer:after{display:table;content:" "}.modal-footer:after{clear:both}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}@media screen and (min-width:768px){.modal-dialog{right:auto;left:50%;width:600px;padding-top:30px;padding-bottom:30px}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}}.tooltip{position:absolute;z-index:1030;display:block;font-size:12px;line-height:1.4;opacity:0;filter:alpha(opacity=0);visibility:visible}.tooltip.in{opacity:.9;filter:alpha(opacity=90)}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;text-decoration:none;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-top-color:#000;border-width:5px 5px 0}.tooltip.top-left .tooltip-arrow{bottom:0;left:5px;border-top-color:#000;border-width:5px 5px 0}.tooltip.top-right .tooltip-arrow{right:5px;bottom:0;border-top-color:#000;border-width:5px 5px 0}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-right-color:#000;border-width:5px 5px 5px 0}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-left-color:#000;border-width:5px 0 5px 5px}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-bottom-color:#000;border-width:0 5px 5px}.tooltip.bottom-left .tooltip-arrow{top:0;left:5px;border-bottom-color:#000;border-width:0 5px 5px}.tooltip.bottom-right .tooltip-arrow{top:0;right:5px;border-bottom-color:#000;border-width:0 5px 5px}.popover{position:absolute;top:0;left:0;z-index:1010;display:none;max-width:276px;padding:1px;text-align:left;white-space:normal;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);background-clip:padding-box}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;font-weight:400;line-height:18px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover .arrow,.popover .arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover .arrow{border-width:11px}.popover .arrow:after{border-width:10px;content:""}.popover.top .arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top .arrow:after{bottom:1px;margin-left:-10px;border-top-color:#fff;border-bottom-width:0;content:" "}.popover.right .arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right .arrow:after{bottom:-10px;left:1px;border-right-color:#fff;border-left-width:0;content:" "}.popover.bottom .arrow{top:-11px;left:50%;margin-left:-11px;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25);border-top-width:0}.popover.bottom .arrow:after{top:1px;margin-left:-10px;border-bottom-color:#fff;border-top-width:0;content:" "}.popover.left .arrow{top:50%;right:-11px;margin-top:-11px;border-left-color:#999;border-left-color:rgba(0,0,0,.25);border-right-width:0}.popover.left .arrow:after{right:1px;bottom:-10px;border-left-color:#fff;border-right-width:0;content:" "}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>img,.carousel-inner>.item>a>img{display:block;height:auto;max-width:100%;line-height:1}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);opacity:.5;filter:alpha(opacity=50)}.carousel-control.left{background-image:-webkit-gradient(linear,0 top,100% top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,.5) 0),color-stop(rgba(0,0,0,.0001) 100%));background-image:-moz-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1)}.carousel-control.right{right:0;left:auto;background-image:-webkit-gradient(linear,0 top,100% top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:-webkit-linear-gradient(left,color-stop(rgba(0,0,0,.0001) 0),color-stop(rgba(0,0,0,.5) 100%));background-image:-moz-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1)}.carousel-control:hover,.carousel-control:focus{color:#fff;text-decoration:none;opacity:.9;filter:alpha(opacity=90)}.carousel-control .icon-prev,.carousel-control .icon-next,.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right{position:absolute;top:50%;left:50%;z-index:5;display:inline-block}.carousel-control .icon-prev,.carousel-control .icon-next{width:20px;height:20px;margin-top:-10px;margin-left:-10px;font-family:serif}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .icon-prev,.carousel-control .icon-next{width:30px;height:30px;margin-top:-15px;margin-left:-15px;font-size:30px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.clearfix:before,.clearfix:after{display:table;content:" "}.clearfix:after{clear:both}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.affix{position:fixed}@-ms-viewport{width:device-width}@media screen and (max-width:400px){@-ms-viewport{width:320px}}.hidden{display:none!important;visibility:hidden!important}.visible-xs{display:none!important}tr.visible-xs{display:none!important}th.visible-xs,td.visible-xs{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}tr.visible-xs{display:table-row!important}th.visible-xs,td.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-xs.visible-sm{display:block!important}tr.visible-xs.visible-sm{display:table-row!important}th.visible-xs.visible-sm,td.visible-xs.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-xs.visible-md{display:block!important}tr.visible-xs.visible-md{display:table-row!important}th.visible-xs.visible-md,td.visible-xs.visible-md{display:table-cell!important}}@media (min-width:1200px){.visible-xs.visible-lg{display:block!important}tr.visible-xs.visible-lg{display:table-row!important}th.visible-xs.visible-lg,td.visible-xs.visible-lg{display:table-cell!important}}.visible-sm{display:none!important}tr.visible-sm{display:none!important}th.visible-sm,td.visible-sm{display:none!important}@media (max-width:767px){.visible-sm.visible-xs{display:block!important}tr.visible-sm.visible-xs{display:table-row!important}th.visible-sm.visible-xs,td.visible-sm.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}tr.visible-sm{display:table-row!important}th.visible-sm,td.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-sm.visible-md{display:block!important}tr.visible-sm.visible-md{display:table-row!important}th.visible-sm.visible-md,td.visible-sm.visible-md{display:table-cell!important}}@media (min-width:1200px){.visible-sm.visible-lg{display:block!important}tr.visible-sm.visible-lg{display:table-row!important}th.visible-sm.visible-lg,td.visible-sm.visible-lg{display:table-cell!important}}.visible-md{display:none!important}tr.visible-md{display:none!important}th.visible-md,td.visible-md{display:none!important}@media (max-width:767px){.visible-md.visible-xs{display:block!important}tr.visible-md.visible-xs{display:table-row!important}th.visible-md.visible-xs,td.visible-md.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-md.visible-sm{display:block!important}tr.visible-md.visible-sm{display:table-row!important}th.visible-md.visible-sm,td.visible-md.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}tr.visible-md{display:table-row!important}th.visible-md,td.visible-md{display:table-cell!important}}@media (min-width:1200px){.visible-md.visible-lg{display:block!important}tr.visible-md.visible-lg{display:table-row!important}th.visible-md.visible-lg,td.visible-md.visible-lg{display:table-cell!important}}.visible-lg{display:none!important}tr.visible-lg{display:none!important}th.visible-lg,td.visible-lg{display:none!important}@media (max-width:767px){.visible-lg.visible-xs{display:block!important}tr.visible-lg.visible-xs{display:table-row!important}th.visible-lg.visible-xs,td.visible-lg.visible-xs{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-lg.visible-sm{display:block!important}tr.visible-lg.visible-sm{display:table-row!important}th.visible-lg.visible-sm,td.visible-lg.visible-sm{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-lg.visible-md{display:block!important}tr.visible-lg.visible-md{display:table-row!important}th.visible-lg.visible-md,td.visible-lg.visible-md{display:table-cell!important}}@media (min-width:1200px){.visible-lg{display:block!important}tr.visible-lg{display:table-row!important}th.visible-lg,td.visible-lg{display:table-cell!important}}.hidden-xs{display:block!important}tr.hidden-xs{display:table-row!important}th.hidden-xs,td.hidden-xs{display:table-cell!important}@media (max-width:767px){.hidden-xs{display:none!important}tr.hidden-xs{display:none!important}th.hidden-xs,td.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-xs.hidden-sm{display:none!important}tr.hidden-xs.hidden-sm{display:none!important}th.hidden-xs.hidden-sm,td.hidden-xs.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-xs.hidden-md{display:none!important}tr.hidden-xs.hidden-md{display:none!important}th.hidden-xs.hidden-md,td.hidden-xs.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-xs.hidden-lg{display:none!important}tr.hidden-xs.hidden-lg{display:none!important}th.hidden-xs.hidden-lg,td.hidden-xs.hidden-lg{display:none!important}}.hidden-sm{display:block!important}tr.hidden-sm{display:table-row!important}th.hidden-sm,td.hidden-sm{display:table-cell!important}@media (max-width:767px){.hidden-sm.hidden-xs{display:none!important}tr.hidden-sm.hidden-xs{display:none!important}th.hidden-sm.hidden-xs,td.hidden-sm.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}tr.hidden-sm{display:none!important}th.hidden-sm,td.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-sm.hidden-md{display:none!important}tr.hidden-sm.hidden-md{display:none!important}th.hidden-sm.hidden-md,td.hidden-sm.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-sm.hidden-lg{display:none!important}tr.hidden-sm.hidden-lg{display:none!important}th.hidden-sm.hidden-lg,td.hidden-sm.hidden-lg{display:none!important}}.hidden-md{display:block!important}tr.hidden-md{display:table-row!important}th.hidden-md,td.hidden-md{display:table-cell!important}@media (max-width:767px){.hidden-md.hidden-xs{display:none!important}tr.hidden-md.hidden-xs{display:none!important}th.hidden-md.hidden-xs,td.hidden-md.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-md.hidden-sm{display:none!important}tr.hidden-md.hidden-sm{display:none!important}th.hidden-md.hidden-sm,td.hidden-md.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}tr.hidden-md{display:none!important}th.hidden-md,td.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-md.hidden-lg{display:none!important}tr.hidden-md.hidden-lg{display:none!important}th.hidden-md.hidden-lg,td.hidden-md.hidden-lg{display:none!important}}.hidden-lg{display:block!important}tr.hidden-lg{display:table-row!important}th.hidden-lg,td.hidden-lg{display:table-cell!important}@media (max-width:767px){.hidden-lg.hidden-xs{display:none!important}tr.hidden-lg.hidden-xs{display:none!important}th.hidden-lg.hidden-xs,td.hidden-lg.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-lg.hidden-sm{display:none!important}tr.hidden-lg.hidden-sm{display:none!important}th.hidden-lg.hidden-sm,td.hidden-lg.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-lg.hidden-md{display:none!important}tr.hidden-lg.hidden-md{display:none!important}th.hidden-lg.hidden-md,td.hidden-lg.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}tr.hidden-lg{display:none!important}th.hidden-lg,td.hidden-lg{display:none!important}}.visible-print{display:none!important}tr.visible-print{display:none!important}th.visible-print,td.visible-print{display:none!important}@media print{.visible-print{display:block!important}tr.visible-print{display:table-row!important}th.visible-print,td.visible-print{display:table-cell!important}.hidden-print{display:none!important}tr.hidden-print{display:none!important}th.hidden-print,td.hidden-print{display:none!important}}.btn-default,.btn-primary,.btn-success,.btn-info,.btn-warning,.btn-danger{text-shadow:0 -1px 0 rgba(0,0,0,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 1px rgba(0,0,0,.075)}.btn-default:active,.btn-primary:active,.btn-success:active,.btn-info:active,.btn-warning:active,.btn-danger:active,.btn-default.active,.btn-primary.active,.btn-success.active,.btn-info.active,.btn-warning.active,.btn-danger.active{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn:active,.btn.active{background-image:none}.btn-default{text-shadow:0 1px 0 #fff;background-image:-webkit-gradient(linear,left 0,left 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,0,#e6e6e6,100%);background-image:-moz-linear-gradient(top,#fff 0,#e6e6e6 100%);background-image:linear-gradient(to bottom,#fff 0,#e6e6e6 100%);background-repeat:repeat-x;border-color:#e0e0e0;border-color:#ccc;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0)}.btn-default:active,.btn-default.active{background-color:#e6e6e6;border-color:#e0e0e0}.btn-primary{background-image:-webkit-gradient(linear,left 0,left 100%,from(#428bca),to(#3071a9));background-image:-webkit-linear-gradient(top,#428bca,0,#3071a9,100%);background-image:-moz-linear-gradient(top,#428bca 0,#3071a9 100%);background-image:linear-gradient(to bottom,#428bca 0,#3071a9 100%);background-repeat:repeat-x;border-color:#2d6ca2;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3071a9', GradientType=0)}.btn-primary:active,.btn-primary.active{background-color:#3071a9;border-color:#2d6ca2}.btn-success{background-image:-webkit-gradient(linear,left 0,left 100%,from(#5cb85c),to(#449d44));background-image:-webkit-linear-gradient(top,#5cb85c,0,#449d44,100%);background-image:-moz-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%);background-repeat:repeat-x;border-color:#419641;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0)}.btn-success:active,.btn-success.active{background-color:#449d44;border-color:#419641}.btn-warning{background-image:-webkit-gradient(linear,left 0,left 100%,from(#f0ad4e),to(#ec971f));background-image:-webkit-linear-gradient(top,#f0ad4e,0,#ec971f,100%);background-image:-moz-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%);background-repeat:repeat-x;border-color:#eb9316;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0)}.btn-warning:active,.btn-warning.active{background-color:#ec971f;border-color:#eb9316}.btn-danger{background-image:-webkit-gradient(linear,left 0,left 100%,from(#d9534f),to(#c9302c));background-image:-webkit-linear-gradient(top,#d9534f,0,#c9302c,100%);background-image:-moz-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%);background-repeat:repeat-x;border-color:#c12e2a;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0)}.btn-danger:active,.btn-danger.active{background-color:#c9302c;border-color:#c12e2a}.btn-info{background-image:-webkit-gradient(linear,left 0,left 100%,from(#5bc0de),to(#31b0d5));background-image:-webkit-linear-gradient(top,#5bc0de,0,#31b0d5,100%);background-image:-moz-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%);background-repeat:repeat-x;border-color:#2aabd2;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0)}.btn-info:active,.btn-info.active{background-color:#31b0d5;border-color:#2aabd2}.thumbnail,.img-thumbnail{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.dropdown-menu>li>a:hover,.dropdown-menu>li>a:focus,.dropdown-menu>.active>a,.dropdown-menu>.active>a:hover,.dropdown-menu>.active>a:focus{background-color:#357ebd;background-image:-webkit-gradient(linear,left 0,left 100%,from(#428bca),to(#357ebd));background-image:-webkit-linear-gradient(top,#428bca,0,#357ebd,100%);background-image:-moz-linear-gradient(top,#428bca 0,#357ebd 100%);background-image:linear-gradient(to bottom,#428bca 0,#357ebd 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0)}.navbar{background-image:-webkit-gradient(linear,left 0,left 100%,from(#fff),to(#f8f8f8));background-image:-webkit-linear-gradient(top,#fff,0,#f8f8f8,100%);background-image:-moz-linear-gradient(top,#fff 0,#f8f8f8 100%);background-image:linear-gradient(to bottom,#fff 0,#f8f8f8 100%);background-repeat:repeat-x;border-radius:4px;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff8f8f8', GradientType=0);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075);box-shadow:inset 0 1px 0 rgba(255,255,255,.15),0 1px 5px rgba(0,0,0,.075)}.navbar .navbar-nav>.active>a{background-color:#f8f8f8}.navbar-brand,.navbar-nav>li>a{text-shadow:0 1px 0 rgba(255,255,255,.25)}.navbar-inverse{background-image:-webkit-gradient(linear,left 0,left 100%,from(#3c3c3c),to(#222));background-image:-webkit-linear-gradient(top,#3c3c3c,0,#222,100%);background-image:-moz-linear-gradient(top,#3c3c3c 0,#222 100%);background-image:linear-gradient(to bottom,#3c3c3c 0,#222 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff3c3c3c', endColorstr='#ff222222', GradientType=0)}.navbar-inverse .navbar-nav>.active>a{background-color:#222}.navbar-inverse .navbar-brand,.navbar-inverse .navbar-nav>li>a{text-shadow:0 -1px 0 rgba(0,0,0,.25)}.navbar-static-top,.navbar-fixed-top,.navbar-fixed-bottom{border-radius:0}.alert{text-shadow:0 1px 0 rgba(255,255,255,.2);-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 2px rgba(0,0,0,.05)}.alert-success{background-image:-webkit-gradient(linear,left 0,left 100%,from(#dff0d8),to(#c8e5bc));background-image:-webkit-linear-gradient(top,#dff0d8,0,#c8e5bc,100%);background-image:-moz-linear-gradient(top,#dff0d8 0,#c8e5bc 100%);background-image:linear-gradient(to bottom,#dff0d8 0,#c8e5bc 100%);background-repeat:repeat-x;border-color:#b2dba1;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffc8e5bc', GradientType=0)}.alert-info{background-image:-webkit-gradient(linear,left 0,left 100%,from(#d9edf7),to(#b9def0));background-image:-webkit-linear-gradient(top,#d9edf7,0,#b9def0,100%);background-image:-moz-linear-gradient(top,#d9edf7 0,#b9def0 100%);background-image:linear-gradient(to bottom,#d9edf7 0,#b9def0 100%);background-repeat:repeat-x;border-color:#9acfea;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffb9def0', GradientType=0)}.alert-warning{background-image:-webkit-gradient(linear,left 0,left 100%,from(#fcf8e3),to(#f8efc0));background-image:-webkit-linear-gradient(top,#fcf8e3,0,#f8efc0,100%);background-image:-moz-linear-gradient(top,#fcf8e3 0,#f8efc0 100%);background-image:linear-gradient(to bottom,#fcf8e3 0,#f8efc0 100%);background-repeat:repeat-x;border-color:#f5e79e;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fff8efc0', GradientType=0)}.alert-danger{background-image:-webkit-gradient(linear,left 0,left 100%,from(#f2dede),to(#e7c3c3));background-image:-webkit-linear-gradient(top,#f2dede,0,#e7c3c3,100%);background-image:-moz-linear-gradient(top,#f2dede 0,#e7c3c3 100%);background-image:linear-gradient(to bottom,#f2dede 0,#e7c3c3 100%);background-repeat:repeat-x;border-color:#dca7a7;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffe7c3c3', GradientType=0)}.progress{background-image:-webkit-gradient(linear,left 0,left 100%,from(#ebebeb),to(#f5f5f5));background-image:-webkit-linear-gradient(top,#ebebeb,0,#f5f5f5,100%);background-image:-moz-linear-gradient(top,#ebebeb 0,#f5f5f5 100%);background-image:linear-gradient(to bottom,#ebebeb 0,#f5f5f5 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffebebeb', endColorstr='#fff5f5f5', GradientType=0)}.progress-bar{background-image:-webkit-gradient(linear,left 0,left 100%,from(#428bca),to(#3071a9));background-image:-webkit-linear-gradient(top,#428bca,0,#3071a9,100%);background-image:-moz-linear-gradient(top,#428bca 0,#3071a9 100%);background-image:linear-gradient(to bottom,#428bca 0,#3071a9 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3071a9', GradientType=0)}.progress-bar-success{background-image:-webkit-gradient(linear,left 0,left 100%,from(#5cb85c),to(#449d44));background-image:-webkit-linear-gradient(top,#5cb85c,0,#449d44,100%);background-image:-moz-linear-gradient(top,#5cb85c 0,#449d44 100%);background-image:linear-gradient(to bottom,#5cb85c 0,#449d44 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5cb85c', endColorstr='#ff449d44', GradientType=0)}.progress-bar-info{background-image:-webkit-gradient(linear,left 0,left 100%,from(#5bc0de),to(#31b0d5));background-image:-webkit-linear-gradient(top,#5bc0de,0,#31b0d5,100%);background-image:-moz-linear-gradient(top,#5bc0de 0,#31b0d5 100%);background-image:linear-gradient(to bottom,#5bc0de 0,#31b0d5 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff31b0d5', GradientType=0)}.progress-bar-warning{background-image:-webkit-gradient(linear,left 0,left 100%,from(#f0ad4e),to(#ec971f));background-image:-webkit-linear-gradient(top,#f0ad4e,0,#ec971f,100%);background-image:-moz-linear-gradient(top,#f0ad4e 0,#ec971f 100%);background-image:linear-gradient(to bottom,#f0ad4e 0,#ec971f 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff0ad4e', endColorstr='#ffec971f', GradientType=0)}.progress-bar-danger{background-image:-webkit-gradient(linear,left 0,left 100%,from(#d9534f),to(#c9302c));background-image:-webkit-linear-gradient(top,#d9534f,0,#c9302c,100%);background-image:-moz-linear-gradient(top,#d9534f 0,#c9302c 100%);background-image:linear-gradient(to bottom,#d9534f 0,#c9302c 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9534f', endColorstr='#ffc9302c', GradientType=0)}.list-group{border-radius:4px;-webkit-box-shadow:0 1px 2px rgba(0,0,0,.075);box-shadow:0 1px 2px rgba(0,0,0,.075)}.list-group-item.active,.list-group-item.active:hover,.list-group-item.active:focus{text-shadow:0 -1px 0 #3071a9;background-image:-webkit-gradient(linear,left 0,left 100%,from(#428bca),to(#3278b3));background-image:-webkit-linear-gradient(top,#428bca,0,#3278b3,100%);background-image:-moz-linear-gradient(top,#428bca 0,#3278b3 100%);background-image:linear-gradient(to bottom,#428bca 0,#3278b3 100%);background-repeat:repeat-x;border-color:#3278b3;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff3278b3', GradientType=0)}.panel{-webkit-box-shadow:0 1px 2px rgba(0,0,0,.05);box-shadow:0 1px 2px rgba(0,0,0,.05)}.panel-default>.panel-heading{background-image:-webkit-gradient(linear,left 0,left 100%,from(#f5f5f5),to(#e8e8e8));background-image:-webkit-linear-gradient(top,#f5f5f5,0,#e8e8e8,100%);background-image:-moz-linear-gradient(top,#f5f5f5 0,#e8e8e8 100%);background-image:linear-gradient(to bottom,#f5f5f5 0,#e8e8e8 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#ffe8e8e8', GradientType=0)}.panel-primary>.panel-heading{background-image:-webkit-gradient(linear,left 0,left 100%,from(#428bca),to(#357ebd));background-image:-webkit-linear-gradient(top,#428bca,0,#357ebd,100%);background-image:-moz-linear-gradient(top,#428bca 0,#357ebd 100%);background-image:linear-gradient(to bottom,#428bca 0,#357ebd 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff357ebd', GradientType=0)}.panel-success>.panel-heading{background-image:-webkit-gradient(linear,left 0,left 100%,from(#dff0d8),to(#d0e9c6));background-image:-webkit-linear-gradient(top,#dff0d8,0,#d0e9c6,100%);background-image:-moz-linear-gradient(top,#dff0d8 0,#d0e9c6 100%);background-image:linear-gradient(to bottom,#dff0d8 0,#d0e9c6 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdff0d8', endColorstr='#ffd0e9c6', GradientType=0)}.panel-info>.panel-heading{background-image:-webkit-gradient(linear,left 0,left 100%,from(#d9edf7),to(#c4e3f3));background-image:-webkit-linear-gradient(top,#d9edf7,0,#c4e3f3,100%);background-image:-moz-linear-gradient(top,#d9edf7 0,#c4e3f3 100%);background-image:linear-gradient(to bottom,#d9edf7 0,#c4e3f3 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffd9edf7', endColorstr='#ffc4e3f3', GradientType=0)}.panel-warning>.panel-heading{background-image:-webkit-gradient(linear,left 0,left 100%,from(#fcf8e3),to(#faf2cc));background-image:-webkit-linear-gradient(top,#fcf8e3,0,#faf2cc,100%);background-image:-moz-linear-gradient(top,#fcf8e3 0,#faf2cc 100%);background-image:linear-gradient(to bottom,#fcf8e3 0,#faf2cc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffcf8e3', endColorstr='#fffaf2cc', GradientType=0)}.panel-danger>.panel-heading{background-image:-webkit-gradient(linear,left 0,left 100%,from(#f2dede),to(#ebcccc));background-image:-webkit-linear-gradient(top,#f2dede,0,#ebcccc,100%);background-image:-moz-linear-gradient(top,#f2dede 0,#ebcccc 100%);background-image:linear-gradient(to bottom,#f2dede 0,#ebcccc 100%);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2dede', endColorstr='#ffebcccc', GradientType=0)}.well{background-image:-webkit-gradient(linear,left 0,left 100%,from(#e8e8e8),to(#f5f5f5));background-image:-webkit-linear-gradient(top,#e8e8e8,0,#f5f5f5,100%);background-image:-moz-linear-gradient(top,#e8e8e8 0,#f5f5f5 100%);background-image:linear-gradient(to bottom,#e8e8e8 0,#f5f5f5 100%);background-repeat:repeat-x;border-color:#dcdcdc;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe8e8e8', endColorstr='#fff5f5f5', GradientType=0);-webkit-box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 3px rgba(0,0,0,.05),0 1px 0 rgba(255,255,255,.1)}pre code{display:block;padding:.5em;background:#F0F0F0}pre code,pre .subst,pre .tag .title,pre .lisp .title,pre .clojure .built_in,pre .nginx .title{color:#000}pre .string,pre .title,pre .constant,pre .parent,pre .tag .value,pre .rules .value,pre .rules .value .number,pre .preprocessor,pre .ruby .symbol,pre .ruby .symbol .string,pre .aggregate,pre .template_tag,pre .django .variable,pre .smalltalk .class,pre .addition,pre .flow,pre .stream,pre .bash .variable,pre .apache .tag,pre .apache .cbracket,pre .tex .command,pre .tex .special,pre .erlang_repl .function_or_atom,pre .markdown .header{color:#800}pre .comment,pre .annotation,pre .template_comment,pre .diff .header,pre .chunk,pre .markdown .blockquote{color:#888}pre .number,pre .date,pre .regexp,pre .literal,pre .smalltalk .symbol,pre .smalltalk .char,pre .go .constant,pre .change,pre .markdown .bullet,pre .markdown .link_url{color:#080}pre .label,pre .javadoc,pre .ruby .string,pre .decorator,pre .filter .argument,pre .localvars,pre .array,pre .attr_selector,pre .important,pre .pseudo,pre .pi,pre .doctype,pre .deletion,pre .envvar,pre .shebang,pre .apache .sqbracket,pre .nginx .built_in,pre .tex .formula,pre .erlang_repl .reserved,pre .prompt,pre .markdown .link_label,pre .vhdl .attribute,pre .clojure .attribute,pre .coffeescript .property{color:#88F}pre .keyword,pre .id,pre .phpdoc,pre .title,pre .built_in,pre .aggregate,pre .css .tag,pre .javadoctag,pre .phpdoc,pre .yardoctag,pre .smalltalk .class,pre .winutils,pre .bash .variable,pre .apache .tag,pre .go .typename,pre .tex .command,pre .markdown .strong,pre .request,pre .status{font-weight:700}pre .markdown .emphasis{font-style:italic}pre .nginx .built_in{font-weight:400}pre .coffeescript .javascript,pre .javascript .xml,pre .tex .formula,pre .xml .javascript,pre .xml .vbscript,pre .xml .css,pre .xml .cdata{opacity:.5}/*! + * Font Awesome 4.0.3 by @davegandy - http://fontawesome.io - @fontawesome + * License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License) + */@font-face{font-family:FontAwesome;src:url(../fonts/fontawesome-webfont.eot?v=4.0.3);src:url(../fonts/fontawesome-webfont.eot?#iefix&v=4.0.3) format('embedded-opentype'),url(../fonts/fontawesome-webfont.woff?v=4.0.3) format('woff'),url(../fonts/fontawesome-webfont.ttf?v=4.0.3) format('truetype'),url(../fonts/fontawesome-webfont.svg?v=4.0.3#fontawesomeregular) format('svg');font-weight:400;font-style:normal}.fa{display:inline-block;font-family:FontAwesome;font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.fa-lg{font-size:1.3333333333333333em;line-height:.75em;vertical-align:-15%}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-fw{width:1.2857142857142858em;text-align:center}.fa-ul{padding-left:0;margin-left:2.142857142857143em;list-style-type:none}.fa-ul>li{position:relative}.fa-li{position:absolute;left:-2.142857142857143em;width:2.142857142857143em;top:.14285714285714285em;text-align:center}.fa-li.fa-lg{left:-1.8571428571428572em}.fa-border{padding:.2em .25em .15em;border:solid .08em #eee;border-radius:.1em}.pull-right{float:right}.pull-left{float:left}.fa.pull-left{margin-right:.3em}.fa.pull-right{margin-left:.3em}.fa-spin{-webkit-animation:spin 2s infinite linear;-moz-animation:spin 2s infinite linear;-o-animation:spin 2s infinite linear;animation:spin 2s infinite linear}@-moz-keyframes spin{0%{-moz-transform:rotate(0deg)}100%{-moz-transform:rotate(359deg)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(359deg)}}@-o-keyframes spin{0%{-o-transform:rotate(0deg)}100%{-o-transform:rotate(359deg)}}@-ms-keyframes spin{0%{-ms-transform:rotate(0deg)}100%{-ms-transform:rotate(359deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(359deg)}}.fa-rotate-90{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2);-webkit-transform:rotate(180deg);-moz-transform:rotate(180deg);-ms-transform:rotate(180deg);-o-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=3);-webkit-transform:rotate(270deg);-moz-transform:rotate(270deg);-ms-transform:rotate(270deg);-o-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1);-webkit-transform:scale(-1,1);-moz-transform:scale(-1,1);-ms-transform:scale(-1,1);-o-transform:scale(-1,1);transform:scale(-1,1)}.fa-flip-vertical{filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1);-webkit-transform:scale(1,-1);-moz-transform:scale(1,-1);-ms-transform:scale(1,-1);-o-transform:scale(1,-1);transform:scale(1,-1)}.fa-stack{position:relative;display:inline-block;width:2em;height:2em;line-height:2em;vertical-align:middle}.fa-stack-1x,.fa-stack-2x{position:absolute;left:0;width:100%;text-align:center}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-glass:before{content:"\f000"}.fa-music:before{content:"\f001"}.fa-search:before{content:"\f002"}.fa-envelope-o:before{content:"\f003"}.fa-heart:before{content:"\f004"}.fa-star:before{content:"\f005"}.fa-star-o:before{content:"\f006"}.fa-user:before{content:"\f007"}.fa-film:before{content:"\f008"}.fa-th-large:before{content:"\f009"}.fa-th:before{content:"\f00a"}.fa-th-list:before{content:"\f00b"}.fa-check:before{content:"\f00c"}.fa-times:before{content:"\f00d"}.fa-search-plus:before{content:"\f00e"}.fa-search-minus:before{content:"\f010"}.fa-power-off:before{content:"\f011"}.fa-signal:before{content:"\f012"}.fa-gear:before,.fa-cog:before{content:"\f013"}.fa-trash-o:before{content:"\f014"}.fa-home:before{content:"\f015"}.fa-file-o:before{content:"\f016"}.fa-clock-o:before{content:"\f017"}.fa-road:before{content:"\f018"}.fa-download:before{content:"\f019"}.fa-arrow-circle-o-down:before{content:"\f01a"}.fa-arrow-circle-o-up:before{content:"\f01b"}.fa-inbox:before{content:"\f01c"}.fa-play-circle-o:before{content:"\f01d"}.fa-rotate-right:before,.fa-repeat:before{content:"\f01e"}.fa-refresh:before{content:"\f021"}.fa-list-alt:before{content:"\f022"}.fa-lock:before{content:"\f023"}.fa-flag:before{content:"\f024"}.fa-headphones:before{content:"\f025"}.fa-volume-off:before{content:"\f026"}.fa-volume-down:before{content:"\f027"}.fa-volume-up:before{content:"\f028"}.fa-qrcode:before{content:"\f029"}.fa-barcode:before{content:"\f02a"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-book:before{content:"\f02d"}.fa-bookmark:before{content:"\f02e"}.fa-print:before{content:"\f02f"}.fa-camera:before{content:"\f030"}.fa-font:before{content:"\f031"}.fa-bold:before{content:"\f032"}.fa-italic:before{content:"\f033"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-align-left:before{content:"\f036"}.fa-align-center:before{content:"\f037"}.fa-align-right:before{content:"\f038"}.fa-align-justify:before{content:"\f039"}.fa-list:before{content:"\f03a"}.fa-dedent:before,.fa-outdent:before{content:"\f03b"}.fa-indent:before{content:"\f03c"}.fa-video-camera:before{content:"\f03d"}.fa-picture-o:before{content:"\f03e"}.fa-pencil:before{content:"\f040"}.fa-map-marker:before{content:"\f041"}.fa-adjust:before{content:"\f042"}.fa-tint:before{content:"\f043"}.fa-edit:before,.fa-pencil-square-o:before{content:"\f044"}.fa-share-square-o:before{content:"\f045"}.fa-check-square-o:before{content:"\f046"}.fa-arrows:before{content:"\f047"}.fa-step-backward:before{content:"\f048"}.fa-fast-backward:before{content:"\f049"}.fa-backward:before{content:"\f04a"}.fa-play:before{content:"\f04b"}.fa-pause:before{content:"\f04c"}.fa-stop:before{content:"\f04d"}.fa-forward:before{content:"\f04e"}.fa-fast-forward:before{content:"\f050"}.fa-step-forward:before{content:"\f051"}.fa-eject:before{content:"\f052"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-plus-circle:before{content:"\f055"}.fa-minus-circle:before{content:"\f056"}.fa-times-circle:before{content:"\f057"}.fa-check-circle:before{content:"\f058"}.fa-question-circle:before{content:"\f059"}.fa-info-circle:before{content:"\f05a"}.fa-crosshairs:before{content:"\f05b"}.fa-times-circle-o:before{content:"\f05c"}.fa-check-circle-o:before{content:"\f05d"}.fa-ban:before{content:"\f05e"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrow-down:before{content:"\f063"}.fa-mail-forward:before,.fa-share:before{content:"\f064"}.fa-expand:before{content:"\f065"}.fa-compress:before{content:"\f066"}.fa-plus:before{content:"\f067"}.fa-minus:before{content:"\f068"}.fa-asterisk:before{content:"\f069"}.fa-exclamation-circle:before{content:"\f06a"}.fa-gift:before{content:"\f06b"}.fa-leaf:before{content:"\f06c"}.fa-fire:before{content:"\f06d"}.fa-eye:before{content:"\f06e"}.fa-eye-slash:before{content:"\f070"}.fa-warning:before,.fa-exclamation-triangle:before{content:"\f071"}.fa-plane:before{content:"\f072"}.fa-calendar:before{content:"\f073"}.fa-random:before{content:"\f074"}.fa-comment:before{content:"\f075"}.fa-magnet:before{content:"\f076"}.fa-chevron-up:before{content:"\f077"}.fa-chevron-down:before{content:"\f078"}.fa-retweet:before{content:"\f079"}.fa-shopping-cart:before{content:"\f07a"}.fa-folder:before{content:"\f07b"}.fa-folder-open:before{content:"\f07c"}.fa-arrows-v:before{content:"\f07d"}.fa-arrows-h:before{content:"\f07e"}.fa-bar-chart-o:before{content:"\f080"}.fa-twitter-square:before{content:"\f081"}.fa-facebook-square:before{content:"\f082"}.fa-camera-retro:before{content:"\f083"}.fa-key:before{content:"\f084"}.fa-gears:before,.fa-cogs:before{content:"\f085"}.fa-comments:before{content:"\f086"}.fa-thumbs-o-up:before{content:"\f087"}.fa-thumbs-o-down:before{content:"\f088"}.fa-star-half:before{content:"\f089"}.fa-heart-o:before{content:"\f08a"}.fa-sign-out:before{content:"\f08b"}.fa-linkedin-square:before{content:"\f08c"}.fa-thumb-tack:before{content:"\f08d"}.fa-external-link:before{content:"\f08e"}.fa-sign-in:before{content:"\f090"}.fa-trophy:before{content:"\f091"}.fa-github-square:before{content:"\f092"}.fa-upload:before{content:"\f093"}.fa-lemon-o:before{content:"\f094"}.fa-phone:before{content:"\f095"}.fa-square-o:before{content:"\f096"}.fa-bookmark-o:before{content:"\f097"}.fa-phone-square:before{content:"\f098"}.fa-twitter:before{content:"\f099"}.fa-facebook:before{content:"\f09a"}.fa-github:before{content:"\f09b"}.fa-unlock:before{content:"\f09c"}.fa-credit-card:before{content:"\f09d"}.fa-rss:before{content:"\f09e"}.fa-hdd-o:before{content:"\f0a0"}.fa-bullhorn:before{content:"\f0a1"}.fa-bell:before{content:"\f0f3"}.fa-certificate:before{content:"\f0a3"}.fa-hand-o-right:before{content:"\f0a4"}.fa-hand-o-left:before{content:"\f0a5"}.fa-hand-o-up:before{content:"\f0a6"}.fa-hand-o-down:before{content:"\f0a7"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-globe:before{content:"\f0ac"}.fa-wrench:before{content:"\f0ad"}.fa-tasks:before{content:"\f0ae"}.fa-filter:before{content:"\f0b0"}.fa-briefcase:before{content:"\f0b1"}.fa-arrows-alt:before{content:"\f0b2"}.fa-group:before,.fa-users:before{content:"\f0c0"}.fa-chain:before,.fa-link:before{content:"\f0c1"}.fa-cloud:before{content:"\f0c2"}.fa-flask:before{content:"\f0c3"}.fa-cut:before,.fa-scissors:before{content:"\f0c4"}.fa-copy:before,.fa-files-o:before{content:"\f0c5"}.fa-paperclip:before{content:"\f0c6"}.fa-save:before,.fa-floppy-o:before{content:"\f0c7"}.fa-square:before{content:"\f0c8"}.fa-bars:before{content:"\f0c9"}.fa-list-ul:before{content:"\f0ca"}.fa-list-ol:before{content:"\f0cb"}.fa-strikethrough:before{content:"\f0cc"}.fa-underline:before{content:"\f0cd"}.fa-table:before{content:"\f0ce"}.fa-magic:before{content:"\f0d0"}.fa-truck:before{content:"\f0d1"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-square:before{content:"\f0d3"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-plus:before{content:"\f0d5"}.fa-money:before{content:"\f0d6"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-up:before{content:"\f0d8"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-columns:before{content:"\f0db"}.fa-unsorted:before,.fa-sort:before{content:"\f0dc"}.fa-sort-down:before,.fa-sort-asc:before{content:"\f0dd"}.fa-sort-up:before,.fa-sort-desc:before{content:"\f0de"}.fa-envelope:before{content:"\f0e0"}.fa-linkedin:before{content:"\f0e1"}.fa-rotate-left:before,.fa-undo:before{content:"\f0e2"}.fa-legal:before,.fa-gavel:before{content:"\f0e3"}.fa-dashboard:before,.fa-tachometer:before{content:"\f0e4"}.fa-comment-o:before{content:"\f0e5"}.fa-comments-o:before{content:"\f0e6"}.fa-flash:before,.fa-bolt:before{content:"\f0e7"}.fa-sitemap:before{content:"\f0e8"}.fa-umbrella:before{content:"\f0e9"}.fa-paste:before,.fa-clipboard:before{content:"\f0ea"}.fa-lightbulb-o:before{content:"\f0eb"}.fa-exchange:before{content:"\f0ec"}.fa-cloud-download:before{content:"\f0ed"}.fa-cloud-upload:before{content:"\f0ee"}.fa-user-md:before{content:"\f0f0"}.fa-stethoscope:before{content:"\f0f1"}.fa-suitcase:before{content:"\f0f2"}.fa-bell-o:before{content:"\f0a2"}.fa-coffee:before{content:"\f0f4"}.fa-cutlery:before{content:"\f0f5"}.fa-file-text-o:before{content:"\f0f6"}.fa-building-o:before{content:"\f0f7"}.fa-hospital-o:before{content:"\f0f8"}.fa-ambulance:before{content:"\f0f9"}.fa-medkit:before{content:"\f0fa"}.fa-fighter-jet:before{content:"\f0fb"}.fa-beer:before{content:"\f0fc"}.fa-h-square:before{content:"\f0fd"}.fa-plus-square:before{content:"\f0fe"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angle-down:before{content:"\f107"}.fa-desktop:before{content:"\f108"}.fa-laptop:before{content:"\f109"}.fa-tablet:before{content:"\f10a"}.fa-mobile-phone:before,.fa-mobile:before{content:"\f10b"}.fa-circle-o:before{content:"\f10c"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-spinner:before{content:"\f110"}.fa-circle:before{content:"\f111"}.fa-mail-reply:before,.fa-reply:before{content:"\f112"}.fa-github-alt:before{content:"\f113"}.fa-folder-o:before{content:"\f114"}.fa-folder-open-o:before{content:"\f115"}.fa-smile-o:before{content:"\f118"}.fa-frown-o:before{content:"\f119"}.fa-meh-o:before{content:"\f11a"}.fa-gamepad:before{content:"\f11b"}.fa-keyboard-o:before{content:"\f11c"}.fa-flag-o:before{content:"\f11d"}.fa-flag-checkered:before{content:"\f11e"}.fa-terminal:before{content:"\f120"}.fa-code:before{content:"\f121"}.fa-reply-all:before{content:"\f122"}.fa-mail-reply-all:before{content:"\f122"}.fa-star-half-empty:before,.fa-star-half-full:before,.fa-star-half-o:before{content:"\f123"}.fa-location-arrow:before{content:"\f124"}.fa-crop:before{content:"\f125"}.fa-code-fork:before{content:"\f126"}.fa-unlink:before,.fa-chain-broken:before{content:"\f127"}.fa-question:before{content:"\f128"}.fa-info:before{content:"\f129"}.fa-exclamation:before{content:"\f12a"}.fa-superscript:before{content:"\f12b"}.fa-subscript:before{content:"\f12c"}.fa-eraser:before{content:"\f12d"}.fa-puzzle-piece:before{content:"\f12e"}.fa-microphone:before{content:"\f130"}.fa-microphone-slash:before{content:"\f131"}.fa-shield:before{content:"\f132"}.fa-calendar-o:before{content:"\f133"}.fa-fire-extinguisher:before{content:"\f134"}.fa-rocket:before{content:"\f135"}.fa-maxcdn:before{content:"\f136"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-html5:before{content:"\f13b"}.fa-css3:before{content:"\f13c"}.fa-anchor:before{content:"\f13d"}.fa-unlock-alt:before{content:"\f13e"}.fa-bullseye:before{content:"\f140"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-rss-square:before{content:"\f143"}.fa-play-circle:before{content:"\f144"}.fa-ticket:before{content:"\f145"}.fa-minus-square:before{content:"\f146"}.fa-minus-square-o:before{content:"\f147"}.fa-level-up:before{content:"\f148"}.fa-level-down:before{content:"\f149"}.fa-check-square:before{content:"\f14a"}.fa-pencil-square:before{content:"\f14b"}.fa-external-link-square:before{content:"\f14c"}.fa-share-square:before{content:"\f14d"}.fa-compass:before{content:"\f14e"}.fa-toggle-down:before,.fa-caret-square-o-down:before{content:"\f150"}.fa-toggle-up:before,.fa-caret-square-o-up:before{content:"\f151"}.fa-toggle-right:before,.fa-caret-square-o-right:before{content:"\f152"}.fa-euro:before,.fa-eur:before{content:"\f153"}.fa-gbp:before{content:"\f154"}.fa-dollar:before,.fa-usd:before{content:"\f155"}.fa-rupee:before,.fa-inr:before{content:"\f156"}.fa-cny:before,.fa-rmb:before,.fa-yen:before,.fa-jpy:before{content:"\f157"}.fa-ruble:before,.fa-rouble:before,.fa-rub:before{content:"\f158"}.fa-won:before,.fa-krw:before{content:"\f159"}.fa-bitcoin:before,.fa-btc:before{content:"\f15a"}.fa-file:before{content:"\f15b"}.fa-file-text:before{content:"\f15c"}.fa-sort-alpha-asc:before{content:"\f15d"}.fa-sort-alpha-desc:before{content:"\f15e"}.fa-sort-amount-asc:before{content:"\f160"}.fa-sort-amount-desc:before{content:"\f161"}.fa-sort-numeric-asc:before{content:"\f162"}.fa-sort-numeric-desc:before{content:"\f163"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbs-down:before{content:"\f165"}.fa-youtube-square:before{content:"\f166"}.fa-youtube:before{content:"\f167"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-youtube-play:before{content:"\f16a"}.fa-dropbox:before{content:"\f16b"}.fa-stack-overflow:before{content:"\f16c"}.fa-instagram:before{content:"\f16d"}.fa-flickr:before{content:"\f16e"}.fa-adn:before{content:"\f170"}.fa-bitbucket:before{content:"\f171"}.fa-bitbucket-square:before{content:"\f172"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-long-arrow-down:before{content:"\f175"}.fa-long-arrow-up:before{content:"\f176"}.fa-long-arrow-left:before{content:"\f177"}.fa-long-arrow-right:before{content:"\f178"}.fa-apple:before{content:"\f179"}.fa-windows:before{content:"\f17a"}.fa-android:before{content:"\f17b"}.fa-linux:before{content:"\f17c"}.fa-dribbble:before{content:"\f17d"}.fa-skype:before{content:"\f17e"}.fa-foursquare:before{content:"\f180"}.fa-trello:before{content:"\f181"}.fa-female:before{content:"\f182"}.fa-male:before{content:"\f183"}.fa-gittip:before{content:"\f184"}.fa-sun-o:before{content:"\f185"}.fa-moon-o:before{content:"\f186"}.fa-archive:before{content:"\f187"}.fa-bug:before{content:"\f188"}.fa-vk:before{content:"\f189"}.fa-weibo:before{content:"\f18a"}.fa-renren:before{content:"\f18b"}.fa-pagelines:before{content:"\f18c"}.fa-stack-exchange:before{content:"\f18d"}.fa-arrow-circle-o-right:before{content:"\f18e"}.fa-arrow-circle-o-left:before{content:"\f190"}.fa-toggle-left:before,.fa-caret-square-o-left:before{content:"\f191"}.fa-dot-circle-o:before{content:"\f192"}.fa-wheelchair:before{content:"\f193"}.fa-vimeo-square:before{content:"\f194"}.fa-turkish-lira:before,.fa-try:before{content:"\f195"}.fa-plus-square-o:before{content:"\f196"} \ No newline at end of file