import { m as p } from "./app-Bpb4394e.js";
import { useCoreStore as c } from "@feedmepos/mf-common";
const u = p((s, n) => {
  function o() {
    var e;
    return `business_${((e = c().currentBusiness.value) == null ? void 0 : e._id) ?? ""}`;
  }
  return {
    async duplicateWastagetemplate(t, a) {
      const e = o(), r = `${s.inventoryBackendUrl}/${e}/duplicate-template/wastage`;
      return n.post(r, {
        templateId: t,
        templateName: a
      });
    },
    async duplicateClosingTemplate(t, a) {
      const e = o(), r = `${s.inventoryBackendUrl}/${e}/duplicate-template/closing`;
      return n.post(r, {
        templateId: t,
        templateName: a
      });
    },
    async duplicatePurchaseOrderTemplate(t, a) {
      const e = o(), r = `${s.inventoryBackendUrl}/${e}/duplicate-template/purchase-order`;
      return n.post(r, {
        templateId: t,
        templateName: a
      });
    }
  };
});
export {
  u
};
