'use strict';
import { deviceCategoryLabels } from '../reports/report-string-constants.js';
import { createBaseResourceProperties } from '../utils/base-resource-properties.js';
import { createProduct, createProductCategory } from './product-db.js';
import { workspaceConstants } from '../../../fd-toolbox/server/constants/workspace-constants.js';
import { storeIds } from '../store/store-master-data.js';
import { productStatuses } from '../../common/products/product-enums.js';

var __defProp=Object['defineProperty'],__name=(_0x53e641,_0x47fadc)=>__defProp(_0x53e641,'name',{'value':_0x47fadc,'configurable':!![]});const productIds={'smartphoneId':'18a3b240-29d9-40eb-ad41-628ee3754add','gamingLaptopId':'807adb0c-db34-4b05-ae43-594cfe433ffd','wirelessHeadphonesId':'23b315b6-4c7c-4813-980b-4006ce7cc519','smartTvId':'599d75c3-f427-4756-aeea-b4e6856540be'};const productCategoriesIds={'electronicsId':'c54346c4-dabe-46a6-89c1-8403c58fe987','phonesId':'081f1050-ca5e-4bc3-83fd-4754ca66f063','laptopsId':'d9723ea8-8dd4-476f-a37b-d088305963e5','accessoriesId':'5784949f-1c1a-4af6-b307-7562965bff14'};async function seedProducts(){for(const _0x324be4 of productCategoriesToSeed){await seedProductCategory(_0x324be4['id'],workspaceConstants['defaultWorkspaceId'],_0x324be4['name'],_0x324be4['parentId']);}for(const _0xfc5166 of productsToSeed){await seedProduct(_0xfc5166['id'],workspaceConstants['defaultWorkspaceId'],_0xfc5166['name'],_0xfc5166['description'],_0xfc5166['categoryId'],_0xfc5166['storeId'],_0xfc5166['freight'],_0xfc5166['price'],_0xfc5166['status'],_0xfc5166['notes']);}}__name(seedProducts,'seedProducts');async function seedProduct(_0x511d1f,_0x2885b9,_0x3ccebf,_0x1e5f02,_0x19efc0,_0x1e1d41,_0x21ffc0,_0x4e183d,_0x18ded4,_0x3d1a62){const _0x3dc2e2={...createBaseResourceProperties(_0x511d1f),'workspaceId':_0x2885b9,'name':_0x3ccebf,'description':_0x1e5f02,'productCategoryId':_0x19efc0,'storeId':_0x1e1d41,'freightShipment':_0x21ffc0,'notes':_0x3d1a62,'status':_0x18ded4,'price':_0x4e183d};return createProduct(_0x3dc2e2);}__name(seedProduct,'seedProduct');async function seedProductCategory(_0x4ac12f,_0x27ac95,_0x204d61,_0xcb397b){const _0x3273a2={...createBaseResourceProperties(_0x4ac12f),'workspaceId':_0x27ac95,'name':_0x204d61,'parentProductCategoryId':_0xcb397b};return createProductCategory(_0x3273a2);}__name(seedProductCategory,'seedProductCategory');const productCategoriesToSeed=[{'id':productCategoriesIds['electronicsId'],'name':'Electronics'},{'id':productCategoriesIds['laptopsId'],'name':deviceCategoryLabels['laptops'],'parentId':productCategoriesIds['electronicsId']},{'id':productCategoriesIds['phonesId'],'name':'Mobile\x20Phones','parentId':productCategoriesIds['electronicsId']},{'id':productCategoriesIds['accessoriesId'],'name':'Laptop\x20Accessories','parentId':productCategoriesIds['laptopsId']}],productsToSeed=[{'id':productIds['smartphoneId'],'name':'Smartphone','description':'High-end\x20smartphone\x20with\x20advanced\x20features.','categoryId':productCategoriesIds['phonesId'],'storeId':storeIds['techStoreId'],'freight':!![],'price':999.99,'status':productStatuses['published'],'notes':'Rechargeable\x20battery\x20with\x2020\x20hours\x20of\x20usage.'},{'id':productIds['gamingLaptopId'],'name':'Gaming\x20Laptop','description':'Powerful\x20laptop\x20with\x20high-performance\x20hardware.','categoryId':productCategoriesIds['laptopsId'],'storeId':storeIds['techStoreId'],'freight':!![],'price':0x3e8,'status':productStatuses['private'],'notes':'Battery\x20life\x20up\x20to\x208\x20hours,\x20depending\x20on\x20usage.'},{'id':productIds['smartTvId'],'name':'Smart\x20TV','description':'Smart\x20TV\x20with\x204K\x20resolution','categoryId':productCategoriesIds['electronicsId'],'storeId':storeIds['techStoreId'],'freight':![],'price':4999.99,'status':productStatuses['published'],'notes':'Streaming\x20capabilities'},{'id':productIds['wirelessHeadphonesId'],'name':'Wireless\x20Headphones','description':'High-quality\x20wireless\x20headphones\x20with\x20noise\x20cancellation.','categoryId':productCategoriesIds['electronicsId'],'storeId':storeIds['techStoreId'],'freight':!![],'price':0x7d0,'status':productStatuses['draft'],'notes':'Compatible\x20with\x20all\x20Bluetooth-enabled\x20devices.'}];

export { productCategoriesIds, productIds, seedProducts };
