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