import {
  PromotionListPage
} from "./chunk-GYKVLGU4.js";
import "./chunk-UYKWOC5A.js";
import "./chunk-KERA6OZN.js";
import "./chunk-JHIMVLB2.js";
import "./chunk-FMFVTERD.js";
import "./chunk-DB6ANJBO.js";
import "./chunk-PHOCVOZ5.js";
import "./chunk-V5J73NPW.js";
import "./chunk-FQERBIVS.js";
import "./chunk-ULJ3OMWU.js";
import "./chunk-YBZWO4ZV.js";
import "./chunk-KAZ5BYTQ.js";
import "./chunk-3EF54XFY.js";
import "./chunk-XIZLPYEE.js";
import "./chunk-ZMDE5HEV.js";
import "./chunk-INNFZYX2.js";
import "./chunk-BDGZ4EQO.js";
import "./chunk-LAVHRER2.js";
import "./chunk-Y7QKP6QU.js";
import "./chunk-S2WEYEQR.js";
import "./chunk-KBYZLKI4.js";
import "./chunk-YWWUOGJA.js";
import "./chunk-THHRRYRS.js";
import "./chunk-UZWFZMOX.js";
import "./chunk-XQNVC4Q7.js";
import {
  promotionsQueryKeys
} from "./chunk-HAFZQK53.js";
import {
  queryClient
} from "./chunk-RHKRREUU.js";
import "./chunk-ZA2KFUFR.js";
import {
  sdk
} from "./chunk-RIN4CBRB.js";
import "./chunk-NBMM2TZK.js";

// src/pages/promotions/promotion-list/loader.ts
var params = {
  limit: 20,
  offset: 0
};
var promotionsListQuery = () => ({
  queryKey: promotionsQueryKeys.list(params),
  queryFn: async () => sdk.admin.promotions.query(params)
});
var promotionsLoader = (client) => {
  return async () => {
    const query = promotionsListQuery();
    return queryClient.getQueryData(query.queryKey) ?? await client.fetchQuery(query);
  };
};
export {
  PromotionListPage as Component,
  promotionsLoader
};
