import {
  ShippingProfileDetailPage
} from "./chunk-56AUQBQX.js";
import "./chunk-FI474ADU.js";
import "./chunk-3XPXUIK3.js";
import "./chunk-E74OUNA3.js";
import "./chunk-H6MYB7GB.js";
import "./chunk-INNFZYX2.js";
import "./chunk-BDGZ4EQO.js";
import "./chunk-LAVHRER2.js";
import "./chunk-Y7QKP6QU.js";
import {
  shippingProfileQueryKeys,
  useShippingProfile
} from "./chunk-N6SI4IIT.js";
import {
  queryClient
} from "./chunk-RHKRREUU.js";
import "./chunk-ZA2KFUFR.js";
import {
  sdk
} from "./chunk-ZBWL72TB.js";
import "./chunk-NBMM2TZK.js";

// src/pages/shipping-profiles/shipping-profile-detail/breadcrumb.tsx
import { jsx } from "react/jsx-runtime";
var ShippingProfileDetailBreadcrumb = (props) => {
  const { shipping_profile_id } = props.params || {};
  const { shipping_profile } = useShippingProfile(
    shipping_profile_id,
    void 0,
    {
      initialData: props.data,
      enabled: Boolean(shipping_profile_id)
    }
  );
  if (!shipping_profile) {
    return null;
  }
  return /* @__PURE__ */ jsx("span", { children: shipping_profile.name });
};

// src/pages/shipping-profiles/shipping-profile-detail/loader.ts
var shippingProfileQuery = (id) => ({
  queryKey: shippingProfileQueryKeys.detail(id),
  queryFn: async () => sdk.admin.shippingProfiles.$id.query({ $id: id })
});
var shippingProfileLoader = async ({ params }) => {
  const id = params.shipping_profile_id;
  const query = shippingProfileQuery(id);
  return queryClient.ensureQueryData(query);
};
export {
  ShippingProfileDetailBreadcrumb as Breadcrumb,
  ShippingProfileDetailPage as Component,
  shippingProfileLoader as loader
};
