import {
  useDateTableFilters
} from "./chunk-26OOAKQ6.js";

// src/hooks/table/filters/use-collection-table-filters.tsx
var useCollectionTableFilters = () => {
  const dateFilters = useDateTableFilters();
  return dateFilters;
};

// src/hooks/table/filters/use-product-tag-table-filters.tsx
var useProductTagTableFilters = () => {
  const dateFilters = useDateTableFilters();
  return dateFilters;
};

// src/hooks/table/filters/use-seller-table-filters.tsx
import { useTranslation } from "react-i18next";
var useSellerTableFilters = () => {
  const { t } = useTranslation();
  const statusFilter = {
    key: "status",
    label: t("fields.status"),
    type: "select",
    multiple: true,
    options: [
      {
        label: t("stores.status.open"),
        value: "open"
      },
      {
        label: t("stores.status.pendingApproval"),
        value: "pending_approval"
      },
      {
        label: t("stores.status.suspended"),
        value: "suspended"
      }
    ]
  };
  const premiumFilter = {
    key: "is_premium",
    label: t("stores.fields.premium"),
    type: "select",
    options: [
      {
        label: t("stores.premium.yes"),
        value: "true"
      },
      {
        label: t("stores.premium.no"),
        value: "false"
      }
    ]
  };
  const dateFilters = [
    { label: t("fields.createdAt"), key: "created_at" },
    { label: t("fields.updatedAt"), key: "updated_at" }
  ].map((f) => ({
    key: f.key,
    label: f.label,
    type: "date"
  }));
  return [statusFilter, premiumFilter, ...dateFilters];
};

// src/hooks/table/filters/use-shipping-option-table-filters.tsx
import { useTranslation as useTranslation2 } from "react-i18next";
var useShippingOptionTableFilters = (locations) => {
  const { t } = useTranslation2();
  const locationFilter = {
    key: "stock_location_id",
    label: t("fields.location"),
    type: "select",
    options: locations.map((l) => ({ label: l.name, value: l.id }))
  };
  const dateFilters = [
    { label: t("fields.createdAt"), key: "created_at" },
    { label: t("fields.updatedAt"), key: "updated_at" }
  ].map((f) => ({
    key: f.key,
    label: f.label,
    type: "date"
  }));
  const filters = [locationFilter, ...dateFilters];
  return filters;
};

// src/hooks/table/filters/use-tax-rate-table-filters.tsx
import { useTranslation as useTranslation3 } from "react-i18next";

export {
  useCollectionTableFilters,
  useProductTagTableFilters,
  useSellerTableFilters,
  useShippingOptionTableFilters
};
