'use strict';
import { resourceIds } from '../../../../fd-toolbox/constants/resource-id-constants.js';
import { WorkspaceResource } from '../../../meta/core/resources/workspace/workspace-resource.js';
import { notEditableFromOutside } from '../../../meta/decorators/not-editable-from-outside.js';
import { personProps } from '../props/person-props.js';
import { accessByUserId } from '../../../meta/decorators/access-by-user-id.js';
import { expandDescription } from '../../../meta/decorators/expand-description-properties.js';
import { markdown } from '../../../meta/decorators/markdown.js';
import { notDisplayable } from '../../../meta/decorators/not-displayable.js';
import { outsideExcluded } from '../../../meta/decorators/outside-excluded.js';
import { requiredIfOtherArePresent } from '../../../meta/decorators/required-if-other-are-present.js';
import { resourceMetaId } from '../../../meta/decorators/resource-id.js';
import { uiPriority } from '../../../meta/decorators/ui-priority.js';
import { iconNames } from '../../../fd-component-toolbox/icon/Icon.js';
import { icon } from '../../../meta/decorators/icon.js';
import { defaultSort } from '../../../meta/decorators/default-sort.js';
import { dynamic } from '../../../meta/decorators/dynamic.js';
import { descriptionProperty } from '../../../meta/decorators/description-property.js';
import { uiRelationPriority } from '../../../meta/decorators/ui-relation-priority.js';
import { integer } from '../../../meta/decorators/integer.js';
import { blobImage } from '../../../meta/decorators/blob-image.js';
import { fileUpload } from '../../../meta/decorators/file-upload.js';
import { fileUploadTypes } from '../../../../fd-toolbox/enums/enums.js';

var __defProp=Object['defineProperty'],__getOwnPropDesc=Object['getOwnPropertyDescriptor'],__name=(_0x32fb38,_0x3d46c0)=>__defProp(_0x32fb38,'name',{'value':_0x3d46c0,'configurable':!![]}),__decorateClass=(_0x59487b,_0x1fa923,_0x3dcb7e,_0x2127b8)=>{var _0x541133=_0x2127b8>0x9c3+-0x11*0x170+0xeae?void(-0x20a1*-0x1+-0x69c+0x1a05*-0x1):_0x2127b8?__getOwnPropDesc(_0x1fa923,_0x3dcb7e):_0x1fa923;for(var _0xfc84be=_0x59487b['length']-(-0xf7f+0x359+0xc27),_0x5af3c1;_0xfc84be>=-0xe5f+0x244d*-0x1+0x32ac;_0xfc84be--)if(_0x5af3c1=_0x59487b[_0xfc84be])_0x541133=(_0x2127b8?_0x5af3c1(_0x1fa923,_0x3dcb7e,_0x541133):_0x5af3c1(_0x541133))||_0x541133;if(_0x2127b8&&_0x541133)__defProp(_0x1fa923,_0x3dcb7e,_0x541133);return _0x541133;};let Person=class extends WorkspaceResource{['name'];['lastName'];['middleName'];['age'];['description'];['isMarried'];['favoriteNumber'];['numberOfFamilyMembers'];['phoneBrandId'];['hasKids'];['areKidsVaccinated'];['firstbornName'];['imageUrl'];['profileImage'];['favoriteSong'];['maritalStatus'];['phoneBrand'];['personToJobList'];['personToPersonList'];['friendList'];['userId'];['friendCount'];['fullName'];};__name(Person,'Person'),__decorateClass([defaultSort(personProps['name'],0x27*-0xd1+-0x197+0x216f),uiPriority(-0x1f4+-0x11ba+0x61*0x36)],Person['prototype'],'name',0x1*0x2089+0x2189+-0x4210),__decorateClass([defaultSort(personProps['lastName'],-0x583+0x8*-0x1d5+0x142d),uiPriority(0x3ca+0x13fa+-0x3*0x788),notEditableFromOutside()],Person['prototype'],'lastName',-0x6b*0x2f+0x21b6+-0xe0f),__decorateClass([notDisplayable()],Person['prototype'],'middleName',-0xb70+0x189+0x9e9*0x1),__decorateClass([integer()],Person['prototype'],'age',-0x1*-0x14c5+-0x11ad+0x4f*-0xa),__decorateClass([markdown()],Person['prototype'],'description',0x3a4*-0x7+-0x77e+0x20fc),__decorateClass([integer()],Person['prototype'],'favoriteNumber',-0xaae+-0x727+0x11d7),__decorateClass([integer(),outsideExcluded()],Person['prototype'],'numberOfFamilyMembers',0xe04+-0xbc8+-0x23a),__decorateClass([expandDescription()],Person['prototype'],'phoneBrandId',0x9*-0x2a2+0x5c3+-0x3*-0x5fb),__decorateClass([requiredIfOtherArePresent(personProps['hasKids'])],Person['prototype'],'areKidsVaccinated',0xb0f+0xb*-0x1d9+0x1*0x946),__decorateClass([requiredIfOtherArePresent(personProps['hasKids'])],Person['prototype'],'firstbornName',0x2b2+0x22b1+-0x2561),__decorateClass([blobImage()],Person['prototype'],'profileImage',0x1791+0x1c17+-0x33a6),__decorateClass([fileUpload(fileUploadTypes['single'])],Person['prototype'],'favoriteSong',0x2*0xe7d+0x2*-0x11cf+-0x6a6*-0x1),__decorateClass([expandDescription()],Person['prototype'],'personToJobList',0x15*-0xa9+0x2598+-0x17b9),__decorateClass([outsideExcluded()],Person['prototype'],'personToPersonList',0x25f*-0x10+0x229+-0x23c9*-0x1),__decorateClass([expandDescription(),uiRelationPriority(-0x2579*-0x1+0x1*0x119f+-0x3524)],Person['prototype'],'friendList',0x1c1*-0xb+0x10c9*-0x1+0x3e*0x95),__decorateClass([dynamic()],Person['prototype'],'friendCount',-0x14f6+-0xd38+0x1118*0x2),__decorateClass([dynamic()],Person['prototype'],'fullName',0x29d*-0x7+-0x1f16+0x3163),Person=__decorateClass([descriptionProperty(personProps['name']),resourceMetaId(resourceIds['person']),accessByUserId(),icon(iconNames['person'])],Person);

export { Person };
