import { Injectable } from '@angular/core';
import { Observable, of } from 'rxjs';
import { Floor, Lead, RentListing, SchemePin, Shop, ShopCategory } from '../models/mall-content.model';
import { MallContentGateway } from './mall-content-gateway.interface';

/**
 * Lowest-priority phase per the delivery plan - only after Commerce Core is
 * real. Seeded empty; the current Gorbushka frontend/archive remains UX
 * reference only per ADR-0001, production data routes through the shared
 * platform once docs/backend/PHASE-10-CONTENT-MODULES-CONTRACT.md ships.
 */
@Injectable({ providedIn: 'root' })
export class MallContentLocalGateway implements MallContentGateway {
  loadShops(): Observable<Shop[]> { return of([]); }
  loadShopCategories(): Observable<ShopCategory[]> { return of([]); }
  loadFloors(): Observable<Floor[]> { return of([]); }
  loadSchemePins(_floorId: string): Observable<SchemePin[]> { return of([]); }
  loadRentListings(): Observable<RentListing[]> { return of([]); }

  submitLead(lead: Omit<Lead, 'id' | 'createdAt'>): Observable<Lead> {
    return of({ ...lead, id: `lead_${Date.now()}`, createdAt: new Date().toISOString() });
  }
}
