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