// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'orders_provider.dart';

// **************************************************************************
// RiverpodGenerator
// **************************************************************************

// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint, type=warning
/// Orders Local Data Source Provider

@ProviderFor(ordersLocalDataSource)
const ordersLocalDataSourceProvider = OrdersLocalDataSourceProvider._();

/// Orders Local Data Source Provider

final class OrdersLocalDataSourceProvider
    extends
        $FunctionalProvider<
          OrdersLocalDataSource,
          OrdersLocalDataSource,
          OrdersLocalDataSource
        >
    with $Provider<OrdersLocalDataSource> {
  /// Orders Local Data Source Provider
  const OrdersLocalDataSourceProvider._()
    : super(
        from: null,
        argument: null,
        retry: null,
        name: r'ordersLocalDataSourceProvider',
        isAutoDispose: true,
        dependencies: null,
        $allTransitiveDependencies: null,
      );

  @override
  String debugGetCreateSourceHash() => _$ordersLocalDataSourceHash();

  @$internal
  @override
  $ProviderElement<OrdersLocalDataSource> $createElement(
    $ProviderPointer pointer,
  ) => $ProviderElement(pointer);

  @override
  OrdersLocalDataSource create(Ref ref) {
    return ordersLocalDataSource(ref);
  }

  /// {@macro riverpod.override_with_value}
  Override overrideWithValue(OrdersLocalDataSource value) {
    return $ProviderOverride(
      origin: this,
      providerOverride: $SyncValueProvider<OrdersLocalDataSource>(value),
    );
  }
}

String _$ordersLocalDataSourceHash() =>
    r'753fcc2a4000c4c9843fba022d1bf398daba6c7a';

/// Orders Provider
///
/// Provides list of all orders from local data source.

@ProviderFor(Orders)
const ordersProvider = OrdersProvider._();

/// Orders Provider
///
/// Provides list of all orders from local data source.
final class OrdersProvider
    extends $AsyncNotifierProvider<Orders, List<OrderModel>> {
  /// Orders Provider
  ///
  /// Provides list of all orders from local data source.
  const OrdersProvider._()
    : super(
        from: null,
        argument: null,
        retry: null,
        name: r'ordersProvider',
        isAutoDispose: true,
        dependencies: null,
        $allTransitiveDependencies: null,
      );

  @override
  String debugGetCreateSourceHash() => _$ordersHash();

  @$internal
  @override
  Orders create() => Orders();
}

String _$ordersHash() => r'7d2ae33e528260172495e8360f6879cb6e089766';

/// Orders Provider
///
/// Provides list of all orders from local data source.

abstract class _$Orders extends $AsyncNotifier<List<OrderModel>> {
  FutureOr<List<OrderModel>> build();
  @$mustCallSuper
  @override
  void runBuild() {
    final created = build();
    final ref =
        this.ref as $Ref<AsyncValue<List<OrderModel>>, List<OrderModel>>;
    final element =
        ref.element
            as $ClassProviderElement<
              AnyNotifier<AsyncValue<List<OrderModel>>, List<OrderModel>>,
              AsyncValue<List<OrderModel>>,
              Object?,
              Object?
            >;
    element.handleValue(ref, created);
  }
}

/// Selected Order Status Provider
///
/// Tracks the currently selected order status filter.
/// null means "All" orders.

@ProviderFor(SelectedOrderStatus)
const selectedOrderStatusProvider = SelectedOrderStatusProvider._();

/// Selected Order Status Provider
///
/// Tracks the currently selected order status filter.
/// null means "All" orders.
final class SelectedOrderStatusProvider
    extends $NotifierProvider<SelectedOrderStatus, OrderStatus?> {
  /// Selected Order Status Provider
  ///
  /// Tracks the currently selected order status filter.
  /// null means "All" orders.
  const SelectedOrderStatusProvider._()
    : super(
        from: null,
        argument: null,
        retry: null,
        name: r'selectedOrderStatusProvider',
        isAutoDispose: true,
        dependencies: null,
        $allTransitiveDependencies: null,
      );

  @override
  String debugGetCreateSourceHash() => _$selectedOrderStatusHash();

  @$internal
  @override
  SelectedOrderStatus create() => SelectedOrderStatus();

  /// {@macro riverpod.override_with_value}
  Override overrideWithValue(OrderStatus? value) {
    return $ProviderOverride(
      origin: this,
      providerOverride: $SyncValueProvider<OrderStatus?>(value),
    );
  }
}

String _$selectedOrderStatusHash() =>
    r'51834a8660a7f792e4075f76354e8a23a4fe9d7c';

/// Selected Order Status Provider
///
/// Tracks the currently selected order status filter.
/// null means "All" orders.

abstract class _$SelectedOrderStatus extends $Notifier<OrderStatus?> {
  OrderStatus? build();
  @$mustCallSuper
  @override
  void runBuild() {
    final created = build();
    final ref = this.ref as $Ref<OrderStatus?, OrderStatus?>;
    final element =
        ref.element
            as $ClassProviderElement<
              AnyNotifier<OrderStatus?, OrderStatus?>,
              OrderStatus?,
              Object?,
              Object?
            >;
    element.handleValue(ref, created);
  }
}

/// Order Search Query Provider
///
/// Tracks the current search query for order numbers.

@ProviderFor(OrderSearchQuery)
const orderSearchQueryProvider = OrderSearchQueryProvider._();

/// Order Search Query Provider
///
/// Tracks the current search query for order numbers.
final class OrderSearchQueryProvider
    extends $NotifierProvider<OrderSearchQuery, String> {
  /// Order Search Query Provider
  ///
  /// Tracks the current search query for order numbers.
  const OrderSearchQueryProvider._()
    : super(
        from: null,
        argument: null,
        retry: null,
        name: r'orderSearchQueryProvider',
        isAutoDispose: true,
        dependencies: null,
        $allTransitiveDependencies: null,
      );

  @override
  String debugGetCreateSourceHash() => _$orderSearchQueryHash();

  @$internal
  @override
  OrderSearchQuery create() => OrderSearchQuery();

  /// {@macro riverpod.override_with_value}
  Override overrideWithValue(String value) {
    return $ProviderOverride(
      origin: this,
      providerOverride: $SyncValueProvider<String>(value),
    );
  }
}

String _$orderSearchQueryHash() => r'4f60c2a1ac8c0ce515bc807781fa3813e9934482';

/// Order Search Query Provider
///
/// Tracks the current search query for order numbers.

abstract class _$OrderSearchQuery extends $Notifier<String> {
  String build();
  @$mustCallSuper
  @override
  void runBuild() {
    final created = build();
    final ref = this.ref as $Ref<String, String>;
    final element =
        ref.element
            as $ClassProviderElement<
              AnyNotifier<String, String>,
              String,
              Object?,
              Object?
            >;
    element.handleValue(ref, created);
  }
}

/// Filtered Orders Provider
///
/// Filters orders by selected status and search query.

@ProviderFor(filteredOrders)
const filteredOrdersProvider = FilteredOrdersProvider._();

/// Filtered Orders Provider
///
/// Filters orders by selected status and search query.

final class FilteredOrdersProvider
    extends
        $FunctionalProvider<
          AsyncValue<List<OrderModel>>,
          List<OrderModel>,
          FutureOr<List<OrderModel>>
        >
    with $FutureModifier<List<OrderModel>>, $FutureProvider<List<OrderModel>> {
  /// Filtered Orders Provider
  ///
  /// Filters orders by selected status and search query.
  const FilteredOrdersProvider._()
    : super(
        from: null,
        argument: null,
        retry: null,
        name: r'filteredOrdersProvider',
        isAutoDispose: true,
        dependencies: null,
        $allTransitiveDependencies: null,
      );

  @override
  String debugGetCreateSourceHash() => _$filteredOrdersHash();

  @$internal
  @override
  $FutureProviderElement<List<OrderModel>> $createElement(
    $ProviderPointer pointer,
  ) => $FutureProviderElement(pointer);

  @override
  FutureOr<List<OrderModel>> create(Ref ref) {
    return filteredOrders(ref);
  }
}

String _$filteredOrdersHash() => r'4cc009352d3b09159c0fe107645634c3a4a81a7c';

/// Orders Count by Status Provider
///
/// Returns count of orders for each status.

@ProviderFor(ordersCountByStatus)
const ordersCountByStatusProvider = OrdersCountByStatusProvider._();

/// Orders Count by Status Provider
///
/// Returns count of orders for each status.

final class OrdersCountByStatusProvider
    extends
        $FunctionalProvider<
          AsyncValue<Map<OrderStatus, int>>,
          Map<OrderStatus, int>,
          FutureOr<Map<OrderStatus, int>>
        >
    with
        $FutureModifier<Map<OrderStatus, int>>,
        $FutureProvider<Map<OrderStatus, int>> {
  /// Orders Count by Status Provider
  ///
  /// Returns count of orders for each status.
  const OrdersCountByStatusProvider._()
    : super(
        from: null,
        argument: null,
        retry: null,
        name: r'ordersCountByStatusProvider',
        isAutoDispose: true,
        dependencies: null,
        $allTransitiveDependencies: null,
      );

  @override
  String debugGetCreateSourceHash() => _$ordersCountByStatusHash();

  @$internal
  @override
  $FutureProviderElement<Map<OrderStatus, int>> $createElement(
    $ProviderPointer pointer,
  ) => $FutureProviderElement(pointer);

  @override
  FutureOr<Map<OrderStatus, int>> create(Ref ref) {
    return ordersCountByStatus(ref);
  }
}

String _$ordersCountByStatusHash() =>
    r'85fe4fb85410855bb434b19fdc05c933c6e76235';

/// Total Orders Count Provider

@ProviderFor(totalOrdersCount)
const totalOrdersCountProvider = TotalOrdersCountProvider._();

/// Total Orders Count Provider

final class TotalOrdersCountProvider
    extends $FunctionalProvider<AsyncValue<int>, int, FutureOr<int>>
    with $FutureModifier<int>, $FutureProvider<int> {
  /// Total Orders Count Provider
  const TotalOrdersCountProvider._()
    : super(
        from: null,
        argument: null,
        retry: null,
        name: r'totalOrdersCountProvider',
        isAutoDispose: true,
        dependencies: null,
        $allTransitiveDependencies: null,
      );

  @override
  String debugGetCreateSourceHash() => _$totalOrdersCountHash();

  @$internal
  @override
  $FutureProviderElement<int> $createElement($ProviderPointer pointer) =>
      $FutureProviderElement(pointer);

  @override
  FutureOr<int> create(Ref ref) {
    return totalOrdersCount(ref);
  }
}

String _$totalOrdersCountHash() => r'ec1ab3a8d432033aa1f02d28e841e78eba06d63e';
