decord/source/module_3281.js
2026-07-21 22:01:30 +00:00

63 lines
2.5 KiB
JavaScript

// Module ID: 3281
// Function ID: 26008
// Dependencies: []
// Module 3281
const _module = require(dependencyMap[0]);
if (!_module) {
let obj = { default: _module };
} else {
obj = _module;
}
obj = {
ordinalNumber(arg0, unit) {
const NumberResult = Number(arg0);
unit = undefined;
if (null != unit) {
unit = unit.unit;
}
const StringResult = String(unit);
if ("year" === StringResult) {
const concat9 = "".concat;
return "".concat(NumberResult, "\u5E74");
} else if ("quarter" === StringResult) {
const concat8 = "\u7B2C".concat;
return "\u7B2C".concat(NumberResult, "\u56DB\u534A\u671F");
} else if ("month" === StringResult) {
const concat7 = "".concat;
return "".concat(NumberResult, "\u6708");
} else if ("week" === StringResult) {
const concat6 = "\u7B2C".concat;
return "\u7B2C".concat(NumberResult, "\u9031");
} else if ("date" === StringResult) {
const concat5 = "".concat;
return "".concat(NumberResult, "\u65E5");
} else if ("hour" === StringResult) {
const concat4 = "".concat;
return "".concat(NumberResult, "\u6642");
} else if ("minute" === StringResult) {
const concat3 = "".concat;
return "".concat(NumberResult, "\u5206");
} else if ("second" === StringResult) {
const concat2 = "".concat;
return "".concat(NumberResult, "\u79D2");
} else {
const concat = "".concat;
return "".concat(NumberResult);
}
}
};
obj.era = obj.default({ values: { narrow: ["r", "hak"], abbreviated: [], wide: [] }, defaultWidth: "wide" });
obj.quarter = obj.default({
values: { narrow: [null, null, null, null], abbreviated: ["r", "isArray", "Icon", "channel_id"], wide: [] },
defaultWidth: "wide",
argumentCallback(arg0) {
return Number(arg0) - 1;
}
});
obj.month = obj.default({ values: { narrow: [], abbreviated: [], wide: [] }, defaultWidth: "wide" });
obj.day = obj.default({ values: { narrow: [null, null, null, null, null, null, null], short: [null, null, null, null, null, null, null], abbreviated: [null, null, null, null, null, null, null], wide: ["<string:305266691>", "<string:2457337858>", "<string:1948450817>", "<string:1045495811>", "<string:23447620>", "<string:23447296>", "<string:23447040>"] }, defaultWidth: "wide" });
obj.dayPeriod = obj.default({ values: { narrow: {}, abbreviated: {}, wide: {} }, defaultWidth: "wide", formattingValues: { narrow: {}, abbreviated: {}, wide: {} }, defaultFormattingWidth: "wide" });
export default obj;
export default exports.default;