import { Injectable } from '@angular/core';
import { AdminCategory } from '../models/admin-category.model';

@Injectable({ providedIn: 'root' })
export class AdminCategoriesFormFactory {
  createEmpty(): AdminCategory {
    return {
      id: `category-${Date.now()}`,
      parentId: null,
      title: '',
      slug: '',
      description: '',
      icon: '',
      imageUrl: '',
      imageAlt: '',
      order: 0,
      visible: true,
      status: 'draft',
      itemsCount: 0,
      translations: { en: {}, ru: {}, hy: {} },
      seo: { metaTitle: '', metaDescription: '', keywords: '' },
      attributes: [],
      deletedAt: null,
      createdAt: new Date().toISOString(),
      updatedAt: new Date().toISOString(),
    };
  }
}
