Liferay.Loader.define("@liferay/layout-content-page-editor-web@3.0.169/page_editor/plugins/comments/components/CommentForm",["module","exports","require","@frontend-taglib-clay$clayui/button","liferay!frontend-js-react-web$prop-types","liferay!frontend-js-react-web$react","../../../common/components/Button","../../../common/components/Editor","../../../common/components/InvisibleFieldset"],(function(e,t,o){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function CommentForm({autoFocus:e=!1,id:t,loading:o=!1,onCancelButtonClick:u,onFormFocus:c=(()=>{}),onSubmitButtonClick:m,onTextareaChange:d,showButtons:f=!1,submitButtonLabel:s,textareaContent:p}){return a.default.createElement("form",{onFocus:c},a.default.createElement(i.default,{disabled:o},a.default.createElement("div",{className:"form-group form-group-sm"},a.default.createElement(l.default,{autoFocus:e,configurationName:"comment",id:t,initialValue:p,label:Liferay.Language.get("add-comment"),onChange:d,placeholder:Liferay.Language.get("type-your-comment-here")})),f&&a.default.createElement(n.default.Group,{className:"mb-3",spaced:!0},a.default.createElement(r.default,{disabled:!p,displayType:"primary",loading:o,onClick:m,size:"sm"},s),a.default.createElement(r.default,{displayType:"secondary",onClick:u,size:"sm",type:"button"},Liferay.Language.get("cancel")))))};var n=_interopRequireDefault(o("@frontend-taglib-clay$clayui/button")),a=(_interopRequireDefault(o("liferay!frontend-js-react-web$prop-types")),_interopRequireDefault(o("liferay!frontend-js-react-web$react"))),r=_interopRequireDefault(o("../../../common/components/Button")),l=_interopRequireDefault(o("../../../common/components/Editor")),i=_interopRequireDefault(o("../../../common/components/InvisibleFieldset"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}}}));
//# sourceMappingURL=CommentForm.js.map