Liferay.Loader.define("translation-web@2.0.69/js/translate/components/TranslateActionBar/AutoTranslate",["module","exports","require","@frontend-taglib-clay$clayui/button","@frontend-taglib-clay$clayui/form","@frontend-taglib-clay$clayui/layout","@frontend-taglib-clay$clayui/loading-indicator","liferay!frontend-js-react-web$react","../../constants"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l=i(a("@frontend-taglib-clay$clayui/button")),n=i(a("@frontend-taglib-clay$clayui/form")),c=i(a("@frontend-taglib-clay$clayui/layout")),r=i(a("@frontend-taglib-clay$clayui/loading-indicator")),u=i(a("liferay!frontend-js-react-web$react")),d=a("../../constants");function i(e){return e&&e.__esModule?e:{default:e}}var o=({fetchAutoTranslateFields:e,fetchAutoTranslateStatus:t})=>{const{message:a,status:i}=t,o=i===d.FETCH_STATUS.LOADING;return u.default.createElement(c.default.ContentRow,{noGutters:"y",verticalAlign:"center"},u.default.createElement(c.default.ContentCol,null,u.default.createElement(l.default,{disabled:o,displayType:"secondary",onClick:e,small:!0,type:"button"},Liferay.Language.get("auto-translate"))),u.default.createElement(c.default.ContentCol,{className:"autotranslate-feedback"},o&&u.default.createElement("div",null,u.default.createElement("span",{className:"inline-item inline-item-before"},u.default.createElement(r.default,{small:!0})),u.default.createElement("span",{className:"inline-item"},Liferay.Language.get("requesting-translation"))),i===d.FETCH_STATUS.SUCCESS&&u.default.createElement("div",{className:"has-success"},u.default.createElement(n.default.FeedbackItem,{className:"mt-0"},u.default.createElement(n.default.FeedbackIndicator,{symbol:"check-circle-full"}),a)),i===d.FETCH_STATUS.ERROR&&u.default.createElement("div",{className:"has-error"},u.default.createElement(n.default.FeedbackItem,{className:"mt-0"},u.default.createElement(n.default.FeedbackIndicator,{symbol:"exclamation-full"}),a))))};t.default=o}}));
//# sourceMappingURL=AutoTranslate.js.map