'use strict';
import { resourceIds } from '../../../fd-toolbox/constants/resource-id-constants.js';
import { WorkspaceResource } from '../../meta/core/resources/workspace/workspace-resource.js';
import { dealProps } from './props/deal-props.js';
import { accessByUserId } from '../../meta/decorators/access-by-user-id.js';
import { currency } from '../../meta/decorators/currency.js';
import { dateOnly } from '../../meta/decorators/date-only.js';
import { descriptionProperty } from '../../meta/decorators/description-property.js';
import { expandDescription } from '../../meta/decorators/expand-description-properties.js';
import { icon } from '../../meta/decorators/icon.js';
import { resourceMetaId } from '../../meta/decorators/resource-id.js';
import { searchable } from '../../meta/decorators/searchable.js';
import { iconNames } from '../../fd-component-toolbox/icon/Icon.js';

var __defProp=Object['defineProperty'],__getOwnPropDesc=Object['getOwnPropertyDescriptor'],__name=(_0xd83fa8,_0x87750b)=>__defProp(_0xd83fa8,'name',{'value':_0x87750b,'configurable':!![]}),__decorateClass=(_0x17bb6a,_0x4702cc,_0x46f138,_0x40ea03)=>{var _0x3d622c=_0x40ea03>-0x23b*0x4+-0x9f7*-0x1+-0x10a?void(0x147e+0x5c9+-0x1a47):_0x40ea03?__getOwnPropDesc(_0x4702cc,_0x46f138):_0x4702cc;for(var _0x4e7a12=_0x17bb6a['length']-(0x4*0x781+-0x104a+-0xdb9),_0x310742;_0x4e7a12>=0x1*0x135a+-0x841*0x1+-0xb19;_0x4e7a12--)if(_0x310742=_0x17bb6a[_0x4e7a12])_0x3d622c=(_0x40ea03?_0x310742(_0x4702cc,_0x46f138,_0x3d622c):_0x310742(_0x3d622c))||_0x3d622c;if(_0x40ea03&&_0x3d622c)__defProp(_0x4702cc,_0x46f138,_0x3d622c);return _0x3d622c;};let Deal=class extends WorkspaceResource{['name'];['amount'];['stage'];['closeDate'];['companyId'];['contactId'];['company'];['contact'];};__name(Deal,'Deal'),__decorateClass([searchable()],Deal['prototype'],'name',0x371*-0x7+-0x2592+0x3dab),__decorateClass([currency()],Deal['prototype'],'amount',-0xd9*-0x23+0xd21+0x2aca*-0x1),__decorateClass([dateOnly()],Deal['prototype'],'closeDate',-0x1*0x2461+0x22c2+-0x8b*-0x3),__decorateClass([expandDescription()],Deal['prototype'],'companyId',0x5*-0xa7+0x1d7*-0x8+-0xf*-0x133),__decorateClass([expandDescription()],Deal['prototype'],'contactId',0x13d*-0x1+-0x20c*0xd+0x1bdb),Deal=__decorateClass([descriptionProperty(dealProps['name']),accessByUserId(),resourceMetaId(resourceIds['deal']),icon(iconNames['fileText'])],Deal);

export { Deal };
