!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);n.n(r)},function(e,t,n){wp.element.BF_Repeater=n(2)},function(e,t){function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(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 o(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 i=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(e){function t(e){n(this,t);var o=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.state={items:[]},o}return o(t,e),i(t,[{key:"shouldComponentUpdate",value:function(e,t){return this.state!==t}},{key:"appendItem",value:function(){var e=this.state.items.concat([1]);this.setState({items:e})}},{key:"render",value:function(){var e=this,t=this.state.items.map(function(t){return wp.element.createElement("div",{className:"bf-repeater-item",key:t},e.props.children)});return wp.element.createElement("div",{class:"bf-controls bf-nonrepeater-controls bf-controls-repeater-option no-desc bf-clearfix"},wp.element.createElement("div",{className:"bf-repeater-items-container bf-clearfix"},t),wp.element.createElement("button",{className:"bf-clone-repeater-item bf-button bf-main-button",onClick:this.appendItem.bind(this)},"Add New Inline Related Post"))}}]),t}(wp.element.Component);e.exports=a}]);