import { api as n } 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 t } from "react-redux";
import { getUseSkeleton as i } from "@/store/reducers/SkeletonReducer";
const f = (a = !0) => n.get(`/eventconfig?isActive=${a}`, { isActive: a }), h = (a) => n.put("/eventconfig", a, {
  headers: {
    "Content-Type": "application/json;charset=UTF-8",
    Title: "Login"
  }
}), y = (a) => n.get(`/eventconfig/run/${a}`), N = () => n.get("/eventconfig/manualevents"), b = (a) => n.post("/eventconfig", a), w = (a) => n.get(`eventconfig/${a}`), S = (a) => n.get("/form", a), k = () => t(i) ? /* @__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, m = ({ children: a, isLoading: r }) => !t(i) || !r ? 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]" })
  ] })
] });
m.propTypes = {
  children: l.any,
  isLoading: l.any
};
const o = ({ children: a, isLoading: r }) => !t(i) || !r ? 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]" })
  ] })
] });
o.propTypes = {
  children: l.any,
  isLoading: l.any
};
export {
  k as E,
  m as M,
  y as a,
  S as b,
  N as c,
  w as d,
  o as e,
  f as r,
  b as s,
  h as t
};
//# sourceMappingURL=EventsSkeleton-BN7_0IGs.js.map
