import {
  TextCell,
  TextHeader
} from "./chunk-JHIMVLB2.js";
import {
  DateCell
} from "./chunk-SYNUA6LQ.js";

// src/hooks/table/columns/use-return-reason-table-columns.tsx
import { Badge } from "@medusajs/ui";
import { createColumnHelper } from "@tanstack/react-table";
import { useMemo } from "react";
import { jsx, jsxs } from "react/jsx-runtime";
var columnHelper = createColumnHelper();
var useReturnReasonTableColumns = () => {
  return useMemo(
    () => [
      columnHelper.accessor("value", {
        cell: ({ getValue }) => /* @__PURE__ */ jsx(Badge, { size: "2xsmall", children: getValue() })
      }),
      columnHelper.accessor("label", {
        cell: ({ row }) => {
          const { label, description } = row.original;
          return /* @__PURE__ */ jsx("div", { className: " py-4", children: /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full flex-col justify-center", children: [
            /* @__PURE__ */ jsx("span", { className: "truncate font-medium", children: label }),
            /* @__PURE__ */ jsx("span", { className: "truncate", children: description ? description : "-" })
          ] }) });
        }
      })
    ],
    []
  );
};

// src/hooks/table/columns/use-customer-group-table-columns.tsx
import { createColumnHelper as createColumnHelper2 } from "@tanstack/react-table";
import { useMemo as useMemo2 } from "react";
import { useTranslation } from "react-i18next";
import { jsx as jsx2 } from "react/jsx-runtime";
var columnHelper2 = createColumnHelper2();
var useCustomerGroupTableColumns = () => {
  const { t } = useTranslation();
  return useMemo2(
    () => [
      columnHelper2.accessor("name", {
        header: () => /* @__PURE__ */ jsx2(TextHeader, { text: t("fields.name") }),
        cell: ({ getValue }) => /* @__PURE__ */ jsx2(TextCell, { text: getValue() || "-" })
      }),
      columnHelper2.accessor("customers", {
        header: () => /* @__PURE__ */ jsx2(TextHeader, { text: t("customers.domain") }),
        cell: ({ getValue }) => {
          const count = getValue()?.length ?? 0;
          return /* @__PURE__ */ jsx2(TextCell, { text: count });
        }
      })
    ],
    [t]
  );
};

// src/hooks/table/columns/use-product-tag-table-columns.tsx
import { createColumnHelper as createColumnHelper3 } from "@tanstack/react-table";
import { useMemo as useMemo3 } from "react";
import { useTranslation as useTranslation2 } from "react-i18next";
import { jsx as jsx3 } from "react/jsx-runtime";
var columnHelper3 = createColumnHelper3();
var useProductTagTableColumns = () => {
  const { t } = useTranslation2();
  return useMemo3(
    () => [
      columnHelper3.accessor("value", {
        header: () => t("fields.value"),
        cell: ({ getValue }) => /* @__PURE__ */ jsx3(TextCell, { text: getValue() })
      }),
      columnHelper3.accessor("created_at", {
        header: () => t("fields.createdAt"),
        cell: ({ getValue }) => {
          return /* @__PURE__ */ jsx3(DateCell, { date: getValue() });
        }
      }),
      columnHelper3.accessor("updated_at", {
        header: () => t("fields.updatedAt"),
        cell: ({ getValue }) => {
          return /* @__PURE__ */ jsx3(DateCell, { date: getValue() });
        }
      })
    ],
    [t]
  );
};

// src/hooks/table/columns/use-refund-reason-table-columns.tsx
import { useMemo as useMemo4 } from "react";
import { useTranslation as useTranslation3 } from "react-i18next";
import { createDataTableColumnHelper } from "@medusajs/ui";
import { jsx as jsx4 } from "react/jsx-runtime";
var columnHelper4 = createDataTableColumnHelper();

// src/hooks/table/columns/use-region-table-columns.tsx
import { createColumnHelper as createColumnHelper4 } from "@tanstack/react-table";
import { useMemo as useMemo5 } from "react";

// src/components/table/table-cells/region/countries-cell/countries-cell.tsx
import { useTranslation as useTranslation4 } from "react-i18next";
import { jsx as jsx5 } from "react/jsx-runtime";

// src/components/table/table-cells/region/payment-providers-cell/payment-providers-cell.tsx
import { useTranslation as useTranslation5 } from "react-i18next";
import { jsx as jsx6 } from "react/jsx-runtime";

// src/components/table/table-cells/region/region-cell/region-cell.tsx
import { useTranslation as useTranslation6 } from "react-i18next";
import { jsx as jsx7 } from "react/jsx-runtime";

// src/hooks/table/columns/use-region-table-columns.tsx
import { jsx as jsx8 } from "react/jsx-runtime";
var columnHelper5 = createColumnHelper4();

// src/hooks/table/columns/use-tax-rates-table-columns.tsx
import { createColumnHelper as createColumnHelper5 } from "@tanstack/react-table";
import { useMemo as useMemo6 } from "react";
import { useTranslation as useTranslation7 } from "react-i18next";

// src/components/table/table-cells/taxes/type-cell/type-cell.tsx
import { Badge as Badge2 } from "@medusajs/ui";
import { jsx as jsx9 } from "react/jsx-runtime";

// src/hooks/table/columns/use-tax-rates-table-columns.tsx
import { jsx as jsx10 } from "react/jsx-runtime";
var columnHelper6 = createColumnHelper5();

export {
  useCustomerGroupTableColumns,
  useProductTagTableColumns,
  useReturnReasonTableColumns
};
