'use strict';
import { WorkspaceResource } from '../../../meta/core/resources/workspace/workspace-resource.js';
import { resourceIds } from '../../../../fd-toolbox/constants/resource-id-constants.js';
import { resourceMetaId } from '../../../meta/decorators/resource-id.js';
import { accessByUserId } from '../../../meta/decorators/access-by-user-id.js';
import { expandDescription } from '../../../meta/decorators/expand-description-properties.js';
import { descriptionProperty } from '../../../meta/decorators/description-property.js';
import { friendProps } from '../props/friend-props.js';
import { integer } from '../../../meta/decorators/integer.js';
import { allowedCrudActions } from '../../../meta/decorators/allowed-crud-actions.js';
import { crudActions } from '../../../../fd-toolbox/enums/enums.js';

var __defProp=Object['defineProperty'],__getOwnPropDesc=Object['getOwnPropertyDescriptor'],__name=(_0x629654,_0x38bb01)=>__defProp(_0x629654,'name',{'value':_0x38bb01,'configurable':!![]}),__decorateClass=(_0x47f29a,_0x3c636d,_0x404460,_0x1d1d20)=>{var _0x2a11b8=_0x1d1d20>0x945+0x9*-0x3e5+0x19c9?void(0x191e+0xe3*-0x1+-0x183b):_0x1d1d20?__getOwnPropDesc(_0x3c636d,_0x404460):_0x3c636d;for(var _0x53dcce=_0x47f29a['length']-(-0x1cec+0x2433+-0x31*0x26),_0x446f5c;_0x53dcce>=0x15c*-0xf+0x1156+0x30e;_0x53dcce--)if(_0x446f5c=_0x47f29a[_0x53dcce])_0x2a11b8=(_0x1d1d20?_0x446f5c(_0x3c636d,_0x404460,_0x2a11b8):_0x446f5c(_0x2a11b8))||_0x2a11b8;if(_0x1d1d20&&_0x2a11b8)__defProp(_0x3c636d,_0x404460,_0x2a11b8);return _0x2a11b8;};let Friend=class extends WorkspaceResource{['name'];['age'];['personId'];['person'];};__name(Friend,'Friend'),__decorateClass([integer()],Friend['prototype'],'age',0x3*-0x66b+0xd12+0x631),__decorateClass([expandDescription()],Friend['prototype'],'personId',0x11c*0xb+-0x18bb+0xc89),Friend=__decorateClass([allowedCrudActions([crudActions['view'],crudActions['update']]),descriptionProperty(friendProps['name']),resourceMetaId(resourceIds['friend']),accessByUserId()],Friend);

export { Friend };
