!function(t){"object"==typeof module&&"object"==typeof module.exports?t(require,exports):"function"==typeof define&&define.amd&&define(["require","exports","tslib","react"],t)}(function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n,r=t("tslib"),s=r.__importDefault(t("react")),i="__synthetic_button",r=(n=s.default.Component,r.__extends(o,n),o.find=function(t){for(var e=t.target;e!==t.currentTarget&&e instanceof HTMLElement;){var n=e[i];if(n instanceof o)return n;e=e.parentNode}},o.search=function(t){for(var e=t.querySelectorAll("div"),n=[],r=0;r<e.length;r++){var a=e.item(r)[i];a instanceof o&&n.push(a)}return n},o.prototype.init=function(t){var e=this.target;void 0!==e&&(this.target=void 0,e[i]=void 0),null!==t&&((this.target=t)[i]=this)},o.prototype.render=function(){var e=this,t=this.props,n=this.state||{},r=n.states,a=["button"];if(null!=r)for(var i in r)!0===r[i]&&a.push(i);var o=n.content,n=n.symbol;return s.default.createElement("div",{className:this.props.className,ref:function(t){return e.init(t)}},s.default.createElement("div",{className:a.join(" "),"aria-label":t.ariaLabel},s.default.createElement("span",{className:"content"},o),s.default.createElement("span",{className:"symbol"},n)))},o);function o(){return null!==n&&n.apply(this,arguments)||this}e.SyntheticButton=r});