import { api as d } from "@/common/interceptors/AxiosInterceptor";
import { jsxs as s, jsx as e, Fragment as c } from "react/jsx-runtime";
import r from "prop-types";
import "react";
import { useSelector as i } from "react-redux";
import { getUseSkeleton as m } from "@/store/reducers/SkeletonReducer";
const v = (a) => d.get("user/retrievebycriteria", { params: a, showLoader: !1 }), L = (a, l) => d.put("user/toggle", a, { params: l }), j = (a) => d.post("user", a), I = (a) => d.get("user/generateLoginCode", { params: a }), $ = (a, l) => d.get("role/byroleid", { params: a, ...l }), T = (a, l) => d.get("location/byroleid", { params: a, ...l }), B = (a) => d.get(`user?userId=${a}`), A = (a) => d.get("translation/activeLanguages", { params: a }), C = (a) => d.get("location/locationtypes", { params: a }), F = ({ action: a, ...l }) => d.get(`user/${a}`, { params: { ...l }, showLoader: !1 }), S = (a) => d.put("user/changepassword", a, {
  withCredentials: !0
  // Important!
}), k = ({ locationIds: a, roleId: l, toBeAdded: n }) => a ? d.get(
  `user/validateaoi?locationIds=${a}&roleId=${l}&toBeAdded=${n}`
) : d.get(`user/validateaoi?roleId=${l}&toBeAdded=${n}`), D = (a, l) => d.get(
  `user/validateHealthInfra?healthInfraIds=${a}&toBeRemoved=${l}`
), H = (a, l) => {
  const n = new FormData();
  return n.append("userName", a), n.append("file", l), d.post("/doctors/signature", n, {
    headers: {
      "Content-Type": "multipart/form-data"
    }
  }).then((t) => t.data);
}, U = (a) => d.get(`/doctors/signature?doctorId=${a}`, {
  responseType: "arraybuffer"
  // <-- important
}).then((l) => l.data), o = ({ children: a, isLoading: l = !0 }) => !i(m) || !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" })
  ] })
] });
o.propTypes = {
  children: r.any,
  isLoading: r.any
};
const u = ({ children: a, isLoading: l = !0 }) => !i(m) || !l ? a : /* @__PURE__ */ e(c, { 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: r.any,
  isLoading: r.any
};
const g = ({ children: a, isLoading: l = !0 }) => !i(m) || !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: r.any,
  isLoading: r.any
};
const p = ({ children: a, isLoading: l = !0 }) => !i(m) || !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: r.any,
  isLoading: r.any
};
const h = ({ children: a, isLoading: l = !0 }) => !i(m) || !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" })
  ] })
] });
h.propTypes = {
  children: r.any,
  isLoading: r.any
};
export {
  B as $,
  D as A,
  H as B,
  k as C,
  F as D,
  S as F,
  U as H,
  C as I,
  $ as L,
  L as S,
  A as T,
  T as U,
  o as c,
  h as f,
  g,
  I as j,
  j as k,
  p,
  u,
  v
};
//# sourceMappingURL=UserListSkeleton-cglK2SaU-B_Tj5gUp.js.map
