zugferd-code-lists
Version:
ZUGFeRD code lists, e.g. languages enum, currencies enum, countries enum, etc.
65 lines (63 loc) • 2.57 kB
JavaScript
;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/zugferd_2_3_3/mime.ts
var mime_exports = {};
__export(mime_exports, {
MIME: () => MIME,
description: () => description
});
module.exports = __toCommonJS(mime_exports);
// src/zugferd_2_3_2/mime.ts
var MIME = /* @__PURE__ */ ((MIME2) => {
MIME2["ApplicationPdf"] = "application/pdf";
MIME2["ImagePng"] = "image/png";
MIME2["ImageJpeg"] = "image/jpeg";
MIME2["TextCsv"] = "text/csv";
MIME2["ApplicationVndOpenxmlformatsOfficedocumentSpreadsheetmlSheet"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
MIME2["ApplicationVndOasisOpendocumentSpreadsheet"] = "application/vnd.oasis.opendocument.spreadsheet";
MIME2["ApplicationXml"] = "application/xml";
MIME2["TextXml"] = "text/xml";
return MIME2;
})(MIME || {});
function description(value) {
switch (value) {
case "application/pdf" /* ApplicationPdf */:
return "application/pdf";
case "image/png" /* ImagePng */:
return "image/png";
case "image/jpeg" /* ImageJpeg */:
return "image/jpeg";
case "text/csv" /* TextCsv */:
return "text/csv";
case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" /* ApplicationVndOpenxmlformatsOfficedocumentSpreadsheetmlSheet */:
return "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
case "application/vnd.oasis.opendocument.spreadsheet" /* ApplicationVndOasisOpendocumentSpreadsheet */:
return "application/vnd.oasis.opendocument.spreadsheet";
case "application/xml" /* ApplicationXml */:
return "application/xml";
case "text/xml" /* TextXml */:
return "text/xml";
}
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
MIME,
description
});
//# sourceMappingURL=mime.js.map