"use strict";(function(){var e,t,i,n=function(e,t){return function(){return e.apply(t,arguments)}},r=function(e,t){function i(){this.constructor=e}for(var n in t)o.call(t,n)&&(e[n]=t[n]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},o={}.hasOwnProperty,l=[].slice;e=require("react"),i=require("reactcss"),t=function(t){function o(){return this.handleControlsClick=n(this.handleControlsClick,this),this.handleClick=n(this.handleClick,this),o.__super__.constructor.apply(this,arguments)}return r(o,t),o.prototype.handleClick=function(e){if(null!=this.props.onClick)return this.props.onClick(e)},o.prototype.handleControlsClick=function(e){if(null!=this.props.onClick)return this.props.onClick(e,this.props.children)},o.prototype.render=function(){var t,n,r,o,s,c;return c=i["default"]({"default":{tile:{fontSize:"16px",padding:"16px",display:"flex",justifyContent:"space-between",color:this.props.color},primary:{display:"flex",width:"100%"},sidebar:{minWidth:"56px",maxWidth:"56px",flexBasis:"56"},content:{background:"none",flex:"1",maxWidth:"95%"},secondary:{flexBasis:"42",textAlign:"center"},sidebarIcon:{marginTop:"-12px",marginLeft:"-12px",marginBottom:"-12px"}},clickable:{tile:{cursor:"pointer"}},divider:{tile:{boxShadow:"inset 0 -1px 0 rgba(0,0,0,.12)"}},condensed:{tile:{paddingBottom:"0",paddingTop:"0"},sidebar:{minWidth:"28px",maxWidth:"28px",flexBasis:"28"}},"left-pad":{tile:{paddingLeft:"0"}}},{clickable:null!=this.props.onClick},this.props),e.createElement("div",{style:c.tile,onClick:this.props.controls?this.handleControlsClick:this.handleClick,className:"flexbox-fix"},"[object Array]"===Object.prototype.toString.call(this.props.children)?(o=this.props.children,s=o[0],n=2<=o.length?l.call(o,1):[],o,e.createElement("div",{style:c.primary,className:"flexbox-fix"},e.createElement("div",{style:c.sidebar,key:"sidebar-"+s},"Icon"===s.type.name?e.createElement("div",{style:c.sidebarIcon},s):s),e.createElement("div",{style:c.content,key:"content-"+n},function(){var i,o,l;for(l=[],r=i=0,o=n.length;i<o;r=++i)t=n[r],l.push(e.createElement("div",{key:r},t));return l}()))):e.createElement("div",{style:c.primary},e.createElement("div",{style:c.content},this.props.children)),this.props.secondaryAction?e.createElement("div",{style:c.secondary},this.props.secondaryAction):void 0)},o}(e.Component),module.exports=t}).call(void 0);