'use strict';
import { createPersonDirectlyInDb } from '../../../../level2/server/dev/persons/person-db.js';
import { createBaseResourceProperties } from '../../../../level2/server/utils/base-resource-properties.js';
import { userConstants } from '../../../../fd-toolbox/constants/user-infos.js';
import { maritalStatuses } from '../../../../level2/common/demo/demo-resources-enums.js';
import { workspaceConstants } from '../../../../fd-toolbox/server/constants/workspace-constants.js';
import { personIds } from '../../../../level2/server/dev/constants/person-ids.js';
import { platformIds } from '../../../../level2/server/dev/constants/platform-ids.js';
import { phoneBrandIds } from '../../../../level2/server/dev/constants/phone-brand-ids.js';
import { getNewUuid } from '../../../../fd-toolbox/uuids.js';
import { createCrudTestData } from '../../crud-tests/crud-test-data-factory.js';
import { testDataNames } from '../../../../base-repo/constants/tools-constants.js';
import { demoPersonNames, demoPersonDescriptions } from '../../../../level2/server/demo/demo-seed-constants.js';

var __defProp=Object['defineProperty'],__name=(_0x4fa5b4,_0x2443f4)=>__defProp(_0x4fa5b4,'name',{'value':_0x2443f4,'configurable':!![]});function getCrudPersonTestData(_0x19da19=personIds['samBrownCrud'],_0x59df98=workspaceConstants['defaultWorkspaceId'],_0x54a572=personIds['bobGrey'],_0x5d3b21=personIds['eddieTyan'],_0x5bb93d=platformIds['microsoftCSharp'],_0x5029a2=platformIds['googleJava'],_0x131bdc=phoneBrandIds['samsung'],_0x42863b=phoneBrandIds['apple']){const _0xd2ecb1=createCrudTestData(samBrownCrud(_0x19da19,_0x131bdc,_0x59df98),samBrownCrud(_0x19da19,_0x131bdc,_0x59df98));return _0xd2ecb1['existingRelations']={'friendList':[_0x54a572],'personToJobList':[_0x5bb93d],'phoneBrandId':[_0x131bdc]},_0xd2ecb1['relationsToAdd']={'friendList':[_0x5d3b21],'personToJobList':[_0x5029a2]},_0xd2ecb1['relationsToSet']={'phoneBrandId':[_0x42863b],'workspaceId':[_0x59df98]},_0xd2ecb1;}__name(getCrudPersonTestData,'getCrudPersonTestData');function getCrudPersonTestDataTestWorkspace(_0x597bdf=personIds['samBrownWestMountain']){const _0x138c86=createCrudTestData(samBrownWestMountainCrud(_0x597bdf),samBrownWestMountainCrud(_0x597bdf));return _0x138c86['existingRelations']={'workspaceId':[workspaceConstants['westMountainWorkspaceId']]},_0x138c86;}__name(getCrudPersonTestDataTestWorkspace,'getCrudPersonTestDataTestWorkspace');function joeBlack(_0xc24e5c=personIds['joeBlack'],_0x3613e7=workspaceConstants['defaultWorkspaceId']){const _0x19ffbc={...createBaseResourceProperties(_0xc24e5c),'name':demoPersonNames['joe'],'lastName':demoPersonNames['black'],'age':0x1d,'isMarried':![],'numberOfFamilyMembers':0x0,'workspaceId':_0x3613e7,'maritalStatus':maritalStatuses['married']};return _0x19ffbc;}__name(joeBlack,'joeBlack');function johnDoe(_0x274d71=personIds['johnDoe'],_0x5d5b1e=workspaceConstants['defaultWorkspaceId']){const _0x150af1={...createBaseResourceProperties(_0x274d71),'name':testDataNames['firstNameJohn'],'lastName':testDataNames['lastNameDoe'],'age':0x38,'isMarried':![],'numberOfFamilyMembers':0x0,'workspaceId':_0x5d5b1e,'maritalStatus':maritalStatuses['widowed']};return _0x150af1;}__name(johnDoe,'johnDoe');function ericMalone(_0x137c37=personIds['ericMalone'],_0x25c921=phoneBrandIds['apple'],_0x44e668=workspaceConstants['defaultWorkspaceId']){const _0x10584c={...createBaseResourceProperties(_0x137c37),'name':demoPersonNames['eric'],'lastName':demoPersonNames['malone'],'age':0x22,'phoneBrandId':_0x25c921,'isMarried':![],'numberOfFamilyMembers':0x0,'workspaceId':_0x44e668,'maritalStatus':maritalStatuses['single']};return _0x10584c;}__name(ericMalone,'ericMalone');function samBrownWestMountainCrud(_0xb6c436){const _0x1886e7=samBrownCrud(_0xb6c436);return _0x1886e7;}__name(samBrownWestMountainCrud,'samBrownWestMountainCrud');function samBrownCrud(_0x934f4b=personIds['samBrownCrud'],_0x4272da=phoneBrandIds['samsung'],_0x1317c4=workspaceConstants['defaultWorkspaceId']){const _0xe36504={...createBaseResourceProperties(_0x934f4b),'name':demoPersonNames['sam'],'lastName':demoPersonNames['brown'],'middleName':demoPersonNames['scott'],'age':0x15,'phoneBrandId':_0x4272da,'hasKids':!![],'areKidsVaccinated':!![],'firstbornName':demoPersonNames['eddie'],'userId':userConstants['timWId'],'description':demoPersonDescriptions['goodGuyMarkdown'],'isMarried':!![],'favoriteNumber':0x7,'numberOfFamilyMembers':0x7e3,'bio':'','education':'','workspaceId':_0x1317c4,'maritalStatus':maritalStatuses['married'],'favoriteSong':'Eagles\x20Hotel\x20California.mp3'};return _0xe36504;}__name(samBrownCrud,'samBrownCrud');async function createAndGetManyTestPersons(_0x20fb2c,_0x42f3bc){const _0x472b32=[];for(let _0x4fb7f6=0xb2a+0x3fa+-0xf24;_0x4fb7f6<_0x20fb2c;_0x4fb7f6++){const _0x4bf72f={...createBaseResourceProperties(getNewUuid()),'name':'TestPerson'+_0x4fb7f6,'lastName':'LastName'+_0x4fb7f6,'age':-0xa7f+0x126b+-0x7d8*0x1+_0x4fb7f6,'isMarried':![],'numberOfFamilyMembers':0x0,'workspaceId':_0x42f3bc,'maritalStatus':maritalStatuses['single']};_0x472b32['push'](_0x4bf72f);}return await Promise['all'](_0x472b32['map'](createPersonDirectlyInDb)),_0x472b32;}__name(createAndGetManyTestPersons,'createAndGetManyTestPersons');

export { createAndGetManyTestPersons, ericMalone, getCrudPersonTestData, getCrudPersonTestDataTestWorkspace, joeBlack, johnDoe, samBrownCrud, samBrownWestMountainCrud };
