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