Liferay.Loader.define("data-engine-js-components-web@1.0.55/js/core/schema/DataDefinition.es",["module","exports","require","../../utils/dataConverter","../../utils/visitors.es","./Schema.es"],(function(e,i,a){var t,n,s;window;{Object.defineProperty(i,"__esModule",{value:!0}),i.DataDefinitionSchema=void 0;var d=a("../../utils/dataConverter"),o=a("../../utils/visitors.es"),r=a("./Schema.es");class e extends r.Schema{constructor(e){super("data_engine","dataDefinition",e)}get availableLanguageIds(){return this[r.SYMBOL_RAW].availableLanguageIds}get contentType(){return this[r.SYMBOL_RAW].dataDefinition.contentType}get dataDefinitionFields(){const{pages:e}=this[r.SYMBOL_RAW];if(this[r.SYMBOL_CACHE].dataDefinitionFields)return this[r.SYMBOL_CACHE].dataDefinitionFields;{const i=[];return new o.PagesVisitor(e).mapFields((e=>{const a=(0,d.fieldToDataDefinition)(e);i.push(a)})),this[r.SYMBOL_CACHE].dataDefinitionFields=i,this[r.SYMBOL_CACHE].dataDefinitionFields}}get defaultLanguageId(){return this[r.SYMBOL_RAW].defaultLanguageId}get id(){const{dataDefinition:{id:e}}=this[r.SYMBOL_RAW];return e}get name(){return this[r.SYMBOL_RAW].name}serialize(){return{availableLanguageIds:this.availableLanguageIds,contentType:this.contentType,dataDefinitionFields:this.dataDefinitionFields,defaultLanguageId:this.defaultLanguageId,id:this.id,name:this.name}}}i.DataDefinitionSchema=e,s=["availableLanguageIds","dataDefinition","defaultLanguageId","id","name","pages"],(n="props")in(t=e)?Object.defineProperty(t,n,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[n]=s}}));
//# sourceMappingURL=DataDefinition.es.js.map