import { api as i } from "@/common/interceptors/AxiosInterceptor";
import { jsxs as s, jsx as e } from "react/jsx-runtime";
import l from "prop-types";
import "react";
import { useSelector as m } from "react-redux";
import { getUseSkeleton as n } from "@/store/reducers/SkeletonReducer";
const v = (a = !0) => i.get(`/eventconfig?isActive=${a}`, { isActive: a }), h = (a) => i.put("/eventconfig", a, {
  headers: {
    "Content-Type": "application/json;charset=UTF-8",
    Title: "Login"
  }
}), f = (a) => i.get(`/eventconfig/run/${a}`), y = () => i.get("/eventconfig/manualevents"), N = (a) => i.post("/eventconfig", a), b = (a) => i.get(`eventconfig/${a}`), w = (a) => i.get("/form", a), j = () => m(n) ? /* @__PURE__ */ s("div", { className: "flex flex-col gap-2", children: [
  /* @__PURE__ */ s("div", { className: "flex justify-between gap-2 mb-[10px]", children: [
    /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]" }),
    /* @__PURE__ */ s("div", { className: "flex space-x-2", children: [
      /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]" }),
      /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]" }),
      /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]" }),
      /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]" })
    ] })
  ] }),
  /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-full h-100" })
] }) : null, p = ({ children: a, isLoading: d }) => !m(n) || !d ? a : /* @__PURE__ */ s("div", { className: "my-6", children: [
  /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[250px] h-[40px] ml-5" }),
  /* @__PURE__ */ s("div", { className: "flex gap-10 flex-wrap  p-5", children: [
    /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[45%] h-[40px]" }),
    /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[45%] h-[120px]" }),
    /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[45%] h-[40px]" })
  ] }),
  /* @__PURE__ */ s("div", { className: "flex flex-col p-5", children: [
    /* @__PURE__ */ s("div", { className: "flex justify-between", children: [
      /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[150px] h-[40px]" }),
      /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[90px] h-[40px]" })
    ] }),
    /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[40px] mt-10" })
  ] }),
  /* @__PURE__ */ s("div", { className: "flex justify-end gap-5 pr-5", children: [
    /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[90px] h-[40px]" }),
    /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[90px] h-[40px]" })
  ] })
] });
p.propTypes = {
  children: l.any,
  isLoading: l.any
};
const r = ({ children: a, isLoading: d }) => !m(n) || !d ? a : /* @__PURE__ */ s("div", { className: "w-full h-[220px] flex flex-col justify-between animate-pulse", children: [
  /* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[28px] w-[180px] mb-4" }),
  /* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[80px] w-full mb-4" }),
  /* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 mb-2", children: [
    /* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[20px] w-[140px]" }),
    /* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[20px] w-[180px]" })
  ] }),
  /* @__PURE__ */ s("div", { className: "flex flex-row space-x-4", children: [
    /* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[20px] w-[140px]" }),
    /* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[20px] w-[180px]" })
  ] })
] });
r.propTypes = {
  children: l.any,
  isLoading: l.any
};
export {
  y as N,
  w as S,
  N as b,
  v as f,
  h,
  j as k,
  p as m,
  r as o,
  b as w,
  f as y
};
//# sourceMappingURL=EventsSkeleton-BN7_0IGs-BAnd1Vug.js.map
