You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
662 B

const REGION_CN = "cn";
const REGION_OVERSEAS = "hw";
const REGION_OPTIONS = [
{ value: REGION_CN, label: "国内" },
{ value: REGION_OVERSEAS, label: "海外" }
];
const CN_ALIASES = /* @__PURE__ */ new Set(["cn", "china", "中国", "国内"]);
function normalizeRegion(r) {
const v = (r || "").trim();
if (!v) return "";
return CN_ALIASES.has(v.toLowerCase()) ? REGION_CN : REGION_OVERSEAS;
}
function regionLabel(r) {
const n = normalizeRegion(r);
if (!n) return "未指定";
return n === REGION_CN ? "国内" : "海外";
}
export { REGION_OPTIONS as R, normalizeRegion as n, regionLabel as r };
//# sourceMappingURL=regions-D1dSykUW.mjs.map