100 lines
3.1 KiB
JavaScript
100 lines
3.1 KiB
JavaScript
// Metro module 3307 (f3308).
|
|
import * as _buildMatchPatternFn from "./buildMatchPatternFn";
|
|
import { __esModule } from "./buildMatchPatternFn";
|
|
import * as _buildMatchFn from "./buildMatchFn";
|
|
const r15 = _buildMatchPatternFn ? __esModule ? _buildMatchPatternFn : {
|
|
default: _buildMatchPatternFn
|
|
} : {
|
|
default: _buildMatchPatternFn
|
|
};
|
|
const r20 = _buildMatchFn ? _buildMatchFn.__esModule ? _buildMatchFn : {
|
|
default: _buildMatchFn
|
|
} : {
|
|
default: _buildMatchFn
|
|
};
|
|
export default {
|
|
ordinalNumber: (0, r15.default)({
|
|
matchPattern: /^(\d+)(º)?/i,
|
|
parsePattern: /\d+/i,
|
|
valueCallback: function valueCallback(a0) {
|
|
return parseInt(a0, 10);
|
|
}
|
|
}),
|
|
era: (0, r20.default)({
|
|
matchPatterns: {
|
|
narrow: /^(ac|dc|a|d)/i,
|
|
abbreviated: /^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,
|
|
wide: /^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i
|
|
},
|
|
defaultMatchWidth: "wide",
|
|
parsePatterns: {
|
|
any: [/^ac/i, /^dc/i],
|
|
wide: [/^(antes de cristo|antes de la era com[uú]n)/i, /^(despu[eé]s de cristo|era com[uú]n)/i]
|
|
},
|
|
defaultParseWidth: "any"
|
|
}),
|
|
quarter: (0, r20.default)({
|
|
matchPatterns: {
|
|
narrow: /^[1234]/i,
|
|
abbreviated: /^T[1234]/i,
|
|
wide: /^[1234](º)? trimestre/i
|
|
},
|
|
defaultMatchWidth: "wide",
|
|
parsePatterns: {
|
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
},
|
|
defaultParseWidth: "any",
|
|
valueCallback: function valueCallback(a0) {
|
|
return a0 + 1;
|
|
}
|
|
}),
|
|
month: (0, r20.default)({
|
|
matchPatterns: {
|
|
narrow: /^[efmajsond]/i,
|
|
abbreviated: /^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,
|
|
wide: /^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i
|
|
},
|
|
defaultMatchWidth: "wide",
|
|
parsePatterns: {
|
|
narrow: [/^e/i, /^f/i, /^m/i, /^a/i, /^m/i, /^j/i, /^j/i, /^a/i, /^s/i, /^o/i, /^n/i, /^d/i],
|
|
any: [/^en/i, /^feb/i, /^mar/i, /^abr/i, /^may/i, /^jun/i, /^jul/i, /^ago/i, /^sep/i, /^oct/i, /^nov/i, /^dic/i]
|
|
},
|
|
defaultParseWidth: "any"
|
|
}),
|
|
day: (0, r20.default)({
|
|
matchPatterns: {
|
|
narrow: /^[dlmjvs]/i,
|
|
short: /^(do|lu|ma|mi|ju|vi|s[áa])/i,
|
|
abbreviated: /^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,
|
|
wide: /^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i
|
|
},
|
|
defaultMatchWidth: "wide",
|
|
parsePatterns: {
|
|
narrow: [/^d/i, /^l/i, /^m/i, /^m/i, /^j/i, /^v/i, /^s/i],
|
|
any: [/^do/i, /^lu/i, /^ma/i, /^mi/i, /^ju/i, /^vi/i, /^sa/i]
|
|
},
|
|
defaultParseWidth: "any"
|
|
}),
|
|
dayPeriod: (0, r20.default)({
|
|
matchPatterns: {
|
|
narrow: /^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,
|
|
any: /^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i
|
|
},
|
|
defaultMatchWidth: "any",
|
|
parsePatterns: {
|
|
any: {
|
|
am: /^a/i,
|
|
pm: /^p/i,
|
|
midnight: /^mn/i,
|
|
noon: /^md/i,
|
|
morning: /mañana/i,
|
|
afternoon: /tarde/i,
|
|
evening: /tarde/i,
|
|
night: /noche/i
|
|
}
|
|
},
|
|
defaultParseWidth: "any"
|
|
})
|
|
};
|
|
module.exports = exports.default;
|