40 lines
1.9 KiB
JavaScript
40 lines
1.9 KiB
JavaScript
// Module ID: 3409
|
||
// Function ID: 3410
|
||
// Dependencies: [1956, 1957]
|
||
|
||
// Module 3409
|
||
import buildMatchFn from "buildMatchFn";
|
||
import buildMatchPatternFn from "buildMatchPatternFn";
|
||
|
||
if (!buildMatchFn) {
|
||
let obj = { default: null };
|
||
obj[0] = buildMatchFn;
|
||
} else {
|
||
obj = buildMatchFn;
|
||
}
|
||
if (!buildMatchPatternFn) {
|
||
obj = { default: null };
|
||
obj[0] = buildMatchPatternFn;
|
||
let obj2 = obj;
|
||
} else {
|
||
obj2 = buildMatchPatternFn;
|
||
}
|
||
obj2 = {
|
||
matchPattern: /^(\d+)(\.)?/i,
|
||
parsePattern: /\d+/i,
|
||
valueCallback(joined) {
|
||
return parseInt(joined, 10);
|
||
}
|
||
};
|
||
const items = [/(^mö|^milattan önce)/i, /(^ms|^milattan sonra)/i];
|
||
const items1 = [/1/i, /2/i, /3/i, /4/i];
|
||
const items2 = [/1ç/i, /2ç/i, /3ç/i, /4ç/i];
|
||
const items3 = [/^(i|İ)lk çeyrek/i, /(i|İ)kinci çeyrek/i, /üçüncü çeyrek/i, /son çeyrek/i];
|
||
const items4 = [/^o/i, /^ş/i, /^m/i, /^n/i, /^m/i, /^h/i, /^t/i, /^a/i, /^e/i, /^e/i, /^k/i, /^a/i];
|
||
const items5 = [/^o/i, /^ş/i, /^mar/i, /^n/i, /^may/i, /^h/i, /^t/i, /^ağ/i, /^ey/i, /^ek/i, /^k/i, /^ar/i];
|
||
const items6 = [/^p/i, /^p/i, /^s/i, /^ç/i, /^p/i, /^c/i, /^c/i];
|
||
const items7 = [/^pz/i, /^pt/i, /^sa/i, /^ça/i, /^pe/i, /^cu/i, /^ct/i];
|
||
const items8 = [/^pazar(?!tesi)/i, /^pazartesi/i, /^salı/i, /^çarşamba/i, /^perşembe/i, /^cuma(?!rtesi)/i, /^cumartesi/i];
|
||
|
||
export default { ordinalNumber: obj2.default(obj2), era: obj.default({ matchPatterns: obj3, defaultMatchWidth: "wide", parsePatterns: { any: items }, defaultParseWidth: "any" }), quarter: obj.default(obj4), month: obj.default({ matchPatterns: obj6, defaultMatchWidth: "wide", parsePatterns: { narrow: items4, any: items5 }, defaultParseWidth: "any" }), day: obj.default({ matchPatterns: obj7, defaultMatchWidth: "wide", parsePatterns: { narrow: items6, any: items7, wide: items8 }, defaultParseWidth: "any" }), dayPeriod: obj.default({ matchPatterns: obj8, defaultMatchWidth: "any", parsePatterns: { any: obj9 }, defaultParseWidth: "any" }) };
|
||
export default exports.default;
|