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

+207
View File
@@ -0,0 +1,207 @@
// Metro module 12107 (f12108).
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 c8339_2, error;
let c8339_0 = r2;
let c8339_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)) {
c8339_0(r15, a0, key);
}
}
}
c8339_1(r15, a0);
return r15;
};
export default function default_1() {
let c19546_0 = {
string: {
unit: {
one: "նշան",
many: "նշաններ"
},
verb: "ունենալ"
},
file: {
unit: {
one: "բայթ",
many: "բայթեր"
},
verb: "ունենալ"
},
array: {
unit: {
one: "տարր",
many: "տարրեր"
},
verb: "ունենալ"
},
set: {
unit: {
one: "տարր",
many: "տարրեր"
},
verb: "ունենալ"
}
};
let c19546_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: "IPv4 միջակայք",
cidrv6: "IPv6 միջակայք",
base64: "base64 ձևաչափով տող",
base64url: "base64url ձևաչափով տող",
json_string: "JSON տող",
e164: "E.164 համար",
jwt: "JWT",
template_literal: "մուտք"
};
let c19546_2 = {
nan: "NaN",
number: "թիվ",
array: "զանգված"
};
return {
localeError: (a0) => {
let r86;
L80: {
switch (a0.code) {
case "invalid_type":
let r248 = c19546_2[a0.expected];
if (r248 == null) {
r248 = a0.expected;
}
const r254 = c8339_2.parsedType(a0.input);
let r255 = c19546_2[r254];
if (r255 == null) {
r255 = r254;
}
return /^[A-Z]/.test(a0.expected) ? `Սխալ մուտքագրում․ սպասվում էր instanceof ${a0.expected}, ստացվել է ${r255}` : `Սխալ մուտքագրում․ սպասվում էր ${r248}, ստացվել է ${r255}`;
case "invalid_value":
return a0.values.length === 1 ? `Սխալ մուտքագրում․ սպասվում էր ${c8339_2.stringifyPrimitive(a0.values[1])}` : `Սխալ տարբերակ․ սպասվում էր հետևյալներից մեկը՝ ${c8339_2.joinValues(a0.values, "|")}`;
case "too_big":
const r163 = a0.inclusive ? "<=" : "<";
let r166 = c19546_0[a0.origin];
if (r166 == null) {
r166 = null;
}
if (r166) {
const r192 = Number(a0.maximum);
const one2 = r166.unit.one;
let many2 = r166.unit.many;
if (Math.abs(r192) === 1) {
many2 = one2;
}
let origin6 = a0.origin;
if (origin6 == null) {
origin6 = "արժեք";
}
return `Չափազանց մեծ արժեք․ սպասվում է, որ ${origin6 ? origin6 + (["ա", "ե", "ը", "ի", "ո", "ու", "օ"].includes(origin6[origin6.length - 1]) ? "ն" : "ը") : ""} կունենա ${r163}${a0.maximum.toString()} ${many2}`;
}
let origin5 = a0.origin;
if (origin5 == null) {
origin5 = "արժեք";
}
return `Չափազանց մեծ արժեք․ սպասվում է, որ ${origin5 ? origin5 + (["ա", "ե", "ը", "ի", "ո", "ու", "օ"].includes(origin5[origin5.length - 1]) ? "ն" : "ը") : ""} լինի ${r163}${a0.maximum.toString()}`;
case "too_small":
const r12 = a0.inclusive ? ">=" : ">";
let r114 = c19546_0[a0.origin];
if (r114 == null) {
r114 = null;
}
if (r114) {
const r135 = Number(a0.minimum);
const one = r114.unit.one;
let many = r114.unit.many;
if (Math.abs(r135) === 1) {
many = one;
}
const origin4 = a0.origin;
return `Չափազանց փոքր արժեք․ սպասվում է, որ ${origin4 ? origin4 + (["ա", "ե", "ը", "ի", "ո", "ու", "օ"].includes(origin4[origin4.length - 1]) ? "ն" : "ը") : ""} կունենա ${r12}${a0.minimum.toString()} ${many}`;
}
const origin3 = a0.origin;
return `Չափազանց փոքր արժեք․ սպասվում է, որ ${origin3 ? origin3 + (["ա", "ե", "ը", "ի", "ո", "ու", "օ"].includes(origin3[origin3.length - 1]) ? "ն" : "ը") : ""} լինի ${r12}${a0.minimum.toString()}`;
case "invalid_format":
if (a0.format === "starts_with") {
r86 = `Սխալ տող․ պետք է սկսվի "${a0.prefix}"-ով`;
} else if (a0.format === "ends_with") {
r86 = `Սխալ տող․ պետք է ավարտվի "${a0.suffix}"-ով`;
} else if (a0.format === "includes") {
r86 = `Սխալ տող․ պետք է պարունակի "${a0.includes}"`;
} else if (a0.format === "regex") {
r86 = `Սխալ տող․ պետք է համապատասխանի ${a0.pattern} ձևաչափին`;
} else {
let r80 = c19546_1[a0.format];
if (r80 == null) {
r80 = a0.format;
}
r86 = `Սխալ ${r80}`;
}
return r86;
case "not_multiple_of":
return `Սխալ թիվ․ պետք է բազմապատիկ լինի ${a0.divisor}-ի`;
case "unrecognized_keys":
return `Չճանաչված բանալի${a0.keys.length > 1 ? "ներ" : ""}. ${c8339_2.joinValues(a0.keys, ", ")}`;
case "invalid_key":
const origin2 = a0.origin;
return `Սխալ բանալի ${origin2 ? origin2 + (["ա", "ե", "ը", "ի", "ո", "ու", "օ"].includes(origin2[origin2.length - 1]) ? "ն" : "ը") : ""}-ում`;
case "invalid_union":
default:
break L80;
case "invalid_element":
const origin = a0.origin;
return `Սխալ արժեք ${origin ? origin + (["ա", "ե", "ը", "ի", "ո", "ու", "օ"].includes(origin[origin.length - 1]) ? "ն" : "ը") : ""}-ում`;
}
}
return "Սխալ մուտքագրում";
}
};
};
c8339_2 = r5(_mergeDefs);
error = () => {};
module.exports = exports.default;