import { t as e } from "./rolldown-runtime-gEudmnaM.js";
import "axios";
import { createContext as t, useContext as n } from "react";
//#region src/lib/context/CoreUIContext.ts
var r = t({
	config: {
		apiBaseUrl: "",
		iconUrl: "",
		theme: "light"
	},
	i18n: { formatMessage: (e, t) => e.id },
	locale: {
		getAllLocales: () => [],
		setLocale: () => {}
	},
	hooks: {
		useIntl: () => ({
			locale: "en-US",
			formatMessage: (e, t) => e.id
		}),
		useCurrentUser: () => void 0,
		useTableFetch: (() => {
			throw Error("useTableFetch was not provided by the host CoreUIProvider");
		})
	},
	tokens: {},
	services: { request: async (e, t) => Promise.resolve({}) }
}), i = () => n(r), a = /* @__PURE__ */ e(((e, t) => {
	(function() {
		var e = {}.hasOwnProperty;
		function n() {
			for (var e = "", t = 0; t < arguments.length; t++) {
				var n = arguments[t];
				n && (e = i(e, r(n)));
			}
			return e;
		}
		function r(t) {
			if (typeof t == "string" || typeof t == "number") return t;
			if (typeof t != "object") return "";
			if (Array.isArray(t)) return n.apply(null, t);
			if (t.toString !== Object.prototype.toString && !t.toString.toString().includes("[native code]")) return t.toString();
			var r = "";
			for (var a in t) e.call(t, a) && t[a] && (r = i(r, a));
			return r;
		}
		function i(e, t) {
			return t ? e ? e + " " + t : e + t : e;
		}
		t !== void 0 && t.exports ? (n.default = n, t.exports = n) : typeof define == "function" && typeof define.amd == "object" && define.amd ? define("classnames", [], function() {
			return n;
		}) : window.classNames = n;
	})();
})), o = () => {
	let { hooks: e } = i(), t = e?.useIntl?.(), n = (e, n) => t && t.formatMessage ? t.formatMessage(e, n) : e.id;
	return {
		...t,
		locale: t?.locale || "en-US",
		formatMessage: n
	};
};
//#endregion
export { r as i, a as n, i as r, o as t };
