text: "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BlockContext=void 0;var _createClass=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),_react=require("react"),React=_interopRequireWildcard(_react),_block=require("../css/block"),_layout=require("./layout");function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var BlockContext=exports.BlockContext=React.createContext({}),_class=function(){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,React.Component),_createClass(e,[{key:"render",value:function(){var a=this,e=this.props,l=e.getTheme,i=e.children,t=e.enlarged,u=void 0!==t&&t,r=e.isContent,s=void 0!==r&&r;return React.createElement(_layout.EnlargeContext.Consumer,null,function(e){var t=e.enlargeValue,r=e.enlarge,n=e.onClick,o=e.order,c=e.talkRoot;return o&&(o.current=o.current+1,a.order=o.current),React.createElement(BlockContext.Consumer,null,function(e){return c&&c(e.father,a.order),React.createElement(BlockContext.Provider,{value:{father:a.order}},React.createElement(_block.Block,{theme:l(),isContent:s,display:!(t&&!~t.indexOf(a.order)&&r),enlarge:r},i,u?React.createElement(_block.Enlarge,{order:a.order,onClick:function(){return n&&n(a.order)}},React.createElement(_block.IconWrap,{iconClass:r?"lugia-icon-direction_shrink":"lugia-icon-direction_arrows_alt"})):null))})})}}]),e}();exports.default=_class;