Liferay.Loader.define("@liferay/object-web@1.0.145/js/components/ObjectView/BasicInfoScreen/BasicInfoScreen",["module","exports","require","@frontend-taglib-clay$clayui/form","@liferay/object-js-components-web","liferay!frontend-js-react-web$react","../objectViewContext"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function BasicInfoScreen(){const[{creationLanguageId:e,objectView:t},a]=(0,l.useViewContext)();let c;(0,n.invalidateRequired)((0,n.getLocalizableLabel)(e,t.name))&&(c=Liferay.Language.get("required"));return i.default.createElement(n.Card,{title:Liferay.Language.get("basic-info")},i.default.createElement(r.default.Group,null,i.default.createElement(n.Input,{disabled:!1,error:c,label:Liferay.Language.get("name"),name:"name",onChange:({target:{value:e}})=>{a({payload:{newName:e},type:l.TYPES.CHANGE_OBJECT_VIEW_NAME})},required:!0,value:(0,n.getLocalizableLabel)(e,t.name)})),i.default.createElement(r.default.Group,{className:"mb-0"},i.default.createElement(r.ClayCheckbox,{checked:t.defaultObjectView,disabled:!1,label:Liferay.Language.get("mark-as-default"),onChange:({target:{checked:e}})=>{(e=>{a({payload:{checked:e},type:l.TYPES.SET_OBJECT_VIEW_AS_DEFAULT})})(e)}})))};var r=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 a={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var i=r?Object.getOwnPropertyDescriptor(e,n):null;i&&(i.get||i.set)?Object.defineProperty(a,n,i):a[n]=e[n]}a.default=e,t&&t.set(e,a);return a}(a("@frontend-taglib-clay$clayui/form")),n=a("@liferay/object-js-components-web"),i=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(a("liferay!frontend-js-react-web$react")),l=a("../objectViewContext");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}}}));
//# sourceMappingURL=BasicInfoScreen.js.map