text: define("bitbucket/internal/bbui/aui-react/inline-dialog","exports classnames lodash prop-types react react-dom ./component".split(" "),function(f,a,h,m,c,n,g){Object.defineProperty(f,"__esModule",{value:!0});f.InlineDialogTrigger=void 0;var p=babelHelpers.interopRequireDefault(a);a=babelHelpers.interopRequireDefault(m);var l=babelHelpers.interopRequireDefault(c),q=babelHelpers.interopRequireDefault(g);g=f.InlineDialogTrigger=function(a){function b(a){babelHelpers.classCallCheck(this,b);var d=babelHelpers.possibleConstructorReturn(this,
  (b.__proto__||Object.getPrototypeOf(b)).call(this,a));d.elementType="button";d.triggerProps={"aria-controls":a.dialogId,"aria-haspopup":!0,className:(0,p.default)("aui-button",a.className),"data-aui-trigger":!0,role:"button",title:a.title,onFocus:a.onFocus,onBlur:a.onBlur};a.href&&(d.triggerProps=babelHelpers.extends({},d.triggerProps,{className:a.className,href:a.href,tabIndex:"0"}),d.elementType="a");return d}babelHelpers.inherits(b,a);babelHelpers.createClass(b,[{key:"render",value:function(){return l.default.createElement(this.elementType,
  this.triggerProps,this.props.children)}}]);return b}(c.Component);g.propTypes={children:a.default.node,className:a.default.string,dialogId:a.default.string.isRequired,href:a.default.string,title:a.default.string,onFocus:a.default.func,onBlur:a.default.func};g.defaultProps={className:"",href:"",title:""};c=function(a){function b(){var a,d,e,c;babelHelpers.classCallCheck(this,b);for(var f=arguments.length,g=Array(f),k=0;k<f;k++)g[k]=arguments[k];return c=(d=(e=babelHelpers.possibleConstructorReturn(this,
  (a=b.__proto__||Object.getPrototypeOf(b)).call.apply(a,[this].concat(g))),e),e.onHide=function(a){(0,h.isFunction)(e.props.onHide)&&(0,h.defer)(function(){return e.props.onHide(a)})},e.onShow=function(a){(0,h.isFunction)(e.props.onShow)&&(0,h.defer)(function(){return e.props.onShow(a)})},d),babelHelpers.possibleConstructorReturn(e,c)}babelHelpers.inherits(b,a);babelHelpers.createClass(b,[{key:"componentDidMount",value:function(){this._el=(0,n.findDOMNode)(this).querySelector("aui-inline-dialog");
  this._el.addEventListener("aui-hide",this.onHide);this._el.addEventListener("aui-show",this.onShow)}},{key:"componentWillUnmount",value:function(){this._el.removeEventListener("aui-hide",this.onHide);this._el.removeEventListener("aui-show",this.onShow)}},{key:"render",value:function(){var a=this.props,b=a.id;return l.default.createElement(q.default,{id:b,markup:'\x3caui-inline-dialog\n                            id\x3d"'+b+'"\n                            class\x3d"'+a.className+'"\n                            alignment\x3d"'+
  a.alignment+'"\n                            responds-to\x3d"'+a.respondsTo+'"\n                         \x3e\x3c/aui-inline-dialog\x3e',containerSelector:"#"+b+" .aui-inline-dialog-contents"},a.children)}}]);return b}(c.Component);c.propTypes={alignment:a.default.string,children:a.default.node,className:a.default.string,id:a.default.string.isRequired,onHide:a.default.func,onShow:a.default.func,respondsTo:a.default.oneOf(["toggle","hover"])};c.defaultProps={alignment:"right middle",className:"",respondsTo:"toggle"};
  f.default=c});