Liferay.Loader.define("@liferay/object-web@1.0.181/js/components/ObjectAction/tabs/BasicInfo",["module","exports","require","@frontend-taglib-clay$clayui/form","@liferay/object-js-components-web","liferay!frontend-js-react-web$react","../../../utils/constants","../../../utils/string"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function BasicInfo({errors:e,handleChange:t,isApproved:r,readOnly:c,setValues:u,values:f}){var d;return o.default.createElement(n.Card,{title:Liferay.Language.get("basic-info")},o.default.createElement(n.InputLocalized,{error:e.label,label:Liferay.Language.get("action-label"),name:"label",onChange:e=>{var t;return u(_objectSpread(_objectSpread(_objectSpread({},f),!r&&{name:(0,i.toCamelCase)(null!==(t=e[l.defaultLanguageId])&&void 0!==t?t:"")}),{},{label:e}))},required:!0,translations:null!==(d=f.label)&&void 0!==d?d:{[l.defaultLanguageId]:""}}),o.default.createElement(n.Input,{disabled:r,error:e.name,label:Liferay.Language.get("action-name"),name:"name",onChange:t,required:!0,value:f.name}),o.default.createElement(n.Input,{component:"textarea",error:e.description,label:Liferay.Language.get("description"),name:"description",onChange:t,value:f.description}),o.default.createElement(a.default.Group,null,o.default.createElement(n.Toggle,{disabled:c,label:Liferay.Language.get("active"),name:"indexed",onToggle:e=>u({active:e}),toggled:f.active})))};var a=_interopRequireDefault(r("@frontend-taglib-clay$clayui/form")),n=r("@liferay/object-js-components-web"),o=_interopRequireDefault(r("liferay!frontend-js-react-web$react")),l=r("../../../utils/constants"),i=r("../../../utils/string");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}}}));
//# sourceMappingURL=BasicInfo.js.map