@ienlab/react-library 0.14.0-beta.4 → 0.14.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/my-library.cjs.js +1 -1
- package/dist/my-library.es.js +644 -46
- package/dist/types/image.d.ts +5 -1
- package/dist/types/image.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/my-library.es.js
CHANGED
|
@@ -47,8 +47,8 @@ function O({ placeholder: e, src: t, onLoadError: r, ...o }) {
|
|
|
47
47
|
}
|
|
48
48
|
//#endregion
|
|
49
49
|
//#region dist/my-library.es.js
|
|
50
|
-
var
|
|
51
|
-
function
|
|
50
|
+
var k = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports);
|
|
51
|
+
function A({ placeholder: e, src: t, onLoadError: r, ...o }) {
|
|
52
52
|
let [l, u] = i(() => {
|
|
53
53
|
if (typeof window > "u" || !t) return !1;
|
|
54
54
|
let e = new Image();
|
|
@@ -76,12 +76,311 @@ function te({ placeholder: e, src: t, onLoadError: r, ...o }) {
|
|
|
76
76
|
children: e ?? /* @__PURE__ */ c("div", { className: "w-full h-full bg-sidebar" })
|
|
77
77
|
}, "placeholder") });
|
|
78
78
|
}
|
|
79
|
-
var
|
|
79
|
+
var j = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), M = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ee = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), te = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), ne = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), re = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), N = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), P = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), F = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), I = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports);
|
|
80
80
|
Array.prototype.mapNotNull = function(e) {
|
|
81
81
|
return this.flatMap((t, n) => {
|
|
82
82
|
let r = e(t, n);
|
|
83
83
|
return r == null ? [] : [r];
|
|
84
84
|
});
|
|
85
|
+
}, (/* @__PURE__ */ I(((e, t) => {
|
|
86
|
+
(function(n, r) {
|
|
87
|
+
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
88
|
+
})(e, (function() {
|
|
89
|
+
var e = 1e3, t = 6e4, n = 36e5, r = "millisecond", i = "second", a = "minute", o = "hour", s = "day", c = "week", l = "month", u = "quarter", d = "year", f = "date", p = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, h = /\[([^\]]+)]|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, g = {
|
|
90
|
+
name: "en",
|
|
91
|
+
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
92
|
+
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
93
|
+
ordinal: function(e) {
|
|
94
|
+
var t = [
|
|
95
|
+
"th",
|
|
96
|
+
"st",
|
|
97
|
+
"nd",
|
|
98
|
+
"rd"
|
|
99
|
+
], n = e % 100;
|
|
100
|
+
return "[" + e + (t[(n - 20) % 10] || t[n] || t[0]) + "]";
|
|
101
|
+
}
|
|
102
|
+
}, _ = function(e, t, n) {
|
|
103
|
+
var r = String(e);
|
|
104
|
+
return !r || r.length >= t ? e : "" + Array(t + 1 - r.length).join(n) + e;
|
|
105
|
+
}, v = {
|
|
106
|
+
s: _,
|
|
107
|
+
z: function(e) {
|
|
108
|
+
var t = -e.utcOffset(), n = Math.abs(t), r = Math.floor(n / 60), i = n % 60;
|
|
109
|
+
return (t <= 0 ? "+" : "-") + _(r, 2, "0") + ":" + _(i, 2, "0");
|
|
110
|
+
},
|
|
111
|
+
m: function e(t, n) {
|
|
112
|
+
if (t.date() < n.date()) return -e(n, t);
|
|
113
|
+
var r = 12 * (n.year() - t.year()) + (n.month() - t.month()), i = t.clone().add(r, l), a = n - i < 0, o = t.clone().add(r + (a ? -1 : 1), l);
|
|
114
|
+
return +(-(r + (n - i) / (a ? i - o : o - i)) || 0);
|
|
115
|
+
},
|
|
116
|
+
a: function(e) {
|
|
117
|
+
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
|
|
118
|
+
},
|
|
119
|
+
p: function(e) {
|
|
120
|
+
return {
|
|
121
|
+
M: l,
|
|
122
|
+
y: d,
|
|
123
|
+
w: c,
|
|
124
|
+
d: s,
|
|
125
|
+
D: f,
|
|
126
|
+
h: o,
|
|
127
|
+
m: a,
|
|
128
|
+
s: i,
|
|
129
|
+
ms: r,
|
|
130
|
+
Q: u
|
|
131
|
+
}[e] || String(e || "").toLowerCase().replace(/s$/, "");
|
|
132
|
+
},
|
|
133
|
+
u: function(e) {
|
|
134
|
+
return e === void 0;
|
|
135
|
+
}
|
|
136
|
+
}, y = "en", b = {};
|
|
137
|
+
b[y] = g;
|
|
138
|
+
var x = "$isDayjsObject", S = function(e) {
|
|
139
|
+
return e instanceof E || !(!e || !e[x]);
|
|
140
|
+
}, C = function e(t, n, r) {
|
|
141
|
+
var i;
|
|
142
|
+
if (!t) return y;
|
|
143
|
+
if (typeof t == "string") {
|
|
144
|
+
var a = t.toLowerCase();
|
|
145
|
+
b[a] && (i = a), n && (b[a] = n, i = a);
|
|
146
|
+
var o = t.split("-");
|
|
147
|
+
if (!i && o.length > 1) return e(o[0]);
|
|
148
|
+
} else {
|
|
149
|
+
var s = t.name;
|
|
150
|
+
b[s] = t, i = s;
|
|
151
|
+
}
|
|
152
|
+
return !r && i && (y = i), i || !r && y;
|
|
153
|
+
}, w = function(e, t) {
|
|
154
|
+
if (S(e)) return e.clone();
|
|
155
|
+
var n = typeof t == "object" ? t : {};
|
|
156
|
+
return n.date = e, n.args = arguments, new E(n);
|
|
157
|
+
}, T = v;
|
|
158
|
+
T.l = C, T.i = S, T.w = function(e, t) {
|
|
159
|
+
return w(e, {
|
|
160
|
+
locale: t.$L,
|
|
161
|
+
utc: t.$u,
|
|
162
|
+
x: t.$x,
|
|
163
|
+
$offset: t.$offset
|
|
164
|
+
});
|
|
165
|
+
};
|
|
166
|
+
var E = function() {
|
|
167
|
+
function g(e) {
|
|
168
|
+
this.$L = C(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[x] = !0;
|
|
169
|
+
}
|
|
170
|
+
var _ = g.prototype;
|
|
171
|
+
return _.parse = function(e) {
|
|
172
|
+
this.$d = function(e) {
|
|
173
|
+
var t = e.date, n = e.utc;
|
|
174
|
+
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
175
|
+
if (T.u(t)) return /* @__PURE__ */ new Date();
|
|
176
|
+
if (t instanceof Date) return new Date(t);
|
|
177
|
+
if (typeof t == "string" && !/Z$/i.test(t)) {
|
|
178
|
+
var r = t.match(m);
|
|
179
|
+
if (r) {
|
|
180
|
+
var i = r[2] - 1 || 0, a = (r[7] || "0").substring(0, 3);
|
|
181
|
+
return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return new Date(t);
|
|
185
|
+
}(e), this.init();
|
|
186
|
+
}, _.init = function() {
|
|
187
|
+
var e = this.$d;
|
|
188
|
+
this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
|
|
189
|
+
}, _.$utils = function() {
|
|
190
|
+
return T;
|
|
191
|
+
}, _.isValid = function() {
|
|
192
|
+
return this.$d.toString() !== p;
|
|
193
|
+
}, _.isSame = function(e, t) {
|
|
194
|
+
var n = w(e);
|
|
195
|
+
return this.startOf(t) <= n && n <= this.endOf(t);
|
|
196
|
+
}, _.isAfter = function(e, t) {
|
|
197
|
+
return w(e) < this.startOf(t);
|
|
198
|
+
}, _.isBefore = function(e, t) {
|
|
199
|
+
return this.endOf(t) < w(e);
|
|
200
|
+
}, _.$g = function(e, t, n) {
|
|
201
|
+
return T.u(e) ? this[t] : this.set(n, e);
|
|
202
|
+
}, _.unix = function() {
|
|
203
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
204
|
+
}, _.valueOf = function() {
|
|
205
|
+
return this.$d.getTime();
|
|
206
|
+
}, _.startOf = function(e, t) {
|
|
207
|
+
var n = this, r = !!T.u(t) || t, u = T.p(e), p = function(e, t) {
|
|
208
|
+
var i = T.w(n.$u ? Date.UTC(n.$y, t, e) : new Date(n.$y, t, e), n);
|
|
209
|
+
return r ? i : i.endOf(s);
|
|
210
|
+
}, m = function(e, t) {
|
|
211
|
+
return T.w(n.toDate()[e].apply(n.toDate("s"), (r ? [
|
|
212
|
+
0,
|
|
213
|
+
0,
|
|
214
|
+
0,
|
|
215
|
+
0
|
|
216
|
+
] : [
|
|
217
|
+
23,
|
|
218
|
+
59,
|
|
219
|
+
59,
|
|
220
|
+
999
|
|
221
|
+
]).slice(t)), n);
|
|
222
|
+
}, h = this.$W, g = this.$M, _ = this.$D, v = "set" + (this.$u ? "UTC" : "");
|
|
223
|
+
switch (u) {
|
|
224
|
+
case d: return r ? p(1, 0) : p(31, 11);
|
|
225
|
+
case l: return r ? p(1, g) : p(0, g + 1);
|
|
226
|
+
case c:
|
|
227
|
+
var y = this.$locale().weekStart || 0, b = (h < y ? h + 7 : h) - y;
|
|
228
|
+
return p(r ? _ - b : _ + (6 - b), g);
|
|
229
|
+
case s:
|
|
230
|
+
case f: return m(v + "Hours", 0);
|
|
231
|
+
case o: return m(v + "Minutes", 1);
|
|
232
|
+
case a: return m(v + "Seconds", 2);
|
|
233
|
+
case i: return m(v + "Milliseconds", 3);
|
|
234
|
+
default: return this.clone();
|
|
235
|
+
}
|
|
236
|
+
}, _.endOf = function(e) {
|
|
237
|
+
return this.startOf(e, !1);
|
|
238
|
+
}, _.$set = function(e, t) {
|
|
239
|
+
var n, c = T.p(e), u = "set" + (this.$u ? "UTC" : ""), p = (n = {}, n[s] = u + "Date", n[f] = u + "Date", n[l] = u + "Month", n[d] = u + "FullYear", n[o] = u + "Hours", n[a] = u + "Minutes", n[i] = u + "Seconds", n[r] = u + "Milliseconds", n)[c], m = c === s ? this.$D + (t - this.$W) : t;
|
|
240
|
+
if (c === l || c === d) {
|
|
241
|
+
var h = this.clone().set(f, 1);
|
|
242
|
+
h.$d[p](m), h.init(), this.$d = h.set(f, Math.min(this.$D, h.daysInMonth())).$d;
|
|
243
|
+
} else p && this.$d[p](m);
|
|
244
|
+
return this.init(), this;
|
|
245
|
+
}, _.set = function(e, t) {
|
|
246
|
+
return this.clone().$set(e, t);
|
|
247
|
+
}, _.get = function(e) {
|
|
248
|
+
return this[T.p(e)]();
|
|
249
|
+
}, _.add = function(r, u) {
|
|
250
|
+
var f, p = this;
|
|
251
|
+
r = Number(r);
|
|
252
|
+
var m = T.p(u), h = function(e) {
|
|
253
|
+
var t = w(p);
|
|
254
|
+
return T.w(t.date(t.date() + Math.round(e * r)), p);
|
|
255
|
+
};
|
|
256
|
+
if (m === l) return this.set(l, this.$M + r);
|
|
257
|
+
if (m === d) return this.set(d, this.$y + r);
|
|
258
|
+
if (m === s) return h(1);
|
|
259
|
+
if (m === c) return h(7);
|
|
260
|
+
var g = (f = {}, f[a] = t, f[o] = n, f[i] = e, f)[m] || 1, _ = this.$d.getTime() + r * g;
|
|
261
|
+
return T.w(_, this);
|
|
262
|
+
}, _.subtract = function(e, t) {
|
|
263
|
+
return this.add(-1 * e, t);
|
|
264
|
+
}, _.format = function(e) {
|
|
265
|
+
var t = this, n = this.$locale();
|
|
266
|
+
if (!this.isValid()) return n.invalidDate || p;
|
|
267
|
+
var r = e || "YYYY-MM-DDTHH:mm:ssZ", i = T.z(this), a = this.$H, o = this.$m, s = this.$M, c = n.weekdays, l = n.months, u = n.meridiem, d = function(e, n, i, a) {
|
|
268
|
+
return e && (e[n] || e(t, r)) || i[n].slice(0, a);
|
|
269
|
+
}, f = function(e) {
|
|
270
|
+
return T.s(a % 12 || 12, e, "0");
|
|
271
|
+
}, m = u || function(e, t, n) {
|
|
272
|
+
var r = e < 12 ? "AM" : "PM";
|
|
273
|
+
return n ? r.toLowerCase() : r;
|
|
274
|
+
};
|
|
275
|
+
return r.replace(h, (function(e, r) {
|
|
276
|
+
return r || function(e) {
|
|
277
|
+
switch (e) {
|
|
278
|
+
case "YY": return String(t.$y).slice(-2);
|
|
279
|
+
case "YYYY": return T.s(t.$y, 4, "0");
|
|
280
|
+
case "M": return s + 1;
|
|
281
|
+
case "MM": return T.s(s + 1, 2, "0");
|
|
282
|
+
case "MMM": return d(n.monthsShort, s, l, 3);
|
|
283
|
+
case "MMMM": return d(l, s);
|
|
284
|
+
case "D": return t.$D;
|
|
285
|
+
case "DD": return T.s(t.$D, 2, "0");
|
|
286
|
+
case "d": return String(t.$W);
|
|
287
|
+
case "dd": return d(n.weekdaysMin, t.$W, c, 2);
|
|
288
|
+
case "ddd": return d(n.weekdaysShort, t.$W, c, 3);
|
|
289
|
+
case "dddd": return c[t.$W];
|
|
290
|
+
case "H": return String(a);
|
|
291
|
+
case "HH": return T.s(a, 2, "0");
|
|
292
|
+
case "h": return f(1);
|
|
293
|
+
case "hh": return f(2);
|
|
294
|
+
case "a": return m(a, o, !0);
|
|
295
|
+
case "A": return m(a, o, !1);
|
|
296
|
+
case "m": return String(o);
|
|
297
|
+
case "mm": return T.s(o, 2, "0");
|
|
298
|
+
case "s": return String(t.$s);
|
|
299
|
+
case "ss": return T.s(t.$s, 2, "0");
|
|
300
|
+
case "SSS": return T.s(t.$ms, 3, "0");
|
|
301
|
+
case "Z": return i;
|
|
302
|
+
}
|
|
303
|
+
return null;
|
|
304
|
+
}(e) || i.replace(":", "");
|
|
305
|
+
}));
|
|
306
|
+
}, _.utcOffset = function() {
|
|
307
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
308
|
+
}, _.diff = function(r, f, p) {
|
|
309
|
+
var m, h = this, g = T.p(f), _ = w(r), v = (_.utcOffset() - this.utcOffset()) * t, y = this - _, b = function() {
|
|
310
|
+
return T.m(h, _);
|
|
311
|
+
};
|
|
312
|
+
switch (g) {
|
|
313
|
+
case d:
|
|
314
|
+
m = b() / 12;
|
|
315
|
+
break;
|
|
316
|
+
case l:
|
|
317
|
+
m = b();
|
|
318
|
+
break;
|
|
319
|
+
case u:
|
|
320
|
+
m = b() / 3;
|
|
321
|
+
break;
|
|
322
|
+
case c:
|
|
323
|
+
m = (y - v) / 6048e5;
|
|
324
|
+
break;
|
|
325
|
+
case s:
|
|
326
|
+
m = (y - v) / 864e5;
|
|
327
|
+
break;
|
|
328
|
+
case o:
|
|
329
|
+
m = y / n;
|
|
330
|
+
break;
|
|
331
|
+
case a:
|
|
332
|
+
m = y / t;
|
|
333
|
+
break;
|
|
334
|
+
case i:
|
|
335
|
+
m = y / e;
|
|
336
|
+
break;
|
|
337
|
+
default: m = y;
|
|
338
|
+
}
|
|
339
|
+
return p ? m : T.a(m);
|
|
340
|
+
}, _.daysInMonth = function() {
|
|
341
|
+
return this.endOf(l).$D;
|
|
342
|
+
}, _.$locale = function() {
|
|
343
|
+
return b[this.$L];
|
|
344
|
+
}, _.locale = function(e, t) {
|
|
345
|
+
if (!e) return this.$L;
|
|
346
|
+
var n = this.clone(), r = C(e, t, !0);
|
|
347
|
+
return r && (n.$L = r), n;
|
|
348
|
+
}, _.clone = function() {
|
|
349
|
+
return T.w(this.$d, this);
|
|
350
|
+
}, _.toDate = function() {
|
|
351
|
+
return new Date(this.valueOf());
|
|
352
|
+
}, _.toJSON = function() {
|
|
353
|
+
return this.isValid() ? this.toISOString() : null;
|
|
354
|
+
}, _.toISOString = function() {
|
|
355
|
+
return this.$d.toISOString();
|
|
356
|
+
}, _.toString = function() {
|
|
357
|
+
return this.$d.toUTCString();
|
|
358
|
+
}, g;
|
|
359
|
+
}(), D = E.prototype;
|
|
360
|
+
return w.prototype = D, [
|
|
361
|
+
["$ms", r],
|
|
362
|
+
["$s", i],
|
|
363
|
+
["$m", a],
|
|
364
|
+
["$H", o],
|
|
365
|
+
["$W", s],
|
|
366
|
+
["$M", l],
|
|
367
|
+
["$y", d],
|
|
368
|
+
["$D", f]
|
|
369
|
+
].forEach((function(e) {
|
|
370
|
+
D[e[1]] = function(t) {
|
|
371
|
+
return this.$g(t, e[0], e[1]);
|
|
372
|
+
};
|
|
373
|
+
})), w.extend = function(e, t) {
|
|
374
|
+
return e.$i ||= (e(t, E, w), !0), w;
|
|
375
|
+
}, w.locale = C, w.isDayjs = S, w.unix = function(e) {
|
|
376
|
+
return w(1e3 * e);
|
|
377
|
+
}, w.en = b[y], w.Ls = b, w.p = {}, w;
|
|
378
|
+
}));
|
|
379
|
+
})))(), Array.prototype.mapNotNull = function(e) {
|
|
380
|
+
return this.flatMap((t, n) => {
|
|
381
|
+
let r = e(t, n);
|
|
382
|
+
return r == null ? [] : [r];
|
|
383
|
+
});
|
|
85
384
|
}, (/* @__PURE__ */ F(((e, t) => {
|
|
86
385
|
(function(n, r) {
|
|
87
386
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
@@ -381,7 +680,306 @@ Array.prototype.mapNotNull = function(e) {
|
|
|
381
680
|
let r = e(t, n);
|
|
382
681
|
return r == null ? [] : [r];
|
|
383
682
|
});
|
|
384
|
-
}, (/* @__PURE__ */ P(((e, t) => {
|
|
683
|
+
}, (/* @__PURE__ */ P(((e, t) => {
|
|
684
|
+
(function(n, r) {
|
|
685
|
+
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
686
|
+
})(e, (function() {
|
|
687
|
+
var e = 1e3, t = 6e4, n = 36e5, r = "millisecond", i = "second", a = "minute", o = "hour", s = "day", c = "week", l = "month", u = "quarter", d = "year", f = "date", p = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, h = /\[([^\]]+)]|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, g = {
|
|
688
|
+
name: "en",
|
|
689
|
+
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
690
|
+
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
691
|
+
ordinal: function(e) {
|
|
692
|
+
var t = [
|
|
693
|
+
"th",
|
|
694
|
+
"st",
|
|
695
|
+
"nd",
|
|
696
|
+
"rd"
|
|
697
|
+
], n = e % 100;
|
|
698
|
+
return "[" + e + (t[(n - 20) % 10] || t[n] || t[0]) + "]";
|
|
699
|
+
}
|
|
700
|
+
}, _ = function(e, t, n) {
|
|
701
|
+
var r = String(e);
|
|
702
|
+
return !r || r.length >= t ? e : "" + Array(t + 1 - r.length).join(n) + e;
|
|
703
|
+
}, v = {
|
|
704
|
+
s: _,
|
|
705
|
+
z: function(e) {
|
|
706
|
+
var t = -e.utcOffset(), n = Math.abs(t), r = Math.floor(n / 60), i = n % 60;
|
|
707
|
+
return (t <= 0 ? "+" : "-") + _(r, 2, "0") + ":" + _(i, 2, "0");
|
|
708
|
+
},
|
|
709
|
+
m: function e(t, n) {
|
|
710
|
+
if (t.date() < n.date()) return -e(n, t);
|
|
711
|
+
var r = 12 * (n.year() - t.year()) + (n.month() - t.month()), i = t.clone().add(r, l), a = n - i < 0, o = t.clone().add(r + (a ? -1 : 1), l);
|
|
712
|
+
return +(-(r + (n - i) / (a ? i - o : o - i)) || 0);
|
|
713
|
+
},
|
|
714
|
+
a: function(e) {
|
|
715
|
+
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
|
|
716
|
+
},
|
|
717
|
+
p: function(e) {
|
|
718
|
+
return {
|
|
719
|
+
M: l,
|
|
720
|
+
y: d,
|
|
721
|
+
w: c,
|
|
722
|
+
d: s,
|
|
723
|
+
D: f,
|
|
724
|
+
h: o,
|
|
725
|
+
m: a,
|
|
726
|
+
s: i,
|
|
727
|
+
ms: r,
|
|
728
|
+
Q: u
|
|
729
|
+
}[e] || String(e || "").toLowerCase().replace(/s$/, "");
|
|
730
|
+
},
|
|
731
|
+
u: function(e) {
|
|
732
|
+
return e === void 0;
|
|
733
|
+
}
|
|
734
|
+
}, y = "en", b = {};
|
|
735
|
+
b[y] = g;
|
|
736
|
+
var x = "$isDayjsObject", S = function(e) {
|
|
737
|
+
return e instanceof E || !(!e || !e[x]);
|
|
738
|
+
}, C = function e(t, n, r) {
|
|
739
|
+
var i;
|
|
740
|
+
if (!t) return y;
|
|
741
|
+
if (typeof t == "string") {
|
|
742
|
+
var a = t.toLowerCase();
|
|
743
|
+
b[a] && (i = a), n && (b[a] = n, i = a);
|
|
744
|
+
var o = t.split("-");
|
|
745
|
+
if (!i && o.length > 1) return e(o[0]);
|
|
746
|
+
} else {
|
|
747
|
+
var s = t.name;
|
|
748
|
+
b[s] = t, i = s;
|
|
749
|
+
}
|
|
750
|
+
return !r && i && (y = i), i || !r && y;
|
|
751
|
+
}, w = function(e, t) {
|
|
752
|
+
if (S(e)) return e.clone();
|
|
753
|
+
var n = typeof t == "object" ? t : {};
|
|
754
|
+
return n.date = e, n.args = arguments, new E(n);
|
|
755
|
+
}, T = v;
|
|
756
|
+
T.l = C, T.i = S, T.w = function(e, t) {
|
|
757
|
+
return w(e, {
|
|
758
|
+
locale: t.$L,
|
|
759
|
+
utc: t.$u,
|
|
760
|
+
x: t.$x,
|
|
761
|
+
$offset: t.$offset
|
|
762
|
+
});
|
|
763
|
+
};
|
|
764
|
+
var E = function() {
|
|
765
|
+
function g(e) {
|
|
766
|
+
this.$L = C(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[x] = !0;
|
|
767
|
+
}
|
|
768
|
+
var _ = g.prototype;
|
|
769
|
+
return _.parse = function(e) {
|
|
770
|
+
this.$d = function(e) {
|
|
771
|
+
var t = e.date, n = e.utc;
|
|
772
|
+
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
773
|
+
if (T.u(t)) return /* @__PURE__ */ new Date();
|
|
774
|
+
if (t instanceof Date) return new Date(t);
|
|
775
|
+
if (typeof t == "string" && !/Z$/i.test(t)) {
|
|
776
|
+
var r = t.match(m);
|
|
777
|
+
if (r) {
|
|
778
|
+
var i = r[2] - 1 || 0, a = (r[7] || "0").substring(0, 3);
|
|
779
|
+
return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a);
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
return new Date(t);
|
|
783
|
+
}(e), this.init();
|
|
784
|
+
}, _.init = function() {
|
|
785
|
+
var e = this.$d;
|
|
786
|
+
this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
|
|
787
|
+
}, _.$utils = function() {
|
|
788
|
+
return T;
|
|
789
|
+
}, _.isValid = function() {
|
|
790
|
+
return this.$d.toString() !== p;
|
|
791
|
+
}, _.isSame = function(e, t) {
|
|
792
|
+
var n = w(e);
|
|
793
|
+
return this.startOf(t) <= n && n <= this.endOf(t);
|
|
794
|
+
}, _.isAfter = function(e, t) {
|
|
795
|
+
return w(e) < this.startOf(t);
|
|
796
|
+
}, _.isBefore = function(e, t) {
|
|
797
|
+
return this.endOf(t) < w(e);
|
|
798
|
+
}, _.$g = function(e, t, n) {
|
|
799
|
+
return T.u(e) ? this[t] : this.set(n, e);
|
|
800
|
+
}, _.unix = function() {
|
|
801
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
802
|
+
}, _.valueOf = function() {
|
|
803
|
+
return this.$d.getTime();
|
|
804
|
+
}, _.startOf = function(e, t) {
|
|
805
|
+
var n = this, r = !!T.u(t) || t, u = T.p(e), p = function(e, t) {
|
|
806
|
+
var i = T.w(n.$u ? Date.UTC(n.$y, t, e) : new Date(n.$y, t, e), n);
|
|
807
|
+
return r ? i : i.endOf(s);
|
|
808
|
+
}, m = function(e, t) {
|
|
809
|
+
return T.w(n.toDate()[e].apply(n.toDate("s"), (r ? [
|
|
810
|
+
0,
|
|
811
|
+
0,
|
|
812
|
+
0,
|
|
813
|
+
0
|
|
814
|
+
] : [
|
|
815
|
+
23,
|
|
816
|
+
59,
|
|
817
|
+
59,
|
|
818
|
+
999
|
|
819
|
+
]).slice(t)), n);
|
|
820
|
+
}, h = this.$W, g = this.$M, _ = this.$D, v = "set" + (this.$u ? "UTC" : "");
|
|
821
|
+
switch (u) {
|
|
822
|
+
case d: return r ? p(1, 0) : p(31, 11);
|
|
823
|
+
case l: return r ? p(1, g) : p(0, g + 1);
|
|
824
|
+
case c:
|
|
825
|
+
var y = this.$locale().weekStart || 0, b = (h < y ? h + 7 : h) - y;
|
|
826
|
+
return p(r ? _ - b : _ + (6 - b), g);
|
|
827
|
+
case s:
|
|
828
|
+
case f: return m(v + "Hours", 0);
|
|
829
|
+
case o: return m(v + "Minutes", 1);
|
|
830
|
+
case a: return m(v + "Seconds", 2);
|
|
831
|
+
case i: return m(v + "Milliseconds", 3);
|
|
832
|
+
default: return this.clone();
|
|
833
|
+
}
|
|
834
|
+
}, _.endOf = function(e) {
|
|
835
|
+
return this.startOf(e, !1);
|
|
836
|
+
}, _.$set = function(e, t) {
|
|
837
|
+
var n, c = T.p(e), u = "set" + (this.$u ? "UTC" : ""), p = (n = {}, n[s] = u + "Date", n[f] = u + "Date", n[l] = u + "Month", n[d] = u + "FullYear", n[o] = u + "Hours", n[a] = u + "Minutes", n[i] = u + "Seconds", n[r] = u + "Milliseconds", n)[c], m = c === s ? this.$D + (t - this.$W) : t;
|
|
838
|
+
if (c === l || c === d) {
|
|
839
|
+
var h = this.clone().set(f, 1);
|
|
840
|
+
h.$d[p](m), h.init(), this.$d = h.set(f, Math.min(this.$D, h.daysInMonth())).$d;
|
|
841
|
+
} else p && this.$d[p](m);
|
|
842
|
+
return this.init(), this;
|
|
843
|
+
}, _.set = function(e, t) {
|
|
844
|
+
return this.clone().$set(e, t);
|
|
845
|
+
}, _.get = function(e) {
|
|
846
|
+
return this[T.p(e)]();
|
|
847
|
+
}, _.add = function(r, u) {
|
|
848
|
+
var f, p = this;
|
|
849
|
+
r = Number(r);
|
|
850
|
+
var m = T.p(u), h = function(e) {
|
|
851
|
+
var t = w(p);
|
|
852
|
+
return T.w(t.date(t.date() + Math.round(e * r)), p);
|
|
853
|
+
};
|
|
854
|
+
if (m === l) return this.set(l, this.$M + r);
|
|
855
|
+
if (m === d) return this.set(d, this.$y + r);
|
|
856
|
+
if (m === s) return h(1);
|
|
857
|
+
if (m === c) return h(7);
|
|
858
|
+
var g = (f = {}, f[a] = t, f[o] = n, f[i] = e, f)[m] || 1, _ = this.$d.getTime() + r * g;
|
|
859
|
+
return T.w(_, this);
|
|
860
|
+
}, _.subtract = function(e, t) {
|
|
861
|
+
return this.add(-1 * e, t);
|
|
862
|
+
}, _.format = function(e) {
|
|
863
|
+
var t = this, n = this.$locale();
|
|
864
|
+
if (!this.isValid()) return n.invalidDate || p;
|
|
865
|
+
var r = e || "YYYY-MM-DDTHH:mm:ssZ", i = T.z(this), a = this.$H, o = this.$m, s = this.$M, c = n.weekdays, l = n.months, u = n.meridiem, d = function(e, n, i, a) {
|
|
866
|
+
return e && (e[n] || e(t, r)) || i[n].slice(0, a);
|
|
867
|
+
}, f = function(e) {
|
|
868
|
+
return T.s(a % 12 || 12, e, "0");
|
|
869
|
+
}, m = u || function(e, t, n) {
|
|
870
|
+
var r = e < 12 ? "AM" : "PM";
|
|
871
|
+
return n ? r.toLowerCase() : r;
|
|
872
|
+
};
|
|
873
|
+
return r.replace(h, (function(e, r) {
|
|
874
|
+
return r || function(e) {
|
|
875
|
+
switch (e) {
|
|
876
|
+
case "YY": return String(t.$y).slice(-2);
|
|
877
|
+
case "YYYY": return T.s(t.$y, 4, "0");
|
|
878
|
+
case "M": return s + 1;
|
|
879
|
+
case "MM": return T.s(s + 1, 2, "0");
|
|
880
|
+
case "MMM": return d(n.monthsShort, s, l, 3);
|
|
881
|
+
case "MMMM": return d(l, s);
|
|
882
|
+
case "D": return t.$D;
|
|
883
|
+
case "DD": return T.s(t.$D, 2, "0");
|
|
884
|
+
case "d": return String(t.$W);
|
|
885
|
+
case "dd": return d(n.weekdaysMin, t.$W, c, 2);
|
|
886
|
+
case "ddd": return d(n.weekdaysShort, t.$W, c, 3);
|
|
887
|
+
case "dddd": return c[t.$W];
|
|
888
|
+
case "H": return String(a);
|
|
889
|
+
case "HH": return T.s(a, 2, "0");
|
|
890
|
+
case "h": return f(1);
|
|
891
|
+
case "hh": return f(2);
|
|
892
|
+
case "a": return m(a, o, !0);
|
|
893
|
+
case "A": return m(a, o, !1);
|
|
894
|
+
case "m": return String(o);
|
|
895
|
+
case "mm": return T.s(o, 2, "0");
|
|
896
|
+
case "s": return String(t.$s);
|
|
897
|
+
case "ss": return T.s(t.$s, 2, "0");
|
|
898
|
+
case "SSS": return T.s(t.$ms, 3, "0");
|
|
899
|
+
case "Z": return i;
|
|
900
|
+
}
|
|
901
|
+
return null;
|
|
902
|
+
}(e) || i.replace(":", "");
|
|
903
|
+
}));
|
|
904
|
+
}, _.utcOffset = function() {
|
|
905
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
906
|
+
}, _.diff = function(r, f, p) {
|
|
907
|
+
var m, h = this, g = T.p(f), _ = w(r), v = (_.utcOffset() - this.utcOffset()) * t, y = this - _, b = function() {
|
|
908
|
+
return T.m(h, _);
|
|
909
|
+
};
|
|
910
|
+
switch (g) {
|
|
911
|
+
case d:
|
|
912
|
+
m = b() / 12;
|
|
913
|
+
break;
|
|
914
|
+
case l:
|
|
915
|
+
m = b();
|
|
916
|
+
break;
|
|
917
|
+
case u:
|
|
918
|
+
m = b() / 3;
|
|
919
|
+
break;
|
|
920
|
+
case c:
|
|
921
|
+
m = (y - v) / 6048e5;
|
|
922
|
+
break;
|
|
923
|
+
case s:
|
|
924
|
+
m = (y - v) / 864e5;
|
|
925
|
+
break;
|
|
926
|
+
case o:
|
|
927
|
+
m = y / n;
|
|
928
|
+
break;
|
|
929
|
+
case a:
|
|
930
|
+
m = y / t;
|
|
931
|
+
break;
|
|
932
|
+
case i:
|
|
933
|
+
m = y / e;
|
|
934
|
+
break;
|
|
935
|
+
default: m = y;
|
|
936
|
+
}
|
|
937
|
+
return p ? m : T.a(m);
|
|
938
|
+
}, _.daysInMonth = function() {
|
|
939
|
+
return this.endOf(l).$D;
|
|
940
|
+
}, _.$locale = function() {
|
|
941
|
+
return b[this.$L];
|
|
942
|
+
}, _.locale = function(e, t) {
|
|
943
|
+
if (!e) return this.$L;
|
|
944
|
+
var n = this.clone(), r = C(e, t, !0);
|
|
945
|
+
return r && (n.$L = r), n;
|
|
946
|
+
}, _.clone = function() {
|
|
947
|
+
return T.w(this.$d, this);
|
|
948
|
+
}, _.toDate = function() {
|
|
949
|
+
return new Date(this.valueOf());
|
|
950
|
+
}, _.toJSON = function() {
|
|
951
|
+
return this.isValid() ? this.toISOString() : null;
|
|
952
|
+
}, _.toISOString = function() {
|
|
953
|
+
return this.$d.toISOString();
|
|
954
|
+
}, _.toString = function() {
|
|
955
|
+
return this.$d.toUTCString();
|
|
956
|
+
}, g;
|
|
957
|
+
}(), D = E.prototype;
|
|
958
|
+
return w.prototype = D, [
|
|
959
|
+
["$ms", r],
|
|
960
|
+
["$s", i],
|
|
961
|
+
["$m", a],
|
|
962
|
+
["$H", o],
|
|
963
|
+
["$W", s],
|
|
964
|
+
["$M", l],
|
|
965
|
+
["$y", d],
|
|
966
|
+
["$D", f]
|
|
967
|
+
].forEach((function(e) {
|
|
968
|
+
D[e[1]] = function(t) {
|
|
969
|
+
return this.$g(t, e[0], e[1]);
|
|
970
|
+
};
|
|
971
|
+
})), w.extend = function(e, t) {
|
|
972
|
+
return e.$i ||= (e(t, E, w), !0), w;
|
|
973
|
+
}, w.locale = C, w.isDayjs = S, w.unix = function(e) {
|
|
974
|
+
return w(1e3 * e);
|
|
975
|
+
}, w.en = b[y], w.Ls = b, w.p = {}, w;
|
|
976
|
+
}));
|
|
977
|
+
})))(), Array.prototype.mapNotNull = function(e) {
|
|
978
|
+
return this.flatMap((t, n) => {
|
|
979
|
+
let r = e(t, n);
|
|
980
|
+
return r == null ? [] : [r];
|
|
981
|
+
});
|
|
982
|
+
}, (/* @__PURE__ */ N(((e, t) => {
|
|
385
983
|
(function(n, r) {
|
|
386
984
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
387
985
|
})(e, (function() {
|
|
@@ -680,7 +1278,7 @@ Array.prototype.mapNotNull = function(e) {
|
|
|
680
1278
|
let r = e(t, n);
|
|
681
1279
|
return r == null ? [] : [r];
|
|
682
1280
|
});
|
|
683
|
-
}, (/* @__PURE__ */
|
|
1281
|
+
}, (/* @__PURE__ */ re(((e, t) => {
|
|
684
1282
|
(function(n, r) {
|
|
685
1283
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
686
1284
|
})(e, (function() {
|
|
@@ -979,7 +1577,7 @@ Array.prototype.mapNotNull = function(e) {
|
|
|
979
1577
|
let r = e(t, n);
|
|
980
1578
|
return r == null ? [] : [r];
|
|
981
1579
|
});
|
|
982
|
-
}, (/* @__PURE__ */
|
|
1580
|
+
}, (/* @__PURE__ */ ne(((e, t) => {
|
|
983
1581
|
(function(n, r) {
|
|
984
1582
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
985
1583
|
})(e, (function() {
|
|
@@ -1278,7 +1876,7 @@ Array.prototype.mapNotNull = function(e) {
|
|
|
1278
1876
|
let r = e(t, n);
|
|
1279
1877
|
return r == null ? [] : [r];
|
|
1280
1878
|
});
|
|
1281
|
-
}, (/* @__PURE__ */
|
|
1879
|
+
}, (/* @__PURE__ */ te(((e, t) => {
|
|
1282
1880
|
(function(n, r) {
|
|
1283
1881
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
1284
1882
|
})(e, (function() {
|
|
@@ -1577,7 +2175,7 @@ Array.prototype.mapNotNull = function(e) {
|
|
|
1577
2175
|
let r = e(t, n);
|
|
1578
2176
|
return r == null ? [] : [r];
|
|
1579
2177
|
});
|
|
1580
|
-
}, (/* @__PURE__ */
|
|
2178
|
+
}, (/* @__PURE__ */ ee(((e, t) => {
|
|
1581
2179
|
(function(n, r) {
|
|
1582
2180
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
1583
2181
|
})(e, (function() {
|
|
@@ -1876,7 +2474,7 @@ Array.prototype.mapNotNull = function(e) {
|
|
|
1876
2474
|
let r = e(t, n);
|
|
1877
2475
|
return r == null ? [] : [r];
|
|
1878
2476
|
});
|
|
1879
|
-
}, (/* @__PURE__ */
|
|
2477
|
+
}, (/* @__PURE__ */ M(((e, t) => {
|
|
1880
2478
|
(function(n, r) {
|
|
1881
2479
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
1882
2480
|
})(e, (function() {
|
|
@@ -2175,7 +2773,7 @@ Array.prototype.mapNotNull = function(e) {
|
|
|
2175
2773
|
let r = e(t, n);
|
|
2176
2774
|
return r == null ? [] : [r];
|
|
2177
2775
|
});
|
|
2178
|
-
}, (/* @__PURE__ */
|
|
2776
|
+
}, (/* @__PURE__ */ j(((e, t) => {
|
|
2179
2777
|
(function(n, r) {
|
|
2180
2778
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
2181
2779
|
})(e, (function() {
|
|
@@ -2470,7 +3068,7 @@ Array.prototype.mapNotNull = function(e) {
|
|
|
2470
3068
|
}, w.en = b[y], w.Ls = b, w.p = {}, w;
|
|
2471
3069
|
}));
|
|
2472
3070
|
})))();
|
|
2473
|
-
var
|
|
3071
|
+
var L = class {
|
|
2474
3072
|
url = "";
|
|
2475
3073
|
file = null;
|
|
2476
3074
|
constructor(e = {}) {
|
|
@@ -2488,7 +3086,7 @@ Array.prototype.mapNotNull = function(e) {
|
|
|
2488
3086
|
let r = e(t, n);
|
|
2489
3087
|
return r == null ? [] : [r];
|
|
2490
3088
|
});
|
|
2491
|
-
}, (/* @__PURE__ */
|
|
3089
|
+
}, (/* @__PURE__ */ k(((e, t) => {
|
|
2492
3090
|
(function(n, r) {
|
|
2493
3091
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
2494
3092
|
})(e, (function() {
|
|
@@ -2785,24 +3383,24 @@ Array.prototype.mapNotNull = function(e) {
|
|
|
2785
3383
|
})))();
|
|
2786
3384
|
//#endregion
|
|
2787
3385
|
//#region src/types/image.tsx
|
|
2788
|
-
var
|
|
3386
|
+
var R = ({ children: e }) => /* @__PURE__ */ c("div", { children: e }), z = (e) => /* @__PURE__ */ c("label", { ...e }), B = ({ children: e }) => /* @__PURE__ */ c("p", { children: e }), V = (e) => /* @__PURE__ */ c("input", { ...e }), H = ({ children: e, ...t }) => /* @__PURE__ */ c("div", {
|
|
2789
3387
|
...t,
|
|
2790
3388
|
children: e
|
|
2791
|
-
}),
|
|
3389
|
+
}), U = (e) => null, W = ({ children: e, ...t }) => /* @__PURE__ */ c("div", {
|
|
2792
3390
|
...t,
|
|
2793
3391
|
children: e
|
|
2794
|
-
}),
|
|
3392
|
+
}), G = ({ children: e, type: t = "button", ...n }) => /* @__PURE__ */ c("button", {
|
|
2795
3393
|
type: t,
|
|
2796
3394
|
...n,
|
|
2797
3395
|
children: e
|
|
2798
|
-
}),
|
|
3396
|
+
}), K = ({ className: e }) => /* @__PURE__ */ c("span", {
|
|
2799
3397
|
className: e,
|
|
2800
3398
|
children: "×"
|
|
2801
3399
|
});
|
|
2802
3400
|
//#endregion
|
|
2803
3401
|
//#region src/components/image/ImageUploadField.tsx
|
|
2804
|
-
function
|
|
2805
|
-
let { t: d } = v(), f = u?.Field ??
|
|
3402
|
+
function q({ id: e, label: t, uploadHintText: n, descriptionText: r, value: i, onChange: a, aspectRatio: o = "1 / 1", accept: s = "image/*", components: u }) {
|
|
3403
|
+
let { t: d } = v(), f = u?.Field ?? R, p = u?.FieldLabel ?? z, m = u?.FieldDescription ?? B, h = u?.Input ?? V;
|
|
2806
3404
|
return /* @__PURE__ */ l(f, { children: [
|
|
2807
3405
|
/* @__PURE__ */ c(p, {
|
|
2808
3406
|
htmlFor: e,
|
|
@@ -2822,7 +3420,7 @@ function K({ id: e, label: t, uploadHintText: n, descriptionText: r, value: i, o
|
|
|
2822
3420
|
children: /* @__PURE__ */ c("div", {
|
|
2823
3421
|
className: "m-auto max-h-full max-w-full",
|
|
2824
3422
|
style: { aspectRatio: o },
|
|
2825
|
-
children: /* @__PURE__ */ c(
|
|
3423
|
+
children: /* @__PURE__ */ c(A, {
|
|
2826
3424
|
className: "h-full w-full object-cover",
|
|
2827
3425
|
src: i.url
|
|
2828
3426
|
})
|
|
@@ -2846,7 +3444,7 @@ function K({ id: e, label: t, uploadHintText: n, descriptionText: r, value: i, o
|
|
|
2846
3444
|
className: "hidden",
|
|
2847
3445
|
onChange: (e) => {
|
|
2848
3446
|
let t = e.target.files?.[0];
|
|
2849
|
-
t && (i.revokeIfNeeded(), a(new
|
|
3447
|
+
t && (i.revokeIfNeeded(), a(new L({
|
|
2850
3448
|
file: t,
|
|
2851
3449
|
url: URL.createObjectURL(t)
|
|
2852
3450
|
})), e.currentTarget.value = "");
|
|
@@ -2858,7 +3456,7 @@ function K({ id: e, label: t, uploadHintText: n, descriptionText: r, value: i, o
|
|
|
2858
3456
|
}
|
|
2859
3457
|
//#endregion
|
|
2860
3458
|
//#region src/types/localized.ts
|
|
2861
|
-
var
|
|
3459
|
+
var J = ["ko", "en"], Y = class {
|
|
2862
3460
|
url = "";
|
|
2863
3461
|
file = null;
|
|
2864
3462
|
constructor(e = {}) {
|
|
@@ -2873,11 +3471,11 @@ var q = ["ko", "en"], J = class {
|
|
|
2873
3471
|
};
|
|
2874
3472
|
//#endregion
|
|
2875
3473
|
//#region src/components/image/ImageUploadSortableField.tsx
|
|
2876
|
-
function
|
|
2877
|
-
let { t: p } = v(), m = f?.Field ??
|
|
3474
|
+
function X({ id: e, label: t, descriptionText: n, uploadHintText: r, items: i, onChange: a, aspectRatio: s = "1 / 1", accept: u = "image/*", cardRounded: d = "rounded-md", components: f }) {
|
|
3475
|
+
let { t: p } = v(), m = f?.Field ?? R, h = f?.FieldLabel ?? z, g = f?.FieldDescription ?? B, _ = f?.Input ?? V, y = f?.ScrollArea ?? H, b = f?.ScrollBar ?? U, x = f?.Card ?? W, S = f?.Button ?? G, C = f?.CloseIcon ?? K, w = (e) => {
|
|
2878
3476
|
e.revokeIfNeeded(), a(i.filter((t) => t !== e));
|
|
2879
3477
|
}, T = (e) => {
|
|
2880
|
-
!e || e.length === 0 || a([...i, ...Array.from(e).map((e) => new
|
|
3478
|
+
!e || e.length === 0 || a([...i, ...Array.from(e).map((e) => new Y({
|
|
2881
3479
|
file: e,
|
|
2882
3480
|
url: URL.createObjectURL(e)
|
|
2883
3481
|
}))]);
|
|
@@ -2958,13 +3556,13 @@ function Y({ id: e, label: t, descriptionText: n, uploadHintText: r, items: i, o
|
|
|
2958
3556
|
}
|
|
2959
3557
|
//#endregion
|
|
2960
3558
|
//#region src/utils/firestore.ts
|
|
2961
|
-
function
|
|
3559
|
+
function ie(e) {
|
|
2962
3560
|
return {
|
|
2963
3561
|
...e.data(),
|
|
2964
3562
|
id: e.id
|
|
2965
3563
|
};
|
|
2966
3564
|
}
|
|
2967
|
-
async function
|
|
3565
|
+
async function ae(e, t, n, r) {
|
|
2968
3566
|
let i = r.filter((e) => !!(e && !n.has(e.path)));
|
|
2969
3567
|
for (let r = 0; r < i.length; r += 30) {
|
|
2970
3568
|
let a = i.slice(r, r + 30);
|
|
@@ -2974,27 +3572,27 @@ async function X(e, t, n, r) {
|
|
|
2974
3572
|
});
|
|
2975
3573
|
}
|
|
2976
3574
|
}
|
|
2977
|
-
async function
|
|
3575
|
+
async function oe(e, t, n) {
|
|
2978
3576
|
let r = n.filter((e) => !!(e && !t.has(e.path)));
|
|
2979
3577
|
await Promise.all(r.map(async (n) => {
|
|
2980
3578
|
let r = e(await d(n));
|
|
2981
3579
|
t.set(n.path, r);
|
|
2982
3580
|
}));
|
|
2983
3581
|
}
|
|
2984
|
-
function
|
|
3582
|
+
function se(e = {}) {
|
|
2985
3583
|
let { cache: t = !0, includeMetadataChanges: n } = e;
|
|
2986
3584
|
return {
|
|
2987
3585
|
listenOptions: { includeMetadataChanges: n ?? !t },
|
|
2988
3586
|
cache: t
|
|
2989
3587
|
};
|
|
2990
3588
|
}
|
|
2991
|
-
function
|
|
3589
|
+
function ce(e, t) {
|
|
2992
3590
|
return t !== !1 || !e;
|
|
2993
3591
|
}
|
|
2994
|
-
function
|
|
2995
|
-
let { listenOptions: r, cache: i } =
|
|
3592
|
+
function le(e, t, n = {}) {
|
|
3593
|
+
let { listenOptions: r, cache: i } = se(n), { onError: a } = n;
|
|
2996
3594
|
return e.type, p(e, r, (e) => {
|
|
2997
|
-
|
|
3595
|
+
ce(e.metadata.fromCache, i) && t(e);
|
|
2998
3596
|
}, a);
|
|
2999
3597
|
}
|
|
3000
3598
|
//#endregion
|
|
@@ -3007,14 +3605,14 @@ Array.prototype.mapNotNull = function(e) {
|
|
|
3007
3605
|
};
|
|
3008
3606
|
//#endregion
|
|
3009
3607
|
//#region src/utils/platform.ts
|
|
3010
|
-
function
|
|
3608
|
+
function ue() {
|
|
3011
3609
|
if (typeof window > "u") return "pc";
|
|
3012
3610
|
let e = navigator.userAgent, t = navigator.platform, n = /Android/i.test(e), r = /iPhone|iPad|iPod/i.test(e) || t === "MacIntel" && navigator.maxTouchPoints > 1;
|
|
3013
3611
|
return n ? "android" : r ? "ios" : "pc";
|
|
3014
3612
|
}
|
|
3015
3613
|
//#endregion
|
|
3016
3614
|
//#region src/utils/zustand.tsx
|
|
3017
|
-
function
|
|
3615
|
+
function de(n) {
|
|
3018
3616
|
let r = e(null);
|
|
3019
3617
|
function a({ children: e, ...t }) {
|
|
3020
3618
|
let [a] = i(() => n(t));
|
|
@@ -3336,7 +3934,7 @@ function Q(e, t, n) {
|
|
|
3336
3934
|
let r = (0, Z.default)(e);
|
|
3337
3935
|
return !e || !r.isValid() ? "" : r.format(n(t));
|
|
3338
3936
|
}
|
|
3339
|
-
function
|
|
3937
|
+
function fe() {
|
|
3340
3938
|
let { t: e } = v();
|
|
3341
3939
|
return r(() => ({
|
|
3342
3940
|
basicDateTimeFormat: (t, n) => Q(t, n, e),
|
|
@@ -3345,26 +3943,26 @@ function ue() {
|
|
|
3345
3943
|
timeFormat: (t) => Q(t, "libs:datetime.time_format", e)
|
|
3346
3944
|
}), [e]);
|
|
3347
3945
|
}
|
|
3348
|
-
function
|
|
3946
|
+
function pe(e) {
|
|
3349
3947
|
let t = (0, Z.default)(e);
|
|
3350
3948
|
return t.isValid() ? t.format("YYYYMMDD") : "";
|
|
3351
3949
|
}
|
|
3352
|
-
function
|
|
3950
|
+
function me(e) {
|
|
3353
3951
|
let t = (0, Z.default)(e);
|
|
3354
3952
|
return t.isValid() ? t.format("HH:mm") : "";
|
|
3355
3953
|
}
|
|
3356
3954
|
//#endregion
|
|
3357
3955
|
//#region src/constant/firestore.ts
|
|
3358
|
-
var
|
|
3956
|
+
var he = () => ({
|
|
3359
3957
|
updateAt: h(),
|
|
3360
3958
|
delete: !0
|
|
3361
|
-
}),
|
|
3959
|
+
}), ge = () => ({
|
|
3362
3960
|
updateAt: h(),
|
|
3363
3961
|
delete: !1
|
|
3364
3962
|
});
|
|
3365
3963
|
//#endregion
|
|
3366
3964
|
//#region src/constant/auth.ts
|
|
3367
|
-
function
|
|
3965
|
+
function $(e) {
|
|
3368
3966
|
switch (e) {
|
|
3369
3967
|
case "auth/user-not-found": return "libs:auth.errors.user_not_found";
|
|
3370
3968
|
case "auth/wrong-password": return "libs:auth.errors.wrong_password";
|
|
@@ -3386,7 +3984,7 @@ function me(e) {
|
|
|
3386
3984
|
default: return "libs:auth.errors.default";
|
|
3387
3985
|
}
|
|
3388
3986
|
}
|
|
3389
|
-
var
|
|
3987
|
+
var _e = {
|
|
3390
3988
|
auth: { errors: {
|
|
3391
3989
|
invalid_credential: "이메일 또는 비밀번호를 다시 확인해 주세요.",
|
|
3392
3990
|
wrong_password: "이메일 또는 비밀번호를 다시 확인해 주세요.",
|
|
@@ -3416,7 +4014,7 @@ var he = {
|
|
|
3416
4014
|
time_format: "a h:mm:ss"
|
|
3417
4015
|
},
|
|
3418
4016
|
add_assets: "애셋 추가"
|
|
3419
|
-
},
|
|
4017
|
+
}, ve = {
|
|
3420
4018
|
auth: { errors: {
|
|
3421
4019
|
invalid_credential: "Please check your email or password.",
|
|
3422
4020
|
wrong_password: "Please check your email or password.",
|
|
@@ -3449,12 +4047,12 @@ var he = {
|
|
|
3449
4047
|
};
|
|
3450
4048
|
//#endregion
|
|
3451
4049
|
//#region src/locales/i18n.ts
|
|
3452
|
-
function
|
|
3453
|
-
e.hasResourceBundle("ko", "libs") || e.addResourceBundle("ko", "libs",
|
|
4050
|
+
function ye(e) {
|
|
4051
|
+
e.hasResourceBundle("ko", "libs") || e.addResourceBundle("ko", "libs", _e, !0, !1), e.hasResourceBundle("en", "libs") || e.addResourceBundle("en", "libs", ve, !0, !1);
|
|
3454
4052
|
}
|
|
3455
4053
|
//#endregion
|
|
3456
4054
|
//#region src/css/toast.ts
|
|
3457
|
-
var
|
|
4055
|
+
var be = {
|
|
3458
4056
|
Info: {
|
|
3459
4057
|
Soft: {
|
|
3460
4058
|
"--normal-bg": "color-mix(in oklab, light-dark(var(--color-sky-600), var(--color-sky-400)) 10%, var(--background))",
|
|
@@ -3525,4 +4123,4 @@ var ve = {
|
|
|
3525
4123
|
}
|
|
3526
4124
|
};
|
|
3527
4125
|
//#endregion
|
|
3528
|
-
export { O as CrossfadeImage,
|
|
4126
|
+
export { O as CrossfadeImage, q as ImageUploadField, Y as ImageUploadItem, X as ImageUploadSortableField, J as SUPPORTED_LOCALES, be as ToastCSS, de as createZustandContext, pe as dateIdFormat, he as deleteItem, ae as fetchItems, oe as fetchItemsByOne, $ as getAuthErrorKey, ue as getPlatformType, le as getSnapshots, ye as initIenlabI18n, ie as snapshotToData, me as time24Format, ge as undeleteItem, fe as useDateTimeFormatters };
|