//#region src/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.helpers.ts
var e = ({ hasNextPage: e, isLoading: t, pageInfoState: n }) => t ? "loading" : n ?? (e ? "ready" : "complete"), t = (e, t) => typeof t == "number" ? `${e} / ${t}` : e > 0 ? String(e) : null, n = ({ labels: e, loadedCount: n, totalCount: r }) => ({
	loaded: e?.loaded ?? t(n, r),
	loadMore: e?.loadMore ?? "Load more",
	loading: e?.loading ?? "Loading",
	end: e?.end ?? "End of list"
}), r = ({ labels: e, mode: t, pageInfoState: n }) => n === "complete" ? e.end : n === "loading" ? e.loading : t === "button" && n === "ready" ? e.loadMore : null;
//#endregion
export { n as resolveBackofficeListFooterLabels, e as resolveBackofficeListFooterPageInfoState, r as resolveBackofficeListFooterStatusLabel, t as resolveDefaultBackofficeListFooterLoadedLabel };

//# sourceMappingURL=BackofficeListFooter.helpers.js.map