import {
  CustomerGroupDetailPage
} from "./chunk-VQTQILLY.js";
import {
  CustomerGroupDetailBreadcrumb
} from "./chunk-TDL742KZ.js";
import {
  CUSTOMER_GROUP_DETAIL_FIELDS
} from "./chunk-SPFLYPY6.js";
import "./chunk-GJM5XI3E.js";
import "./chunk-GRH7C3QN.js";
import "./chunk-ZC2ME3UB.js";
import "./chunk-SYNUA6LQ.js";
import "./chunk-DB6ANJBO.js";
import "./chunk-PHOCVOZ5.js";
import "./chunk-YV6MK4PZ.js";
import "./chunk-FQERBIVS.js";
import "./chunk-7TQNE3E2.js";
import "./chunk-YN3FGNJM.js";
import "./chunk-KCHYLLVG.js";
import "./chunk-CVXKASWV.js";
import "./chunk-THHRRYRS.js";
import "./chunk-LRD242C7.js";
import "./chunk-INNFZYX2.js";
import "./chunk-BDGZ4EQO.js";
import "./chunk-LAVHRER2.js";
import "./chunk-QHQWEERJ.js";
import "./chunk-Y7QKP6QU.js";
import {
  customerGroupsQueryKeys
} from "./chunk-II3CLUXA.js";
import {
  queryClient
} from "./chunk-RHKRREUU.js";
import "./chunk-ZA2KFUFR.js";
import {
  sdk
} from "./chunk-DTGEFKK4.js";
import "./chunk-NBMM2TZK.js";

// src/pages/customer-groups/customer-group-detail/loader.ts
import { getLinkQuery } from "@mercurjs/dashboard-shared";
var customerGroupDetailQuery = (id) => {
  const query = getLinkQuery("customer_group", CUSTOMER_GROUP_DETAIL_FIELDS);
  return {
    queryKey: customerGroupsQueryKeys.detail(id, query),
    queryFn: async () => sdk.vendor.customerGroups.$id.query({
      $id: id,
      ...query
    })
  };
};
var customerGroupLoader = async ({ params }) => {
  const id = params.id;
  const query = customerGroupDetailQuery(id);
  return queryClient.ensureQueryData(query);
};
export {
  CustomerGroupDetailBreadcrumb as Breadcrumb,
  CustomerGroupDetailPage,
  customerGroupLoader as loader
};
