import { api as r } from "@/common/interceptors/AxiosInterceptor";
import { jsxs as s, jsx as e, Fragment as m } from "react/jsx-runtime";
import n from "prop-types";
import "react";
import { useSelector as d } from "react-redux";
import { getUseSkeleton as o } from "@/store/reducers/SkeletonReducer";
const v = (a) => r.get("user/retrievebycriteria", { params: a, showLoader: !1 }), S = (a, l) => r.put("user/toggle", a, { params: l }), k = (a) => r.post("user", a), j = (a) => r.get("user/generateLoginCode", { params: a }), L = (a, l) => r.get("role/byroleid", { params: a, ...l }), U = (a, l) => r.get("location/byroleid", { params: a, ...l }), $ = (a) => r.get(`user?userId=${a}`), T = (a) => r.get("translation/activeLanguages", { params: a }), I = (a) => r.get("location/locationtypes", { params: a }), D = ({ action: a, ...l }) => r.get(`user/${a}`, { params: { ...l }, showLoader: !1 }), F = (a) => r.put("user/changepassword", a, {
  withCredentials: !0
  // Important!
}), C = ({ locationIds: a, roleId: l, toBeAdded: t }) => a ? r.get(
  `user/validateaoi?locationIds=${a}&roleId=${l}&toBeAdded=${t}`
) : r.get(`user/validateaoi?roleId=${l}&toBeAdded=${t}`), A = (a, l) => r.get(
  `user/validateHealthInfra?healthInfraIds=${a}&toBeRemoved=${l}`
), B = (a, l) => {
  const t = new FormData();
  return t.append("userName", a), t.append("file", l), r.post("/doctors/signature", t, {
    headers: {
      "Content-Type": "multipart/form-data"
    }
  }).then((i) => i.data);
}, H = (a) => r.get(`/doctors/signature?doctorId=${a}`, {
  responseType: "arraybuffer"
  // <-- important
}).then((l) => l.data), c = ({ children: a, isLoading: l = !0 }) => !d(o) || !l ? a : /* @__PURE__ */ s("div", { className: "flex justify-between space-x-2 mb-4 mt-4", children: [
  /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e("div", { className: "w-40 h-10 bg-gray-300 animate-pulse rounded-md" }) }),
  /* @__PURE__ */ s("div", { className: "flex space-x-4", children: [
    /* @__PURE__ */ e("div", { className: "w-60 h-10 bg-gray-300 animate-pulse rounded-md" }),
    /* @__PURE__ */ e("div", { className: "w-20 h-10 bg-gray-300 animate-pulse rounded-full" }),
    /* @__PURE__ */ e("div", { className: "w-20 h-10 bg-gray-300 animate-pulse rounded-md" })
  ] })
] });
c.propTypes = {
  children: n.any,
  isLoading: n.any
};
const u = ({ children: a, isLoading: l = !0 }) => !d(o) || !l ? a : /* @__PURE__ */ e(m, { children: /* @__PURE__ */ e("div", { className: "flex flex-row", children: /* @__PURE__ */ s("div", { className: "flex flex-col space-y-4 p-6 overflow-y-auto  w-full", children: [
  /* @__PURE__ */ s("div", { className: "px-4 py-2 flex space-x-3 items-center justify-between ", children: [
    /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-20 h-10" }),
    /* @__PURE__ */ s("div", { className: "flex space-x-3", children: [
      /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" }),
      /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10" })
    ] })
  ] }),
  /* @__PURE__ */ s("div", { className: "flex flex-row justify-between space-x-4", children: [
    /* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
    ] }),
    /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
  ] }),
  /* @__PURE__ */ s("div", { className: "flex flex-row justify-between space-x-4", children: [
    /* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[33%] h-10 " }),
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[33%] h-10 " }),
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[33%] h-10 " })
    ] }),
    /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
  ] }),
  /* @__PURE__ */ s("div", { className: "flex flex-row justify-between space-x-4", children: [
    /* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
    ] }),
    /* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
    ] }),
    " "
  ] }),
  /* @__PURE__ */ s("div", { className: "flex flex-row justify-between space-x-4", children: [
    /* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
    ] }),
    /* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
    ] }),
    " "
  ] }),
  /* @__PURE__ */ s("div", { className: "flex flex-row justify-between space-x-4", children: [
    /* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
    ] }),
    /* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
    ] }),
    " "
  ] }),
  /* @__PURE__ */ s("div", { className: "flex flex-row justify-between space-x-4", children: [
    /* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
    ] }),
    /* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 w-[50%]", children: [
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " }),
      /* @__PURE__ */ e("button", { className: "bg-gray-300 animate-pulse rounded-sm w-[50%] h-10 " })
    ] }),
    " "
  ] }),
  /* @__PURE__ */ s("div", { className: "flex flex-col space-y-2", children: [
    /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-40 h-10  " }),
    /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-100 h-10  " })
  ] }),
  /* @__PURE__ */ s("div", { className: "flex flex-row w-full justify-end space-x-3 p-3  ", children: [
    /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-20 h-10  " }),
    /* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-20 h-10  " })
  ] })
] }) }) });
u.propTypes = {
  children: n.any,
  isLoading: n.any
};
const g = ({ children: a, isLoading: l = !0 }) => !d(o) || !l ? a : /* @__PURE__ */ s("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mt-4 mb-4", children: [
  /* @__PURE__ */ e("div", { className: "h-20 bg-gray-300 animate-pulse rounded-md" }),
  /* @__PURE__ */ e("div", { className: "h-20 bg-gray-300 animate-pulse rounded-md" }),
  /* @__PURE__ */ e("div", { className: "h-20 bg-gray-300 animate-pulse rounded-md" }),
  /* @__PURE__ */ e("div", { className: "h-20 bg-gray-300 animate-pulse rounded-md" })
] });
g.propTypes = {
  children: n.any,
  isLoading: n.any
};
const p = ({ children: a, isLoading: l = !0 }) => !d(o) || !l ? a : /* @__PURE__ */ s("div", { className: "flex flex-col space-y-3", children: [
  /* @__PURE__ */ s("div", { className: "flex flex-col space-y-1", children: [
    /* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-40 h-10" }),
    /* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-full h-10" })
  ] }),
  /* @__PURE__ */ s("div", { className: "flex flex-col space-y-1", children: [
    /* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-40 h-10" }),
    /* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-full h-10" })
  ] }),
  /* @__PURE__ */ s("div", { className: "flex flex-row space-x-1 justify-end", children: [
    /* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-20 h-10" }),
    /* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-20 h-10" })
  ] })
] });
p.propTypes = {
  children: n.any,
  isLoading: n.any
};
const f = ({ children: a, isLoading: l = !0 }) => !d(o) || !l ? a : /* @__PURE__ */ s("div", { className: "flex flex-col space-y-3", children: [
  /* @__PURE__ */ s("div", { className: "flex flex-col space-y-1", children: [
    /* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-40 h-10" }),
    /* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-full h-10" })
  ] }),
  /* @__PURE__ */ s("div", { className: "flex flex-col space-y-1", children: [
    /* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-40 h-10" }),
    /* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-full h-10" })
  ] }),
  /* @__PURE__ */ s("div", { className: "flex flex-row space-x-1 justify-end", children: [
    /* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-20 h-10" }),
    /* @__PURE__ */ e("div", { className: "animate-pulse bg-gray-300 rounded-sm w-20 h-10" })
  ] })
] });
f.propTypes = {
  children: n.any,
  isLoading: n.any
};
export {
  u as M,
  f as U,
  p as a,
  c as b,
  g as c,
  j as d,
  v as e,
  T as f,
  L as g,
  $ as h,
  U as i,
  H as j,
  D as k,
  I as l,
  A as m,
  B as n,
  F as o,
  S as t,
  k as u,
  C as v
};
//# sourceMappingURL=UserListSkeleton-cglK2SaU.js.map
