import { cx as e } from "../../../theme/tools.js";
import { Spinner as t } from "../../atoms/spinner/Spinner.js";
import { container as n, loaded as r, progress as i } from "./backofficeInfiniteListStatus.css.js";
import { jsx as a, jsxs as o } from "react/jsx-runtime";
//#region src/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.tsx
var s = ({ className: s, endLabel: c, hasNextPage: l, isLoading: u, loadedLabel: d, loadingLabel: f, pageInfoState: p }) => {
	let m = p;
	m == null && u && (m = "loading"), m == null && l && (m = "ready"), m ??= "complete";
	let h = null;
	m === "complete" && (h = c), m === "loading" && (h = f);
	let g = d != null, _ = h != null;
	return /* @__PURE__ */ o("div", {
		className: e(n, s),
		children: [/* @__PURE__ */ a("div", {
			className: r,
			role: "status",
			"aria-live": "polite",
			"aria-atomic": "true",
			children: g && /* @__PURE__ */ a("span", {
				className: "_10bqk743 txvbqb8y txvbqbva1 txvbqbl7g txvbqbt7g txvbqbuxg",
				children: d
			})
		}), /* @__PURE__ */ o("div", {
			className: i,
			"aria-live": "polite",
			"aria-atomic": "true",
			children: [u && /* @__PURE__ */ a(t, { size: 16 }), _ && /* @__PURE__ */ a("span", {
				className: "_10bqk744 txvbqb8y txvbqbva3",
				children: h
			})]
		})]
	});
};
//#endregion
export { s as BackofficeInfiniteListStatus, s as default };

//# sourceMappingURL=BackofficeInfiniteListStatus.js.map