This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+180
View File
@@ -0,0 +1,180 @@
// Metro module 12129 (f12130).
import * as _mergeDefs from "./mergeDefs";
const r2 = (this ? this.__createBinding : this) || (Object.create ? function(a0, a1, a2, a3) {
const r6 = a3 === void 0 ? a2 : a3;
let r9 = Object.getOwnPropertyDescriptor(a1, a2);
if (!(r9 ? !("get" in r9 ? !a1.__esModule : r9.writable || r9.configurable) : r9)) {
r9 = {
enumerable: true,
get: function get() {
return a1[a2];
}
};
}
Object.defineProperty(a0, r6, r9);
} : function(a0, a1, a2, a3) {
a0[a3 === void 0 ? a2 : a3] = a1[a2];
});
let c8361_2, error;
let c8361_0 = r2;
let c8361_1 = (this ? this.__setModuleDefault : this) || (Object.create ? function(a0, a1) {
Object.defineProperty(a0, "default", {
enumerable: true,
value: a1
});
} : function(a0, a1) {
a0.default = a1;
});
const r5 = (this ? this.__importStar : this) || function(a0) {
if (a0 && a0.__esModule) {
return a0;
}
const r15 = {};
if (a0 != null) {
for (const key in a0) {
if (key !== "default" && Object.prototype.hasOwnProperty.call(a0, key)) {
c8361_0(r15, a0, key);
}
}
}
c8361_1(r15, a0);
return r15;
};
export default function default_1() {
let c19588_0 = {
string: {
unit: "ตัวอักษร",
verb: "ควรมี"
},
file: {
unit: "ไบต์",
verb: "ควรมี"
},
array: {
unit: "รายการ",
verb: "ควรมี"
},
set: {
unit: "รายการ",
verb: "ควรมี"
}
};
let c19588_1 = {
regex: "ข้อมูลที่ป้อน",
email: "ที่อยู่อีเมล",
url: "URL",
emoji: "อิโมจิ",
uuid: "UUID",
uuidv4: "UUIDv4",
uuidv6: "UUIDv6",
nanoid: "nanoid",
guid: "GUID",
cuid: "cuid",
cuid2: "cuid2",
ulid: "ULID",
xid: "XID",
ksuid: "KSUID",
datetime: "วันที่เวลาแบบ ISO",
date: "วันที่แบบ ISO",
time: "เวลาแบบ ISO",
duration: "ช่วงเวลาแบบ ISO",
ipv4: "ที่อยู่ IPv4",
ipv6: "ที่อยู่ IPv6",
cidrv4: "ช่วง IP แบบ IPv4",
cidrv6: "ช่วง IP แบบ IPv6",
base64: "ข้อความแบบ Base64",
base64url: "ข้อความแบบ Base64 สำหรับ URL",
json_string: "ข้อความแบบ JSON",
e164: "เบอร์โทรศัพท์ระหว่างประเทศ (E.164)",
jwt: "โทเคน JWT",
template_literal: "ข้อมูลที่ป้อน"
};
let c19588_2 = {
nan: "NaN",
number: "ตัวเลข",
array: "อาร์เรย์ (Array)",
null: "ไม่มีค่า (null)"
};
return {
localeError: (a0) => {
let r64, r125;
switch (a0.code) {
case "invalid_type":
let r167 = c19588_2[a0.expected];
if (r167 == null) {
r167 = a0.expected;
}
const r173 = c8361_2.parsedType(a0.input);
let r174 = c19588_2[r173];
if (r174 == null) {
r174 = r173;
}
return /^[A-Z]/.test(a0.expected) ? `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น instanceof ${a0.expected} แต่ได้รับ ${r174}` : `ประเภทข้อมูลไม่ถูกต้อง: ควรเป็น ${r167} แต่ได้รับ ${r174}`;
case "invalid_value":
return a0.values.length === 1 ? `ค่าไม่ถูกต้อง: ควรเป็น ${c8361_2.stringifyPrimitive(a0.values[0])}` : `ตัวเลือกไม่ถูกต้อง: ควรเป็นหนึ่งใน ${c8361_2.joinValues(a0.values, "|")}`;
case "too_big":
const r107 = a0.inclusive ? "ไม่เกิน" : "น้อยกว่า";
let r110 = c19588_0[a0.origin];
if (r110 == null) {
r110 = null;
}
let origin2 = a0.origin;
if (r110) {
if (origin2 == null) {
origin2 = "ค่า";
}
const r128 = a0.maximum.toString();
let unit = r110.unit;
if (unit == null) {
unit = "รายการ";
}
r125 = `เกินกำหนด: ${origin2} ควรมี${r107} ${r128} ${unit}`;
} else {
r125 = `เกินกำหนด: ${origin2 == null ? "ค่า" : origin2} ควรมี${r107} ${a0.maximum.toString()}`;
}
return r125;
case "too_small":
const r12 = a0.inclusive ? "อย่างน้อย" : "มากกว่า";
let r90 = c19588_0[a0.origin];
if (r90 == null) {
r90 = null;
}
const origin = a0.origin;
const r10 = a0.minimum.toString();
return r90 ? `น้อยกว่ากำหนด: ${origin} ควรมี${r12} ${r10} ${r90.unit}` : `น้อยกว่ากำหนด: ${origin} ควรมี${r12} ${r10}`;
case "invalid_format":
if (a0.format === "starts_with") {
r64 = `รูปแบบไม่ถูกต้อง: ข้อความต้องขึ้นต้นด้วย "${a0.prefix}"`;
} else if (a0.format === "ends_with") {
r64 = `รูปแบบไม่ถูกต้อง: ข้อความต้องลงท้ายด้วย "${a0.suffix}"`;
} else if (a0.format === "includes") {
r64 = `รูปแบบไม่ถูกต้อง: ข้อความต้องมี "${a0.includes}" อยู่ในข้อความ`;
} else if (a0.format === "regex") {
r64 = `รูปแบบไม่ถูกต้อง: ต้องตรงกับรูปแบบที่กำหนด ${a0.pattern}`;
} else {
let r59 = c19588_1[a0.format];
if (r59 == null) {
r59 = a0.format;
}
r64 = `รูปแบบไม่ถูกต้อง: ${r59}`;
}
return r64;
case "not_multiple_of":
return `ตัวเลขไม่ถูกต้อง: ต้องเป็นจำนวนที่หารด้วย ${a0.divisor} ได้ลงตัว`;
case "unrecognized_keys":
return `พบคีย์ที่ไม่รู้จัก: ${c8361_2.joinValues(a0.keys, ", ")}`;
case "invalid_key":
return `คีย์ไม่ถูกต้องใน ${a0.origin}`;
case "invalid_union":
return "ข้อมูลไม่ถูกต้อง: ไม่ตรงกับรูปแบบยูเนียนที่กำหนดไว้";
case "invalid_element":
return `ข้อมูลไม่ถูกต้องใน ${a0.origin}`;
default:
return "ข้อมูลไม่ถูกต้อง";
}
}
};
};
c8361_2 = r5(_mergeDefs);
error = () => {};
module.exports = exports.default;