Liferay.Loader.define("@liferay/object-web@1.0.181/js/components/ObjectField/Tabs/BasicInfo/TranslationOptionsContainer",["module","exports","require","@frontend-taglib-clay$clayui/alert","@frontend-taglib-clay$clayui/icon","@frontend-taglib-clay$clayui/link","@frontend-taglib-clay$clayui/tooltip","@liferay/object-js-components-web","liferay!frontend-js-react-web$react","./TranslationOptionsContainer.scss"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.TranslationOptionsContainer=function TranslationOptionsContainer({objectDefinition:e,published:t,setValues:a,values:c}){const u=("LongText"===c.businessType||"RichText"===c.businessType||"Text"===c.businessType)&&!c.system;return s.default.createElement(r.Card,{title:Liferay.Language.get("translation-options")},!u&&s.default.createElement(n.default,{displayType:"info",title:"".concat(Liferay.Language.get("info"),":")},"".concat(Liferay.Language.get("this-field-type-does-not-support-translations")," "),s.default.createElement(l.default,{href:"#",target:"_blank",weight:"semi-bold"},Liferay.Language.get("click-here-for-documentation"))),s.default.createElement("div",{className:"lfr__objects-translation-options-container"},s.default.createElement(r.Toggle,{disabled:t||!u||!e.enableLocalization,label:Liferay.Language.get("enable-entry-translations"),onToggle:e=>a({localized:e,required:Liferay.FeatureFlags["LPS-172017"]?!e&&c.required:c.required}),toggled:c.localized}),s.default.createElement(o.ClayTooltipProvider,null,s.default.createElement("span",{title:Liferay.Language.get("users-will-be-able-to-add-translations-for-the-entries-of-this-field")},s.default.createElement(i.default,{className:"lfr__objects-translation-options-container-icon",symbol:"question-circle-full"})))))};var n=_interopRequireDefault(a("@frontend-taglib-clay$clayui/alert")),i=_interopRequireDefault(a("@frontend-taglib-clay$clayui/icon")),l=_interopRequireDefault(a("@frontend-taglib-clay$clayui/link")),o=a("@frontend-taglib-clay$clayui/tooltip"),r=a("@liferay/object-js-components-web"),s=_interopRequireDefault(a("liferay!frontend-js-react-web$react"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}a("./TranslationOptionsContainer.scss")}}));
//# sourceMappingURL=TranslationOptionsContainer.js.map