Liferay.Loader.define("@liferay/object-web@1.0.153/js/components/ObjectField/Tabs/BasicInfo/BasicInfo",["module","exports","require","@liferay/object-js-components-web","liferay!frontend-js-react-web$react","../../../../utils/fieldSettings","../../ObjectFieldFormBase","./AggregationFilterContainer","./AttachmentProperties","./FormulaContainer","./MaxLengthProperties","./SearchableContainer"],(function(e,t,a){window;{Object.defineProperty(t,"__esModule",{value:!0}),t.BasicInfo=function BasicInfo({errors:e,filterOperators:t,handleChange:a,isApproved:g,isDefaultStorageType:f,objectDefinitionExternalReferenceCode:b,objectFieldTypes:p,objectName:j,objectRelationshipId:y,readOnly:F,setValues:m,values:h,workflowStatusJSONArray:C}){const[S,L]=(0,n.useState)(),[O,w]=(0,n.useState)([]),[v,A]=(0,n.useState)(),E=!!(g||h.system||h.relationshipType),handleSettingsChange=({name:e,value:t})=>m({objectFieldSettings:(0,i.updateFieldSettings)(h.objectFieldSettings,{name:e,value:t})});return n.default.createElement(n.default.Fragment,null,n.default.createElement(r.Card,{title:Liferay.Language.get("basic-info")},n.default.createElement(r.InputLocalized,{disableFlag:F,disabled:F,error:e.label,label:Liferay.Language.get("label"),onChange:e=>m({label:e}),required:!0,translations:h.label}),n.default.createElement(l.default,{creationLanguageId2:v,disabled:E,editingField:!0,errors:e,handleChange:a,objectDefinitionExternalReferenceCode:b,objectField:h,objectFieldTypes:p,objectName:j,objectRelationshipId:y,onAggregationFilterChange:w,onRelationshipChange:L,setValues:m},"Attachment"===h.businessType&&n.default.createElement(s.AttachmentProperties,{errors:e,objectFieldSettings:h.objectFieldSettings,onSettingsChange:handleSettingsChange}),("Text"===h.businessType||"LongText"===h.businessType)&&n.default.createElement(u.MaxLengthProperties,{disabled:h.system,errors:e,objectField:h,objectFieldSettings:h.objectFieldSettings,onSettingsChange:handleSettingsChange,setValues:m}))),"Aggregation"===h.businessType&&n.default.createElement(o.AggregationFilterContainer,{aggregationFilters:O,creationLanguageId2:v,filterOperators:t,objectDefinitionExternalReferenceCode2:S,setAggregationFilters:w,setCreationLanguageId2:A,setValues:m,values:h,workflowStatusJSONArray:C}),"Formula"===h.businessType&&n.default.createElement(c.FormulaContainer,{errors:e,objectFieldSettings:h.objectFieldSettings,setValues:m}),"Blob"!==h.DBType&&"Formula"!==h.businessType&&n.default.createElement(d.SearchableContainer,{errors:e,isApproved:g,objectField:h,readOnly:F,setValues:m}),Liferay.FeatureFlags["LPS-135430"]&&!f&&n.default.createElement(r.Card,{title:Liferay.Language.get("external-data-source")},n.default.createElement(r.Input,{label:Liferay.Language.get("external-reference-code"),name:"externalReferenceCode",onChange:a,value:h.externalReferenceCode})))};var r=a("@liferay/object-js-components-web"),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 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("liferay!frontend-js-react-web$react")),i=a("../../../../utils/fieldSettings"),l=function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(a("../../ObjectFieldFormBase")),o=a("./AggregationFilterContainer"),s=a("./AttachmentProperties"),c=a("./FormulaContainer"),u=a("./MaxLengthProperties"),d=a("./SearchableContainer");function _getRequireWildcardCache(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return _getRequireWildcardCache=function _getRequireWildcardCache(){return e},e}}}));
//# sourceMappingURL=BasicInfo.js.map