Liferay.Loader.define("@liferay/object-web@1.0.145/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/string"],(function(e,t,r){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function BasicInfo({errors:t,handleChange:r,isApproved:l,readOnly:c,setValues:u,values:f}){var d;return o.default.createElement(a.Card,{title:Liferay.Language.get("basic-info")},o.default.createElement(a.InputLocalized,{error:t.label,label:Liferay.Language.get("action-label"),name:"label",onChange:t=>{var r;return u(_objectSpread(_objectSpread(_objectSpread({},f),!l&&{name:(0,i.toCamelCase)(null!==(r=t[e])&&void 0!==r?r:"")}),{},{label:t}))},required:!0,translations:null!==(d=f.label)&&void 0!==d?d:{[e]:""}}),o.default.createElement(a.Input,{disabled:l,error:t.name,label:Liferay.Language.get("action-name"),name:"name",onChange:r,required:!0,value:f.name}),o.default.createElement(a.Input,{component:"textarea",error:t.description,label:Liferay.Language.get("description"),name:"description",onChange:r,value:f.description}),o.default.createElement(n.default.Group,null,o.default.createElement(n.ClayToggle,{disabled:c,label:Liferay.Language.get("active"),name:"indexed",onToggle:e=>u({active:e}),toggled:f.active})))};var n=function _interopRequireWildcard(e){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var o=n?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(r,a,o):r[a]=e[a]}r.default=e,t&&t.set(e,r);return r}(r("@frontend-taglib-clay$clayui/form")),a=r("@liferay/object-js-components-web"),o=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(r("liferay!frontend-js-react-web$react")),i=r("../../../utils/string");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}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}const e=Liferay.ThemeDisplay.getDefaultLanguageId()}}));
//# sourceMappingURL=BasicInfo.js.map