Liferay.Loader.define("@liferay/object-web@1.0.145/js/components/Layout/InfoScreen/InfoScreen",["module","exports","require","@frontend-taglib-clay$clayui/form","@liferay/object-js-components-web","liferay!frontend-js-react-web$react","../objectLayoutContext"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;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 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")),n=a("@liferay/object-js-components-web"),o=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(a("liferay!frontend-js-react-web$react")),u=a("../objectLayoutContext");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}const e=Liferay.ThemeDisplay.getDefaultLanguageId();var _default=()=>{const[{isViewOnly:t,objectLayout:a},l]=(0,u.useLayoutContext)();let i;return(0,n.invalidateRequired)(a.name[e])&&(i=Liferay.Language.get("required")),o.default.createElement(n.Card,{title:Liferay.Language.get("basic-info")},o.default.createElement(n.Input,{disabled:t,error:i,label:Liferay.Language.get("name"),name:"name",onChange:({target:{value:t}})=>{l({payload:{name:{[e]:t}},type:u.TYPES.CHANGE_OBJECT_LAYOUT_NAME})},required:!0,value:a.name[e]}),o.default.createElement(r.default.Group,{className:"mb-0"},o.default.createElement(r.ClayCheckbox,{checked:a.defaultObjectLayout,disabled:t,label:Liferay.Language.get("mark-as-default"),onChange:({target:{checked:e}})=>{l({payload:{checked:e},type:u.TYPES.SET_OBJECT_LAYOUT_AS_DEFAULT})}})))};t.default=_default}}));
//# sourceMappingURL=InfoScreen.js.map