UNPKG

zugferd-code-lists

Version:

ZUGFeRD code lists, e.g. languages enum, currencies enum, countries enum, etc.

57 lines (56 loc) 2.32 kB
"use strict"; 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_4/mime.ts var mime_exports = {}; __export(mime_exports, { MIME: () => MIME, description: () => description }); module.exports = __toCommonJS(mime_exports); 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"; 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"; } } // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { MIME, description }); //# sourceMappingURL=mime.js.map