define(["require","exports","tslib","modules/clean/react/comments2/data/actions","modules/clean/react/comments2/data/logger","comments2/components/comment_editor/draft_utils"],(function(e,n,t,o,r,a){"use strict";function c(e,n,t){e(o.Actions.clearPendingNumberedAnnotation()),t&&r.logEvent("annotation_cancelled",{stream:n})}Object.defineProperty(n,"__esModule",{value:!0}),r=t.__importStar(r),n.clearPendingNumberedAnnotation=c,n.createSpectrumDocumentActionsAdapter=function(e,n){var t=e.dispatch,r=e.editorIsEmpty,i=e.stream,d=n.onThreadCreated,s=n.onThreadRepliedTo;return{onEditorStateChange:function(e){var n=a.contentIsEmpty(e);n!==r&&t(o.Actions.updateEditorIsEmpty(n))},onThreadMouseEnter:function(e){t(o.Actions.hoverThread(e))},onThreadMouseLeave:function(){t(o.Actions.hoverThread(void 0))},onThreadFocus:function(e){t(o.Actions.focusThread(e))},onThreadBlur:function(){t(o.Actions.focusThread(void 0))},onCommentDraftCancel:function(){c(t,i,!0)},onThreadCreated:function(e,n){d(e,n),c(t,i,!1)},onThreadRepliedTo:function(e,n){s(e,n),c(t,i,!1)}}}})); //# sourceMappingURL=spectrum_document.min.js-vflw211ie.map