@pronto-tools-and-more/custom-js-functions 10.16.0 → 10.18.0
Sign up to get free protection for your applications and to get access to all the features.
package/dist/main.js
CHANGED
@@ -1,18 +1,424 @@
|
|
1
1
|
"use strict";
|
2
2
|
(() => {
|
3
|
+
var __create = Object.create;
|
3
4
|
var __defProp = Object.defineProperty;
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
9
|
+
var __commonJS = (cb, mod) => function __require() {
|
10
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
11
|
+
};
|
4
12
|
var __export = (target, all) => {
|
5
13
|
for (var name in all)
|
6
14
|
__defProp(target, name, { get: all[name], enumerable: true });
|
7
15
|
};
|
16
|
+
var __copyProps = (to, from, except, desc) => {
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
18
|
+
for (let key of __getOwnPropNames(from))
|
19
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
20
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
21
|
+
}
|
22
|
+
return to;
|
23
|
+
};
|
24
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
25
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
26
|
+
// file that has been converted to a CommonJS file using a Babel-
|
27
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
28
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
30
|
+
mod
|
31
|
+
));
|
32
|
+
|
33
|
+
// node_modules/dayjs/dayjs.min.js
|
34
|
+
var require_dayjs_min = __commonJS({
|
35
|
+
"node_modules/dayjs/dayjs.min.js"(exports, module) {
|
36
|
+
!function(t, e) {
|
37
|
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e();
|
38
|
+
}(exports, function() {
|
39
|
+
"use strict";
|
40
|
+
var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
|
41
|
+
var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
|
42
|
+
return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
|
43
|
+
} }, m = function(t2, e2, n2) {
|
44
|
+
var r2 = String(t2);
|
45
|
+
return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
|
46
|
+
}, v = { s: m, z: function(t2) {
|
47
|
+
var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
|
48
|
+
return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
|
49
|
+
}, m: function t2(e2, n2) {
|
50
|
+
if (e2.date() < n2.date()) return -t2(n2, e2);
|
51
|
+
var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, c), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), c);
|
52
|
+
return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
|
53
|
+
}, a: function(t2) {
|
54
|
+
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
55
|
+
}, p: function(t2) {
|
56
|
+
return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
|
57
|
+
}, u: function(t2) {
|
58
|
+
return void 0 === t2;
|
59
|
+
} }, g = "en", D = {};
|
60
|
+
D[g] = M;
|
61
|
+
var p = "$isDayjsObject", S = function(t2) {
|
62
|
+
return t2 instanceof _ || !(!t2 || !t2[p]);
|
63
|
+
}, w = function t2(e2, n2, r2) {
|
64
|
+
var i2;
|
65
|
+
if (!e2) return g;
|
66
|
+
if ("string" == typeof e2) {
|
67
|
+
var s2 = e2.toLowerCase();
|
68
|
+
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
69
|
+
var u2 = e2.split("-");
|
70
|
+
if (!i2 && u2.length > 1) return t2(u2[0]);
|
71
|
+
} else {
|
72
|
+
var a2 = e2.name;
|
73
|
+
D[a2] = e2, i2 = a2;
|
74
|
+
}
|
75
|
+
return !r2 && i2 && (g = i2), i2 || !r2 && g;
|
76
|
+
}, O = function(t2, e2) {
|
77
|
+
if (S(t2)) return t2.clone();
|
78
|
+
var n2 = "object" == typeof e2 ? e2 : {};
|
79
|
+
return n2.date = t2, n2.args = arguments, new _(n2);
|
80
|
+
}, b = v;
|
81
|
+
b.l = w, b.i = S, b.w = function(t2, e2) {
|
82
|
+
return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
83
|
+
};
|
84
|
+
var _ = function() {
|
85
|
+
function M2(t2) {
|
86
|
+
this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
|
87
|
+
}
|
88
|
+
var m2 = M2.prototype;
|
89
|
+
return m2.parse = function(t2) {
|
90
|
+
this.$d = function(t3) {
|
91
|
+
var e2 = t3.date, n2 = t3.utc;
|
92
|
+
if (null === e2) return /* @__PURE__ */ new Date(NaN);
|
93
|
+
if (b.u(e2)) return /* @__PURE__ */ new Date();
|
94
|
+
if (e2 instanceof Date) return new Date(e2);
|
95
|
+
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
96
|
+
var r2 = e2.match($);
|
97
|
+
if (r2) {
|
98
|
+
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
|
99
|
+
return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
|
100
|
+
}
|
101
|
+
}
|
102
|
+
return new Date(e2);
|
103
|
+
}(t2), this.init();
|
104
|
+
}, m2.init = function() {
|
105
|
+
var t2 = this.$d;
|
106
|
+
this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
|
107
|
+
}, m2.$utils = function() {
|
108
|
+
return b;
|
109
|
+
}, m2.isValid = function() {
|
110
|
+
return !(this.$d.toString() === l);
|
111
|
+
}, m2.isSame = function(t2, e2) {
|
112
|
+
var n2 = O(t2);
|
113
|
+
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
114
|
+
}, m2.isAfter = function(t2, e2) {
|
115
|
+
return O(t2) < this.startOf(e2);
|
116
|
+
}, m2.isBefore = function(t2, e2) {
|
117
|
+
return this.endOf(e2) < O(t2);
|
118
|
+
}, m2.$g = function(t2, e2, n2) {
|
119
|
+
return b.u(t2) ? this[e2] : this.set(n2, t2);
|
120
|
+
}, m2.unix = function() {
|
121
|
+
return Math.floor(this.valueOf() / 1e3);
|
122
|
+
}, m2.valueOf = function() {
|
123
|
+
return this.$d.getTime();
|
124
|
+
}, m2.startOf = function(t2, e2) {
|
125
|
+
var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
|
126
|
+
var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
127
|
+
return r2 ? i2 : i2.endOf(a);
|
128
|
+
}, $2 = function(t3, e3) {
|
129
|
+
return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
130
|
+
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
|
131
|
+
switch (f2) {
|
132
|
+
case h:
|
133
|
+
return r2 ? l2(1, 0) : l2(31, 11);
|
134
|
+
case c:
|
135
|
+
return r2 ? l2(1, M3) : l2(0, M3 + 1);
|
136
|
+
case o:
|
137
|
+
var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
|
138
|
+
return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
|
139
|
+
case a:
|
140
|
+
case d:
|
141
|
+
return $2(v2 + "Hours", 0);
|
142
|
+
case u:
|
143
|
+
return $2(v2 + "Minutes", 1);
|
144
|
+
case s:
|
145
|
+
return $2(v2 + "Seconds", 2);
|
146
|
+
case i:
|
147
|
+
return $2(v2 + "Milliseconds", 3);
|
148
|
+
default:
|
149
|
+
return this.clone();
|
150
|
+
}
|
151
|
+
}, m2.endOf = function(t2) {
|
152
|
+
return this.startOf(t2, false);
|
153
|
+
}, m2.$set = function(t2, e2) {
|
154
|
+
var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
|
155
|
+
if (o2 === c || o2 === h) {
|
156
|
+
var y2 = this.clone().set(d, 1);
|
157
|
+
y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
158
|
+
} else l2 && this.$d[l2]($2);
|
159
|
+
return this.init(), this;
|
160
|
+
}, m2.set = function(t2, e2) {
|
161
|
+
return this.clone().$set(t2, e2);
|
162
|
+
}, m2.get = function(t2) {
|
163
|
+
return this[b.p(t2)]();
|
164
|
+
}, m2.add = function(r2, f2) {
|
165
|
+
var d2, l2 = this;
|
166
|
+
r2 = Number(r2);
|
167
|
+
var $2 = b.p(f2), y2 = function(t2) {
|
168
|
+
var e2 = O(l2);
|
169
|
+
return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
|
170
|
+
};
|
171
|
+
if ($2 === c) return this.set(c, this.$M + r2);
|
172
|
+
if ($2 === h) return this.set(h, this.$y + r2);
|
173
|
+
if ($2 === a) return y2(1);
|
174
|
+
if ($2 === o) return y2(7);
|
175
|
+
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
|
176
|
+
return b.w(m3, this);
|
177
|
+
}, m2.subtract = function(t2, e2) {
|
178
|
+
return this.add(-1 * t2, e2);
|
179
|
+
}, m2.format = function(t2) {
|
180
|
+
var e2 = this, n2 = this.$locale();
|
181
|
+
if (!this.isValid()) return n2.invalidDate || l;
|
182
|
+
var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
|
183
|
+
return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
|
184
|
+
}, d2 = function(t3) {
|
185
|
+
return b.s(s2 % 12 || 12, t3, "0");
|
186
|
+
}, $2 = f2 || function(t3, e3, n3) {
|
187
|
+
var r3 = t3 < 12 ? "AM" : "PM";
|
188
|
+
return n3 ? r3.toLowerCase() : r3;
|
189
|
+
};
|
190
|
+
return r2.replace(y, function(t3, r3) {
|
191
|
+
return r3 || function(t4) {
|
192
|
+
switch (t4) {
|
193
|
+
case "YY":
|
194
|
+
return String(e2.$y).slice(-2);
|
195
|
+
case "YYYY":
|
196
|
+
return b.s(e2.$y, 4, "0");
|
197
|
+
case "M":
|
198
|
+
return a2 + 1;
|
199
|
+
case "MM":
|
200
|
+
return b.s(a2 + 1, 2, "0");
|
201
|
+
case "MMM":
|
202
|
+
return h2(n2.monthsShort, a2, c2, 3);
|
203
|
+
case "MMMM":
|
204
|
+
return h2(c2, a2);
|
205
|
+
case "D":
|
206
|
+
return e2.$D;
|
207
|
+
case "DD":
|
208
|
+
return b.s(e2.$D, 2, "0");
|
209
|
+
case "d":
|
210
|
+
return String(e2.$W);
|
211
|
+
case "dd":
|
212
|
+
return h2(n2.weekdaysMin, e2.$W, o2, 2);
|
213
|
+
case "ddd":
|
214
|
+
return h2(n2.weekdaysShort, e2.$W, o2, 3);
|
215
|
+
case "dddd":
|
216
|
+
return o2[e2.$W];
|
217
|
+
case "H":
|
218
|
+
return String(s2);
|
219
|
+
case "HH":
|
220
|
+
return b.s(s2, 2, "0");
|
221
|
+
case "h":
|
222
|
+
return d2(1);
|
223
|
+
case "hh":
|
224
|
+
return d2(2);
|
225
|
+
case "a":
|
226
|
+
return $2(s2, u2, true);
|
227
|
+
case "A":
|
228
|
+
return $2(s2, u2, false);
|
229
|
+
case "m":
|
230
|
+
return String(u2);
|
231
|
+
case "mm":
|
232
|
+
return b.s(u2, 2, "0");
|
233
|
+
case "s":
|
234
|
+
return String(e2.$s);
|
235
|
+
case "ss":
|
236
|
+
return b.s(e2.$s, 2, "0");
|
237
|
+
case "SSS":
|
238
|
+
return b.s(e2.$ms, 3, "0");
|
239
|
+
case "Z":
|
240
|
+
return i2;
|
241
|
+
}
|
242
|
+
return null;
|
243
|
+
}(t3) || i2.replace(":", "");
|
244
|
+
});
|
245
|
+
}, m2.utcOffset = function() {
|
246
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
247
|
+
}, m2.diff = function(r2, d2, l2) {
|
248
|
+
var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
|
249
|
+
return b.m(y2, m3);
|
250
|
+
};
|
251
|
+
switch (M3) {
|
252
|
+
case h:
|
253
|
+
$2 = D2() / 12;
|
254
|
+
break;
|
255
|
+
case c:
|
256
|
+
$2 = D2();
|
257
|
+
break;
|
258
|
+
case f:
|
259
|
+
$2 = D2() / 3;
|
260
|
+
break;
|
261
|
+
case o:
|
262
|
+
$2 = (g2 - v2) / 6048e5;
|
263
|
+
break;
|
264
|
+
case a:
|
265
|
+
$2 = (g2 - v2) / 864e5;
|
266
|
+
break;
|
267
|
+
case u:
|
268
|
+
$2 = g2 / n;
|
269
|
+
break;
|
270
|
+
case s:
|
271
|
+
$2 = g2 / e;
|
272
|
+
break;
|
273
|
+
case i:
|
274
|
+
$2 = g2 / t;
|
275
|
+
break;
|
276
|
+
default:
|
277
|
+
$2 = g2;
|
278
|
+
}
|
279
|
+
return l2 ? $2 : b.a($2);
|
280
|
+
}, m2.daysInMonth = function() {
|
281
|
+
return this.endOf(c).$D;
|
282
|
+
}, m2.$locale = function() {
|
283
|
+
return D[this.$L];
|
284
|
+
}, m2.locale = function(t2, e2) {
|
285
|
+
if (!t2) return this.$L;
|
286
|
+
var n2 = this.clone(), r2 = w(t2, e2, true);
|
287
|
+
return r2 && (n2.$L = r2), n2;
|
288
|
+
}, m2.clone = function() {
|
289
|
+
return b.w(this.$d, this);
|
290
|
+
}, m2.toDate = function() {
|
291
|
+
return new Date(this.valueOf());
|
292
|
+
}, m2.toJSON = function() {
|
293
|
+
return this.isValid() ? this.toISOString() : null;
|
294
|
+
}, m2.toISOString = function() {
|
295
|
+
return this.$d.toISOString();
|
296
|
+
}, m2.toString = function() {
|
297
|
+
return this.$d.toUTCString();
|
298
|
+
}, M2;
|
299
|
+
}(), k = _.prototype;
|
300
|
+
return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
|
301
|
+
k[t2[1]] = function(e2) {
|
302
|
+
return this.$g(e2, t2[0], t2[1]);
|
303
|
+
};
|
304
|
+
}), O.extend = function(t2, e2) {
|
305
|
+
return t2.$i || (t2(e2, _, O), t2.$i = true), O;
|
306
|
+
}, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
|
307
|
+
return O(1e3 * t2);
|
308
|
+
}, O.en = D[g], O.Ls = D, O.p = {}, O;
|
309
|
+
});
|
310
|
+
}
|
311
|
+
});
|
312
|
+
|
313
|
+
// node_modules/dayjs/locale/de.js
|
314
|
+
var require_de = __commonJS({
|
315
|
+
"node_modules/dayjs/locale/de.js"(exports, module) {
|
316
|
+
!function(e, n) {
|
317
|
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = n(require_dayjs_min()) : "function" == typeof define && define.amd ? define(["dayjs"], n) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_locale_de = n(e.dayjs);
|
318
|
+
}(exports, function(e) {
|
319
|
+
"use strict";
|
320
|
+
function n(e2) {
|
321
|
+
return e2 && "object" == typeof e2 && "default" in e2 ? e2 : { default: e2 };
|
322
|
+
}
|
323
|
+
var t = n(e), a = { s: "ein paar Sekunden", m: ["eine Minute", "einer Minute"], mm: "%d Minuten", h: ["eine Stunde", "einer Stunde"], hh: "%d Stunden", d: ["ein Tag", "einem Tag"], dd: ["%d Tage", "%d Tagen"], M: ["ein Monat", "einem Monat"], MM: ["%d Monate", "%d Monaten"], y: ["ein Jahr", "einem Jahr"], yy: ["%d Jahre", "%d Jahren"] };
|
324
|
+
function i(e2, n2, t2) {
|
325
|
+
var i2 = a[t2];
|
326
|
+
return Array.isArray(i2) && (i2 = i2[n2 ? 0 : 1]), i2.replace("%d", e2);
|
327
|
+
}
|
328
|
+
var r = { name: "de", weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"), weekdaysShort: "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"), weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"), months: "Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"), monthsShort: "Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"), ordinal: function(e2) {
|
329
|
+
return e2 + ".";
|
330
|
+
}, weekStart: 1, yearStart: 4, formats: { LTS: "HH:mm:ss", LT: "HH:mm", L: "DD.MM.YYYY", LL: "D. MMMM YYYY", LLL: "D. MMMM YYYY HH:mm", LLLL: "dddd, D. MMMM YYYY HH:mm" }, relativeTime: { future: "in %s", past: "vor %s", s: i, m: i, mm: i, h: i, hh: i, d: i, dd: i, M: i, MM: i, y: i, yy: i } };
|
331
|
+
return t.default.locale(r, null, true), r;
|
332
|
+
});
|
333
|
+
}
|
334
|
+
});
|
335
|
+
|
336
|
+
// node_modules/dayjs/locale/en.js
|
337
|
+
var require_en = __commonJS({
|
338
|
+
"node_modules/dayjs/locale/en.js"(exports, module) {
|
339
|
+
!function(e, n) {
|
340
|
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = n() : "function" == typeof define && define.amd ? define(n) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_locale_en = n();
|
341
|
+
}(exports, function() {
|
342
|
+
"use strict";
|
343
|
+
return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(e) {
|
344
|
+
var n = ["th", "st", "nd", "rd"], t = e % 100;
|
345
|
+
return "[" + e + (n[(t - 20) % 10] || n[t] || n[0]) + "]";
|
346
|
+
} };
|
347
|
+
});
|
348
|
+
}
|
349
|
+
});
|
350
|
+
|
351
|
+
// node_modules/dayjs/locale/es.js
|
352
|
+
var require_es = __commonJS({
|
353
|
+
"node_modules/dayjs/locale/es.js"(exports, module) {
|
354
|
+
!function(e, o) {
|
355
|
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = o(require_dayjs_min()) : "function" == typeof define && define.amd ? define(["dayjs"], o) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_locale_es = o(e.dayjs);
|
356
|
+
}(exports, function(e) {
|
357
|
+
"use strict";
|
358
|
+
function o(e2) {
|
359
|
+
return e2 && "object" == typeof e2 && "default" in e2 ? e2 : { default: e2 };
|
360
|
+
}
|
361
|
+
var s = o(e), d = { name: "es", monthsShort: "ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"), weekdays: "domingo_lunes_martes_mi\xE9rcoles_jueves_viernes_s\xE1bado".split("_"), weekdaysShort: "dom._lun._mar._mi\xE9._jue._vie._s\xE1b.".split("_"), weekdaysMin: "do_lu_ma_mi_ju_vi_s\xE1".split("_"), months: "enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"), weekStart: 1, formats: { LT: "H:mm", LTS: "H:mm:ss", L: "DD/MM/YYYY", LL: "D [de] MMMM [de] YYYY", LLL: "D [de] MMMM [de] YYYY H:mm", LLLL: "dddd, D [de] MMMM [de] YYYY H:mm" }, relativeTime: { future: "en %s", past: "hace %s", s: "unos segundos", m: "un minuto", mm: "%d minutos", h: "una hora", hh: "%d horas", d: "un d\xEDa", dd: "%d d\xEDas", M: "un mes", MM: "%d meses", y: "un a\xF1o", yy: "%d a\xF1os" }, ordinal: function(e2) {
|
362
|
+
return e2 + "\xBA";
|
363
|
+
} };
|
364
|
+
return s.default.locale(d, null, true), d;
|
365
|
+
});
|
366
|
+
}
|
367
|
+
});
|
368
|
+
|
369
|
+
// node_modules/dayjs/locale/fr.js
|
370
|
+
var require_fr = __commonJS({
|
371
|
+
"node_modules/dayjs/locale/fr.js"(exports, module) {
|
372
|
+
!function(e, n) {
|
373
|
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = n(require_dayjs_min()) : "function" == typeof define && define.amd ? define(["dayjs"], n) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_locale_fr = n(e.dayjs);
|
374
|
+
}(exports, function(e) {
|
375
|
+
"use strict";
|
376
|
+
function n(e2) {
|
377
|
+
return e2 && "object" == typeof e2 && "default" in e2 ? e2 : { default: e2 };
|
378
|
+
}
|
379
|
+
var t = n(e), i = { name: "fr", weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"), weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"), months: "janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"), monthsShort: "janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"), weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "dans %s", past: "il y a %s", s: "quelques secondes", m: "une minute", mm: "%d minutes", h: "une heure", hh: "%d heures", d: "un jour", dd: "%d jours", M: "un mois", MM: "%d mois", y: "un an", yy: "%d ans" }, ordinal: function(e2) {
|
380
|
+
return "" + e2 + (1 === e2 ? "er" : "");
|
381
|
+
} };
|
382
|
+
return t.default.locale(i, null, true), i;
|
383
|
+
});
|
384
|
+
}
|
385
|
+
});
|
386
|
+
|
387
|
+
// node_modules/dayjs/locale/it.js
|
388
|
+
var require_it = __commonJS({
|
389
|
+
"node_modules/dayjs/locale/it.js"(exports, module) {
|
390
|
+
!function(e, o) {
|
391
|
+
"object" == typeof exports && "undefined" != typeof module ? module.exports = o(require_dayjs_min()) : "function" == typeof define && define.amd ? define(["dayjs"], o) : (e = "undefined" != typeof globalThis ? globalThis : e || self).dayjs_locale_it = o(e.dayjs);
|
392
|
+
}(exports, function(e) {
|
393
|
+
"use strict";
|
394
|
+
function o(e2) {
|
395
|
+
return e2 && "object" == typeof e2 && "default" in e2 ? e2 : { default: e2 };
|
396
|
+
}
|
397
|
+
var t = o(e), n = { name: "it", weekdays: "domenica_luned\xEC_marted\xEC_mercoled\xEC_gioved\xEC_venerd\xEC_sabato".split("_"), weekdaysShort: "dom_lun_mar_mer_gio_ven_sab".split("_"), weekdaysMin: "do_lu_ma_me_gi_ve_sa".split("_"), months: "gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"), weekStart: 1, monthsShort: "gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"), formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "tra %s", past: "%s fa", s: "qualche secondo", m: "un minuto", mm: "%d minuti", h: "un' ora", hh: "%d ore", d: "un giorno", dd: "%d giorni", M: "un mese", MM: "%d mesi", y: "un anno", yy: "%d anni" }, ordinal: function(e2) {
|
398
|
+
return e2 + "\xBA";
|
399
|
+
} };
|
400
|
+
return t.default.locale(n, null, true), n;
|
401
|
+
});
|
402
|
+
}
|
403
|
+
});
|
8
404
|
|
9
405
|
// src/parts/Functions/Functions.ts
|
10
406
|
var Functions_exports = {};
|
11
407
|
__export(Functions_exports, {
|
408
|
+
dateHelper: () => dateHelper,
|
12
409
|
getReadTime: () => getReadTime,
|
13
410
|
id: () => id
|
14
411
|
});
|
15
412
|
|
413
|
+
// src/parts/DateHelper/DateHelper.ts
|
414
|
+
var import_dayjs = __toESM(require_dayjs_min(), 1);
|
415
|
+
var import_de = __toESM(require_de(), 1);
|
416
|
+
var import_en = __toESM(require_en(), 1);
|
417
|
+
var import_es = __toESM(require_es(), 1);
|
418
|
+
var import_fr = __toESM(require_fr(), 1);
|
419
|
+
var import_it = __toESM(require_it(), 1);
|
420
|
+
var dateHelper = import_dayjs.default;
|
421
|
+
|
16
422
|
// src/parts/FunctionId/FunctionId.ts
|
17
423
|
var id = (content, ...keys) => {
|
18
424
|
console.log({ content });
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pronto-tools-and-more/custom-js-functions",
|
3
|
-
"version": "10.
|
3
|
+
"version": "10.18.0",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/main.js",
|
6
6
|
"type": "module",
|
@@ -16,6 +16,7 @@
|
|
16
16
|
"license": "MIT",
|
17
17
|
"devDependencies": {
|
18
18
|
"@types/node": "^22.9.0",
|
19
|
+
"dayjs": "^1.11.13",
|
19
20
|
"esbuild": "^0.24.0",
|
20
21
|
"jest-environment-jsdom": "^29.7.0",
|
21
22
|
"ts-jest": "^29.2.5"
|