import{dirname as e,join as t}from"node:path";import{existsSync as n}from"node:fs";import{readFile as r}from"node:fs/promises";import{fileURLToPath as i}from"node:url";import{getPackageJsonPath as a,getProjectRequire as o}from"@intlayer/config/utils";const s=typeof __dirname<`u`?__dirname:e(i(import.meta.url));let c;try{c=a(o(s).resolve(`@intlayer/docs`)).baseDir}catch{try{c=a(o().resolve(`@intlayer/docs`)).baseDir}catch{c=a(s).baseDir}}const l=(e,i)=>{let a=t(c,`./legal/${i}/${e}`);if(n(a))return r(a,`utf8`);let o=t(c,`./legal/en/${e}`);return n(o)?r(o,`utf8`):Promise.reject(Error(`[docs] File not found: ${e} - locale: ${i} - path: ${a} - path: ${o}`))},u={"./legal/en/privacy_notice.md":{en:l(`privacy_notice.md`,`en`),ru:l(`privacy_notice.md`,`ru`),ja:l(`privacy_notice.md`,`ja`),fr:l(`privacy_notice.md`,`fr`),ko:l(`privacy_notice.md`,`ko`),zh:l(`privacy_notice.md`,`zh`),es:l(`privacy_notice.md`,`es`),de:l(`privacy_notice.md`,`de`),ar:l(`privacy_notice.md`,`ar`),it:l(`privacy_notice.md`,`it`),"en-GB":l(`privacy_notice.md`,`en-GB`),pt:l(`privacy_notice.md`,`pt`),hi:l(`privacy_notice.md`,`hi`),tr:l(`privacy_notice.md`,`tr`),pl:l(`privacy_notice.md`,`pl`),id:l(`privacy_notice.md`,`id`),vi:l(`privacy_notice.md`,`vi`),uk:l(`privacy_notice.md`,`uk`)},"./legal/en/terms_of_service.md":{en:l(`terms_of_service.md`,`en`),ru:l(`terms_of_service.md`,`ru`),ja:l(`terms_of_service.md`,`ja`),fr:l(`terms_of_service.md`,`fr`),ko:l(`terms_of_service.md`,`ko`),zh:l(`terms_of_service.md`,`zh`),es:l(`terms_of_service.md`,`es`),de:l(`terms_of_service.md`,`de`),ar:l(`terms_of_service.md`,`ar`),it:l(`terms_of_service.md`,`it`),"en-GB":l(`terms_of_service.md`,`en-GB`),pt:l(`terms_of_service.md`,`pt`),hi:l(`terms_of_service.md`,`hi`),tr:l(`terms_of_service.md`,`tr`),pl:l(`terms_of_service.md`,`pl`),id:l(`terms_of_service.md`,`id`),vi:l(`terms_of_service.md`,`vi`),uk:l(`terms_of_service.md`,`uk`)}};export{u as legalEntry};
//# sourceMappingURL=legal.entry.mjs.map