let node_path = require("node:path");
let node_fs = require("node:fs");
let node_fs_promises = require("node:fs/promises");
let node_url = require("node:url");
let __intlayer_config = require("@intlayer/config");

//#region src/generated/legal.entry.ts
const currentDir = typeof __dirname !== "undefined" ? __dirname : (0, node_path.dirname)((0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href));
let baseDir;
try {
	baseDir = (0, __intlayer_config.getPackageJsonPath)((0, __intlayer_config.getProjectRequire)(currentDir).resolve("@intlayer/docs")).baseDir;
} catch {
	try {
		baseDir = (0, __intlayer_config.getPackageJsonPath)((0, __intlayer_config.getProjectRequire)().resolve("@intlayer/docs")).baseDir;
	} catch {
		baseDir = (0, __intlayer_config.getPackageJsonPath)(currentDir).baseDir;
	}
}
const readLocale = (relativeAfterLocale, locale) => {
	const target1 = (0, node_path.join)(baseDir, `./legal/${locale}/${relativeAfterLocale}`);
	if ((0, node_fs.existsSync)(target1)) return (0, node_fs_promises.readFile)(target1, "utf8");
	const target2 = (0, node_path.join)(baseDir, `./legal/en/${relativeAfterLocale}`);
	if ((0, node_fs.existsSync)(target2)) return (0, node_fs_promises.readFile)(target2, "utf8");
	return Promise.reject(/* @__PURE__ */ new Error(`[docs] File not found: ${relativeAfterLocale} - locale: ${locale} - path: ${target1} - path: ${target2}`));
};
const legalEntry = {
	"./legal/en/privacy_notice.md": {
		en: readLocale("privacy_notice.md", "en"),
		ru: readLocale("privacy_notice.md", "ru"),
		ja: readLocale("privacy_notice.md", "ja"),
		fr: readLocale("privacy_notice.md", "fr"),
		ko: readLocale("privacy_notice.md", "ko"),
		zh: readLocale("privacy_notice.md", "zh"),
		es: readLocale("privacy_notice.md", "es"),
		de: readLocale("privacy_notice.md", "de"),
		ar: readLocale("privacy_notice.md", "ar"),
		it: readLocale("privacy_notice.md", "it"),
		"en-GB": readLocale("privacy_notice.md", "en-GB"),
		pt: readLocale("privacy_notice.md", "pt"),
		hi: readLocale("privacy_notice.md", "hi"),
		tr: readLocale("privacy_notice.md", "tr"),
		pl: readLocale("privacy_notice.md", "pl"),
		id: readLocale("privacy_notice.md", "id"),
		vi: readLocale("privacy_notice.md", "vi")
	},
	"./legal/en/terms_of_service.md": {
		en: readLocale("terms_of_service.md", "en"),
		ru: readLocale("terms_of_service.md", "ru"),
		ja: readLocale("terms_of_service.md", "ja"),
		fr: readLocale("terms_of_service.md", "fr"),
		ko: readLocale("terms_of_service.md", "ko"),
		zh: readLocale("terms_of_service.md", "zh"),
		es: readLocale("terms_of_service.md", "es"),
		de: readLocale("terms_of_service.md", "de"),
		ar: readLocale("terms_of_service.md", "ar"),
		it: readLocale("terms_of_service.md", "it"),
		"en-GB": readLocale("terms_of_service.md", "en-GB"),
		pt: readLocale("terms_of_service.md", "pt"),
		hi: readLocale("terms_of_service.md", "hi"),
		tr: readLocale("terms_of_service.md", "tr"),
		pl: readLocale("terms_of_service.md", "pl"),
		id: readLocale("terms_of_service.md", "id"),
		vi: readLocale("terms_of_service.md", "vi")
	}
};

//#endregion
exports.legalEntry = legalEntry;
//# sourceMappingURL=legal.entry.cjs.map