ados-rcm 1.1.301 → 1.1.303
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +25 -23
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
@@ -9068,45 +9068,47 @@ const h6 = {
|
|
9068
9068
|
return { pages: s, rangedPages: p };
|
9069
9069
|
}, y6 = (o, r, n) => {
|
9070
9070
|
const a = [], s = Object.keys(n), c = [];
|
9071
|
-
s.forEach((
|
9072
|
-
const
|
9073
|
-
if (
|
9074
|
-
if (typeof
|
9075
|
-
c.push(
|
9071
|
+
s.forEach((C) => {
|
9072
|
+
const y = n[C], b = lt.getContent(y.hContent, { defKey: C, def: y });
|
9073
|
+
if (b !== void 0) {
|
9074
|
+
if (typeof b == "string") {
|
9075
|
+
c.push(b);
|
9076
9076
|
return;
|
9077
|
-
} else if (typeof
|
9078
|
-
c.push(
|
9077
|
+
} else if (typeof b == "number") {
|
9078
|
+
c.push(b.toString());
|
9079
9079
|
return;
|
9080
9080
|
}
|
9081
9081
|
}
|
9082
|
-
const
|
9083
|
-
if (
|
9084
|
-
c.push(
|
9082
|
+
const I = lt.getContent(y.name, { defKey: C, def: y });
|
9083
|
+
if (I !== void 0 && typeof I == "string") {
|
9084
|
+
c.push(I);
|
9085
9085
|
return;
|
9086
9086
|
}
|
9087
|
-
c.push(
|
9087
|
+
c.push(C);
|
9088
9088
|
});
|
9089
|
-
const f = c.map((
|
9090
|
-
a.push(f.join(",")), r.forEach((
|
9091
|
-
const
|
9089
|
+
const f = c.map((C) => `"${C.replaceAll('"', '""')}"`);
|
9090
|
+
a.push(f.join(",")), r.forEach((C) => {
|
9091
|
+
const y = [];
|
9092
9092
|
s.forEach((I) => {
|
9093
|
-
const T = n[I], w = lt.getContent(T.content, { defKey: I, def: T, item:
|
9093
|
+
const T = n[I], w = lt.getContent(T.content, { defKey: I, def: T, item: C });
|
9094
9094
|
if (w !== void 0) {
|
9095
9095
|
if (typeof w == "string") {
|
9096
|
-
|
9096
|
+
y.push(w);
|
9097
9097
|
return;
|
9098
9098
|
} else if (typeof w == "number") {
|
9099
|
-
|
9099
|
+
y.push(w.toString());
|
9100
9100
|
return;
|
9101
9101
|
}
|
9102
9102
|
}
|
9103
|
-
const k =
|
9104
|
-
typeof k == "string" ?
|
9105
|
-
})
|
9103
|
+
const k = C[I];
|
9104
|
+
typeof k == "string" ? y.push(k) : typeof k == "number" ? y.push(k.toString()) : y.push("");
|
9105
|
+
});
|
9106
|
+
const b = y.map((I) => `"${I.replaceAll('"', '""')}"`);
|
9107
|
+
a.push(b.join(","));
|
9106
9108
|
});
|
9107
|
-
const h =
|
9108
|
-
`),
|
9109
|
-
|
9109
|
+
const h = `${o}_${(/* @__PURE__ */ new Date()).toISOString().split(".")[0].replaceAll(/[-:T]/g, "")}.csv`, p = "\uFEFF" + a.join(`
|
9110
|
+
`), v = new Blob([p], { type: "text/csv;charset=UTF-8" }), m = URL.createObjectURL(v), x = document.createElement("a");
|
9111
|
+
x.href = m, x.download = h, x.click(), URL.revokeObjectURL(m);
|
9110
9112
|
}, m6 = (o) => {
|
9111
9113
|
const r = Be.keys(o);
|
9112
9114
|
if (r.length !== 1)
|