prlg-ui 1.5.8 → 1.6.0
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/EyeIcon-DSS0kjsN.cjs +1 -0
- package/dist/EyeIcon-DvnVzBB3.js +46 -0
- package/dist/TrashIcon-7HM_h8Xj.cjs +1 -0
- package/dist/TrashIcon-CI-cs4RF.js +203 -0
- package/dist/WarningFillIcon-DOUVCfcK.cjs +1 -0
- package/dist/{WarningFillIcon-Drb2OS3I.js → WarningFillIcon-IXRCDZt1.js} +63 -104
- package/dist/blocks/index.cjs.js +1 -0
- package/dist/blocks/index.es.js +373 -0
- package/dist/blocks.d.ts +59 -0
- package/dist/dayjs.util-Dg65EiGQ.cjs +1 -0
- package/dist/dayjs.util-RJe77c19.js +725 -0
- package/dist/icons/index.cjs.js +1 -1
- package/dist/icons/index.es.js +296 -423
- package/dist/icons.d.ts +8 -0
- package/dist/onClickOutside.util-CJueL_Rz.js +21 -0
- package/dist/onClickOutside.util-DD1l-Ra5.cjs +1 -0
- package/dist/prlg-ui.cjs.js +1 -1
- package/dist/prlg-ui.css +1 -1
- package/dist/prlg-ui.es.js +82 -80
- package/dist/useBodyScroll.util-Bbv2BXN4.cjs +1 -0
- package/dist/useBodyScroll.util-TIjN_8oq.js +63 -0
- package/dist/utils/index.cjs.js +1 -1
- package/dist/utils/index.es.js +395 -1115
- package/dist/utils/parseFileSize.util.ts +18 -0
- package/dist/utils/typeFile.util.ts +32 -0
- package/package.json +6 -1
- package/dist/WarningFillIcon-cHWhG7dF.cjs +0 -1
- package/dist/useBodyScroll.util-BgQeA8Dg.js +0 -82
- package/dist/useBodyScroll.util-D-eNxODy.cjs +0 -1
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
import { defineComponent as v, ref as b, createBlock as _, openBlock as n, Teleport as O, createVNode as f, Transition as x, withCtx as B, createElementBlock as u, createCommentVNode as h, createElementVNode as a, unref as m, useTemplateRef as k, Fragment as $, normalizeClass as y, computed as I, resolveDynamicComponent as V, toDisplayString as p, mergeModels as w, useModel as M, reactive as P, shallowRef as S, onMounted as z, withDirectives as R, renderList as A, vShow as D, vModelText as N, onUnmounted as U, withModifiers as j, createTextVNode as H } from "vue";
|
|
2
|
+
import { C as E, _ as C, E as T } from "../EyeIcon-DvnVzBB3.js";
|
|
3
|
+
import { F as L, E as W, W as q, P as G, I as X, a as Y, S as Z, A as J, C as K, T as Q, B as ee } from "../TrashIcon-CI-cs4RF.js";
|
|
4
|
+
import { o as se } from "../onClickOutside.util-CJueL_Rz.js";
|
|
5
|
+
import { d as ae } from "../dayjs.util-RJe77c19.js";
|
|
6
|
+
const te = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "image-full-modal"
|
|
9
|
+
}, le = { class: "image-full-modal__wrapper" }, ie = { class: "image-full-modal__header" }, ne = { class: "image-full-modal__main" }, oe = ["src", "alt"], ce = /* @__PURE__ */ v({
|
|
10
|
+
__name: "ImageFullModal",
|
|
11
|
+
props: {
|
|
12
|
+
src: {},
|
|
13
|
+
alt: {}
|
|
14
|
+
},
|
|
15
|
+
setup(s, { expose: o }) {
|
|
16
|
+
const e = b(!1);
|
|
17
|
+
return o({
|
|
18
|
+
open: () => {
|
|
19
|
+
e.value = !0;
|
|
20
|
+
},
|
|
21
|
+
close: () => {
|
|
22
|
+
e.value = !1;
|
|
23
|
+
}
|
|
24
|
+
}), (i, l) => (n(), _(O, { to: "body" }, [
|
|
25
|
+
f(x, { name: "fade" }, {
|
|
26
|
+
default: B(() => [
|
|
27
|
+
e.value ? (n(), u("div", te, [
|
|
28
|
+
a("div", {
|
|
29
|
+
class: "image-full-modal__overlay",
|
|
30
|
+
onClick: l[0] || (l[0] = (r) => e.value = !1)
|
|
31
|
+
}),
|
|
32
|
+
a("div", le, [
|
|
33
|
+
a("div", ie, [
|
|
34
|
+
a("button", {
|
|
35
|
+
class: "image-full-modal__close",
|
|
36
|
+
onClick: l[1] || (l[1] = (r) => e.value = !1)
|
|
37
|
+
}, [
|
|
38
|
+
f(m(E))
|
|
39
|
+
])
|
|
40
|
+
]),
|
|
41
|
+
a("div", ne, [
|
|
42
|
+
a("img", {
|
|
43
|
+
src: i.src,
|
|
44
|
+
alt: i.alt
|
|
45
|
+
}, null, 8, oe)
|
|
46
|
+
]),
|
|
47
|
+
l[2] || (l[2] = a("div", { class: "image-full-modal__footer" }, null, -1))
|
|
48
|
+
])
|
|
49
|
+
])) : h("", !0)
|
|
50
|
+
]),
|
|
51
|
+
_: 1
|
|
52
|
+
})
|
|
53
|
+
]));
|
|
54
|
+
}
|
|
55
|
+
}), re = /* @__PURE__ */ C(ce, [["__scopeId", "data-v-edc1a47e"]]), de = ["src", "alt"], ue = /* @__PURE__ */ v({
|
|
56
|
+
__name: "Image",
|
|
57
|
+
props: {
|
|
58
|
+
src: {},
|
|
59
|
+
alt: {},
|
|
60
|
+
size: { default: "medium" },
|
|
61
|
+
fillScreen: { type: Boolean }
|
|
62
|
+
},
|
|
63
|
+
setup(s) {
|
|
64
|
+
const o = k("imageFullModal");
|
|
65
|
+
return (e, i) => (n(), u($, null, [
|
|
66
|
+
a("div", {
|
|
67
|
+
class: y(["image", `image--${e.size}`, { "image--fill-screen": e.fillScreen }])
|
|
68
|
+
}, [
|
|
69
|
+
e.fillScreen ? (n(), u("div", {
|
|
70
|
+
key: 0,
|
|
71
|
+
class: "image__overlay",
|
|
72
|
+
onClick: i[0] || (i[0] = (l) => o.value?.open())
|
|
73
|
+
}, [
|
|
74
|
+
f(m(T))
|
|
75
|
+
])) : h("", !0),
|
|
76
|
+
a("img", {
|
|
77
|
+
src: e.src,
|
|
78
|
+
alt: e.alt
|
|
79
|
+
}, null, 8, de)
|
|
80
|
+
], 2),
|
|
81
|
+
e.fillScreen ? (n(), _(re, {
|
|
82
|
+
key: 0,
|
|
83
|
+
ref: "imageFullModal",
|
|
84
|
+
src: e.src,
|
|
85
|
+
alt: e.alt
|
|
86
|
+
}, null, 8, ["src", "alt"])) : h("", !0)
|
|
87
|
+
], 64));
|
|
88
|
+
}
|
|
89
|
+
}), me = /* @__PURE__ */ C(ue, [["__scopeId", "data-v-360a26ed"]]);
|
|
90
|
+
function F(s) {
|
|
91
|
+
return s.startsWith("image/") ? "image" : s === "application/pdf" ? "pdf" : s === "application/msword" || s === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" ? "word" : s === "application/vnd.ms-excel" || s === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ? "excel" : "other";
|
|
92
|
+
}
|
|
93
|
+
const fe = { class: "chat-file__content" }, _e = {
|
|
94
|
+
key: 1,
|
|
95
|
+
class: "chat-file__content-file"
|
|
96
|
+
}, pe = { class: "chat-file__content-file-icon" }, ve = { class: "chat-file__content-file-name" }, ge = /* @__PURE__ */ v({
|
|
97
|
+
__name: "ChatFile",
|
|
98
|
+
props: {
|
|
99
|
+
file: {}
|
|
100
|
+
},
|
|
101
|
+
emits: ["deleteFile"],
|
|
102
|
+
setup(s, { emit: o }) {
|
|
103
|
+
const e = o, i = I(() => URL.createObjectURL(s.file)), l = I(() => {
|
|
104
|
+
switch (F(s.file.type)) {
|
|
105
|
+
case "pdf":
|
|
106
|
+
return G;
|
|
107
|
+
case "word":
|
|
108
|
+
return q;
|
|
109
|
+
case "excel":
|
|
110
|
+
return W;
|
|
111
|
+
case "other":
|
|
112
|
+
return L;
|
|
113
|
+
default:
|
|
114
|
+
return null;
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
return (r, t) => (n(), u("div", {
|
|
118
|
+
class: y(["chat-file", { "chat-file--image": m(F)(r.file.type) === "image" }])
|
|
119
|
+
}, [
|
|
120
|
+
a("button", {
|
|
121
|
+
class: "chat-file__delete",
|
|
122
|
+
onClick: t[0] || (t[0] = (c) => e("deleteFile", r.file))
|
|
123
|
+
}, [
|
|
124
|
+
f(m(E))
|
|
125
|
+
]),
|
|
126
|
+
a("div", fe, [
|
|
127
|
+
m(F)(r.file.type) === "image" ? (n(), _(m(me), {
|
|
128
|
+
key: 0,
|
|
129
|
+
src: i.value,
|
|
130
|
+
alt: r.file.name,
|
|
131
|
+
size: "large",
|
|
132
|
+
"fill-screen": ""
|
|
133
|
+
}, null, 8, ["src", "alt"])) : (n(), u("div", _e, [
|
|
134
|
+
a("div", pe, [
|
|
135
|
+
(n(), _(V(l.value)))
|
|
136
|
+
]),
|
|
137
|
+
a("div", ve, p(r.file.name), 1)
|
|
138
|
+
])),
|
|
139
|
+
t[1] || (t[1] = a("div", { class: "chat-file__info" }, [
|
|
140
|
+
a("div", { class: "chat-file__info-name" }, " PNG "),
|
|
141
|
+
a("div", { class: "chat-file__info-separator" }),
|
|
142
|
+
a("div", { class: "chat-file__info-size" }, " 34 MB ")
|
|
143
|
+
], -1))
|
|
144
|
+
])
|
|
145
|
+
], 2));
|
|
146
|
+
}
|
|
147
|
+
}), he = /* @__PURE__ */ C(ge, [["__scopeId", "data-v-15110fe6"]]), ye = (s) => {
|
|
148
|
+
const o = ["b", "kb", "mb", "gb", "tb"], e = s.match(/[a-zA-Z]+/)?.[0] || "b", i = parseFloat(s.replace(e, "")), l = o.indexOf(e.toLowerCase());
|
|
149
|
+
return i * Math.pow(1024, l);
|
|
150
|
+
};
|
|
151
|
+
function be(s) {
|
|
152
|
+
if (!s) return;
|
|
153
|
+
const o = Array.isArray(s) ? s : [s], e = {
|
|
154
|
+
image: ["image/*"],
|
|
155
|
+
pdf: ["application/pdf"],
|
|
156
|
+
excel: [
|
|
157
|
+
"application/vnd.ms-excel",
|
|
158
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
159
|
+
],
|
|
160
|
+
word: [
|
|
161
|
+
"application/msword",
|
|
162
|
+
"application/vnd.openxmlformats-officedocument.wordprocessingml.document"
|
|
163
|
+
],
|
|
164
|
+
all: ["*/*"]
|
|
165
|
+
};
|
|
166
|
+
return o.flatMap((i) => e[i] || []).join(",");
|
|
167
|
+
}
|
|
168
|
+
function $e(s = {}) {
|
|
169
|
+
return new Promise((o) => {
|
|
170
|
+
const e = document.createElement("input");
|
|
171
|
+
e.type = "file", e.style.display = "none", s.maxFiles && s.maxFiles > 1 && (e.multiple = !0);
|
|
172
|
+
const i = be(s.accept);
|
|
173
|
+
i && (e.accept = i), e.addEventListener("change", (l) => {
|
|
174
|
+
const r = l.target;
|
|
175
|
+
let t = [];
|
|
176
|
+
if (r.files && r.files.length > 0 && (t = Array.from(r.files), s.maxFiles && t.length > s.maxFiles && (t = t.slice(0, s.maxFiles)), s.maxFileSize)) {
|
|
177
|
+
const c = ye(s.maxFileSize);
|
|
178
|
+
t = t.filter((d) => d.size <= c);
|
|
179
|
+
}
|
|
180
|
+
o(t), document.body.removeChild(e);
|
|
181
|
+
}), document.body.appendChild(e), e.click();
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
const Ce = { class: "chat-field-actions" }, Fe = {
|
|
185
|
+
ref: "overlay",
|
|
186
|
+
class: "chat-field-actions__overlay"
|
|
187
|
+
}, ke = ["onClick"], Ie = { class: "chat-field-actions__overlay-item__label" }, we = ["disabled"], Me = /* @__PURE__ */ v({
|
|
188
|
+
__name: "ChatFieldActions",
|
|
189
|
+
props: /* @__PURE__ */ w({
|
|
190
|
+
actions: {},
|
|
191
|
+
disabled: { type: Boolean, default: !1 },
|
|
192
|
+
multiple: { type: Boolean, default: !0 }
|
|
193
|
+
}, {
|
|
194
|
+
modelValue: {},
|
|
195
|
+
modelModifiers: {}
|
|
196
|
+
}),
|
|
197
|
+
emits: ["update:modelValue"],
|
|
198
|
+
setup(s) {
|
|
199
|
+
const o = M(s, "modelValue"), e = k("button"), i = k("overlay"), l = b(!1), r = P({
|
|
200
|
+
image: {
|
|
201
|
+
icon: S(X),
|
|
202
|
+
label: "Добавить изображение"
|
|
203
|
+
},
|
|
204
|
+
file: {
|
|
205
|
+
icon: S(L),
|
|
206
|
+
label: "Добавить файл"
|
|
207
|
+
}
|
|
208
|
+
}), t = (c) => {
|
|
209
|
+
$e({
|
|
210
|
+
accept: c === "image" ? ["image"] : ["pdf", "excel", "word"],
|
|
211
|
+
maxFileSize: "5mb",
|
|
212
|
+
maxFiles: 1
|
|
213
|
+
}).then((d) => {
|
|
214
|
+
o.value ? o.value = s.multiple ? [...o.value, ...d] : d : o.value = [...d], l.value = !1;
|
|
215
|
+
});
|
|
216
|
+
};
|
|
217
|
+
return z(() => {
|
|
218
|
+
se(i.value, () => {
|
|
219
|
+
l.value = !1;
|
|
220
|
+
}, { ignore: [e.value] });
|
|
221
|
+
}), (c, d) => (n(), u("div", Ce, [
|
|
222
|
+
f(x, { name: "slide-up" }, {
|
|
223
|
+
default: B(() => [
|
|
224
|
+
R(a("div", Fe, [
|
|
225
|
+
(n(!0), u($, null, A(c.actions, (g) => (n(), u("div", {
|
|
226
|
+
class: "chat-field-actions__overlay-item",
|
|
227
|
+
key: g,
|
|
228
|
+
onClick: (He) => t(g)
|
|
229
|
+
}, [
|
|
230
|
+
(n(), _(V(r[g].icon), { class: "chat-field-actions__overlay-item__icon" })),
|
|
231
|
+
a("span", Ie, p(r[g].label), 1)
|
|
232
|
+
], 8, ke))), 128))
|
|
233
|
+
], 512), [
|
|
234
|
+
[D, l.value]
|
|
235
|
+
])
|
|
236
|
+
]),
|
|
237
|
+
_: 1
|
|
238
|
+
}),
|
|
239
|
+
a("button", {
|
|
240
|
+
ref: "button",
|
|
241
|
+
onClick: d[0] || (d[0] = (g) => l.value = !l.value),
|
|
242
|
+
class: y(["chat-field-actions__button", { "chat-field-actions__button--active": l.value }]),
|
|
243
|
+
disabled: c.disabled
|
|
244
|
+
}, [
|
|
245
|
+
f(m(Y))
|
|
246
|
+
], 10, we)
|
|
247
|
+
]));
|
|
248
|
+
}
|
|
249
|
+
}), Se = /* @__PURE__ */ C(Me, [["__scopeId", "data-v-6b295528"]]), xe = { class: "chat-field" }, Be = {
|
|
250
|
+
key: 0,
|
|
251
|
+
class: "chat-field__files"
|
|
252
|
+
}, Ve = { class: "chat-field__wrapper" }, ze = ["placeholder"], Ye = /* @__PURE__ */ v({
|
|
253
|
+
__name: "ChatField",
|
|
254
|
+
props: /* @__PURE__ */ w({
|
|
255
|
+
viewActions: { type: Boolean, default: !1 },
|
|
256
|
+
actions: { default: () => ["file", "image"] },
|
|
257
|
+
placeholder: { default: "Введите сообщение" },
|
|
258
|
+
disabled: { type: Boolean, default: !1 }
|
|
259
|
+
}, {
|
|
260
|
+
message: { required: !0 },
|
|
261
|
+
messageModifiers: {},
|
|
262
|
+
files: {},
|
|
263
|
+
filesModifiers: {}
|
|
264
|
+
}),
|
|
265
|
+
emits: /* @__PURE__ */ w(["sendMessage"], ["update:message", "update:files"]),
|
|
266
|
+
setup(s, { emit: o }) {
|
|
267
|
+
const e = o, i = M(s, "message"), l = M(s, "files"), r = (t) => {
|
|
268
|
+
l.value && (l.value = l.value.filter((c) => c.name !== t.name));
|
|
269
|
+
};
|
|
270
|
+
return (t, c) => (n(), u("div", xe, [
|
|
271
|
+
l.value && l.value.length > 0 ? (n(), u("div", Be, [
|
|
272
|
+
(n(!0), u($, null, A(l.value, (d) => (n(), _(he, {
|
|
273
|
+
key: d.name,
|
|
274
|
+
file: d,
|
|
275
|
+
onDeleteFile: r
|
|
276
|
+
}, null, 8, ["file"]))), 128))
|
|
277
|
+
])) : h("", !0),
|
|
278
|
+
a("div", Ve, [
|
|
279
|
+
t.viewActions && t.actions.length > 0 ? (n(), _(Se, {
|
|
280
|
+
key: 0,
|
|
281
|
+
modelValue: l.value,
|
|
282
|
+
"onUpdate:modelValue": c[0] || (c[0] = (d) => l.value = d),
|
|
283
|
+
actions: t.actions,
|
|
284
|
+
disabled: t.disabled
|
|
285
|
+
}, null, 8, ["modelValue", "actions", "disabled"])) : h("", !0),
|
|
286
|
+
R(a("input", {
|
|
287
|
+
"onUpdate:modelValue": c[1] || (c[1] = (d) => i.value = d),
|
|
288
|
+
class: "chat-field__input",
|
|
289
|
+
placeholder: t.placeholder
|
|
290
|
+
}, null, 8, ze), [
|
|
291
|
+
[N, i.value]
|
|
292
|
+
]),
|
|
293
|
+
a("button", {
|
|
294
|
+
class: "chat-field__button",
|
|
295
|
+
onClick: c[2] || (c[2] = (d) => e("sendMessage"))
|
|
296
|
+
}, [
|
|
297
|
+
f(m(Z))
|
|
298
|
+
])
|
|
299
|
+
])
|
|
300
|
+
]));
|
|
301
|
+
}
|
|
302
|
+
}), Re = { class: "message__avatar" }, Ae = ["src"], Ee = { class: "message__content" }, Le = { class: "message__info" }, Oe = { class: "message__name" }, Pe = { class: "message__time" }, De = { class: "message__text" }, Ne = { class: "message-actions__item" }, Ue = { class: "message-actions__item" }, Ze = /* @__PURE__ */ v({
|
|
303
|
+
__name: "Message",
|
|
304
|
+
props: {
|
|
305
|
+
message: {},
|
|
306
|
+
position: { default: "left" }
|
|
307
|
+
},
|
|
308
|
+
setup(s) {
|
|
309
|
+
const o = I(() => [
|
|
310
|
+
"message",
|
|
311
|
+
`message--${s.position}`
|
|
312
|
+
]), e = b(null), i = b(!1), l = (t) => {
|
|
313
|
+
e.value && (i.value = !0, e.value.style.left = `${t.offsetX}px`, e.value.style.top = `${t.offsetY}px`);
|
|
314
|
+
}, r = (t) => {
|
|
315
|
+
e.value && t.composedPath().includes(e.value) || (i.value = !1);
|
|
316
|
+
};
|
|
317
|
+
return z(() => {
|
|
318
|
+
document.addEventListener("click", r);
|
|
319
|
+
}), U(() => {
|
|
320
|
+
document.removeEventListener("click", r);
|
|
321
|
+
}), (t, c) => (n(), u($, null, [
|
|
322
|
+
a("div", {
|
|
323
|
+
class: y(o.value),
|
|
324
|
+
onContextmenu: j(l, ["right", "prevent"])
|
|
325
|
+
}, [
|
|
326
|
+
a("div", Re, [
|
|
327
|
+
t.message.user.avatar ? (n(), u("img", {
|
|
328
|
+
key: 1,
|
|
329
|
+
src: t.message.user.avatar,
|
|
330
|
+
alt: "avatar"
|
|
331
|
+
}, null, 8, Ae)) : (n(), _(m(J), { key: 0 }))
|
|
332
|
+
]),
|
|
333
|
+
a("div", Ee, [
|
|
334
|
+
a("div", Le, [
|
|
335
|
+
a("div", Oe, [
|
|
336
|
+
a("strong", null, p(t.message.user.name) + " " + p(t.message.user.lastname), 1),
|
|
337
|
+
H(" (" + p(t.message.user.post) + ") ", 1)
|
|
338
|
+
]),
|
|
339
|
+
a("div", Pe, p(m(ae)(t.message.created_at).format("HH:mm")), 1)
|
|
340
|
+
]),
|
|
341
|
+
a("p", De, p(t.message.text), 1)
|
|
342
|
+
])
|
|
343
|
+
], 34),
|
|
344
|
+
a("div", {
|
|
345
|
+
ref_key: "actionsRef",
|
|
346
|
+
ref: e,
|
|
347
|
+
class: y(["message-actions", { "message-actions--visible": i.value }])
|
|
348
|
+
}, [
|
|
349
|
+
a("div", Ne, [
|
|
350
|
+
f(m(K), { class: "message-actions__item-icon" }),
|
|
351
|
+
c[0] || (c[0] = a("span", { class: "message-actions__item-text" }, "Копировать", -1))
|
|
352
|
+
]),
|
|
353
|
+
a("div", Ue, [
|
|
354
|
+
f(m(Q), { class: "message-actions__item-icon" }),
|
|
355
|
+
c[1] || (c[1] = a("span", { class: "message-actions__item-text" }, "Удалить", -1))
|
|
356
|
+
])
|
|
357
|
+
], 2)
|
|
358
|
+
], 64));
|
|
359
|
+
}
|
|
360
|
+
}), je = { class: "bonus-summary" }, Je = /* @__PURE__ */ v({
|
|
361
|
+
__name: "BonusSummary",
|
|
362
|
+
setup(s) {
|
|
363
|
+
return (o, e) => (n(), u("div", je, [
|
|
364
|
+
f(m(ee), { class: "bonus-summary__icon" }),
|
|
365
|
+
e[0] || (e[0] = a("div", { class: "bonus-summary__number" }, "123", -1))
|
|
366
|
+
]));
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
export {
|
|
370
|
+
Je as BonusSummary,
|
|
371
|
+
Ye as ChatField,
|
|
372
|
+
Ze as Message
|
|
373
|
+
};
|
package/dist/blocks.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
2
|
+
import { ComponentProvideOptions } from 'vue';
|
|
3
|
+
import { DefineComponent } from 'vue';
|
|
4
|
+
import { PublicProps } from 'vue';
|
|
5
|
+
|
|
6
|
+
declare type __VLS_Props = {
|
|
7
|
+
viewActions?: boolean;
|
|
8
|
+
actions?: Array<'file' | 'image'>;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
declare type __VLS_Props_2 = {
|
|
14
|
+
message: Message_2;
|
|
15
|
+
position?: 'left' | 'right';
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
declare type __VLS_PublicProps = {
|
|
19
|
+
'message': string;
|
|
20
|
+
'files'?: File[];
|
|
21
|
+
} & __VLS_Props;
|
|
22
|
+
|
|
23
|
+
export declare const BonusSummary: DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
24
|
+
|
|
25
|
+
export declare const ChatField: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
26
|
+
"update:message": (value: string) => any;
|
|
27
|
+
"update:files": (value: File[]) => any;
|
|
28
|
+
} & {
|
|
29
|
+
sendMessage: () => any;
|
|
30
|
+
}, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
31
|
+
onSendMessage?: (() => any) | undefined;
|
|
32
|
+
"onUpdate:message"?: ((value: string) => any) | undefined;
|
|
33
|
+
"onUpdate:files"?: ((value: File[]) => any) | undefined;
|
|
34
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
35
|
+
|
|
36
|
+
export declare const Message: DefineComponent<__VLS_Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_2> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
37
|
+
actionsRef: HTMLDivElement;
|
|
38
|
+
}, any>;
|
|
39
|
+
|
|
40
|
+
declare interface Message_2 {
|
|
41
|
+
text: string;
|
|
42
|
+
created_at: string;
|
|
43
|
+
user: {
|
|
44
|
+
name: string;
|
|
45
|
+
avatar: string | null;
|
|
46
|
+
lastname: string;
|
|
47
|
+
post: string;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { }
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
declare module 'vue' {
|
|
56
|
+
export interface GlobalComponents {
|
|
57
|
+
Dropdown: DefineComponent<DropdownProps>
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function J(B){return B&&B.__esModule&&Object.prototype.hasOwnProperty.call(B,"default")?B.default:B}var tt={exports:{}},St=tt.exports,lt;function gt(){return lt||(lt=1,function(B,W){(function(S,f){B.exports=f()})(St,function(){var S=1e3,f=6e4,T=36e5,D="millisecond",x="second",g="minute",w="hour",p="day",d="week",L="month",A="quarter",q="year",M="date",k="Invalid Date",u=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,c=/\[([^\]]+)]|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,_={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(s){var r=["th","st","nd","rd"],t=s%100;return"["+s+(r[(t-20)%10]||r[t]||r[0])+"]"}},Y=function(s,r,t){var o=String(s);return!o||o.length>=r?s:""+Array(r+1-o.length).join(t)+s},I={s:Y,z:function(s){var r=-s.utcOffset(),t=Math.abs(r),o=Math.floor(t/60),n=t%60;return(r<=0?"+":"-")+Y(o,2,"0")+":"+Y(n,2,"0")},m:function s(r,t){if(r.date()<t.date())return-s(t,r);var o=12*(t.year()-r.year())+(t.month()-r.month()),n=r.clone().add(o,L),h=t-n<0,m=r.clone().add(o+(h?-1:1),L);return+(-(o+(t-n)/(h?n-m:m-n))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M:L,y:q,w:d,d:p,D:M,h:w,m:g,s:x,ms:D,Q:A}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},H="en",l={};l[H]=_;var i="$isDayjsObject",e=function(s){return s instanceof O||!(!s||!s[i])},v=function s(r,t,o){var n;if(!r)return H;if(typeof r=="string"){var h=r.toLowerCase();l[h]&&(n=h),t&&(l[h]=t,n=h);var m=r.split("-");if(!n&&m.length>1)return s(m[0])}else{var y=r.name;l[y]=r,n=y}return!o&&n&&(H=n),n||!o&&H},$=function(s,r){if(e(s))return s.clone();var t=typeof r=="object"?r:{};return t.date=s,t.args=arguments,new O(t)},a=I;a.l=v,a.i=e,a.w=function(s,r){return $(s,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var O=function(){function s(t){this.$L=v(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[i]=!0}var r=s.prototype;return r.parse=function(t){this.$d=function(o){var n=o.date,h=o.utc;if(n===null)return new Date(NaN);if(a.u(n))return new Date;if(n instanceof Date)return new Date(n);if(typeof n=="string"&&!/Z$/i.test(n)){var m=n.match(u);if(m){var y=m[2]-1||0,F=(m[7]||"0").substring(0,3);return h?new Date(Date.UTC(m[1],y,m[3]||1,m[4]||0,m[5]||0,m[6]||0,F)):new Date(m[1],y,m[3]||1,m[4]||0,m[5]||0,m[6]||0,F)}}return new Date(n)}(t),this.init()},r.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},r.$utils=function(){return a},r.isValid=function(){return this.$d.toString()!==k},r.isSame=function(t,o){var n=$(t);return this.startOf(o)<=n&&n<=this.endOf(o)},r.isAfter=function(t,o){return $(t)<this.startOf(o)},r.isBefore=function(t,o){return this.endOf(o)<$(t)},r.$g=function(t,o,n){return a.u(t)?this[o]:this.set(n,t)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(t,o){var n=this,h=!!a.u(o)||o,m=a.p(t),y=function(R,P){var E=a.w(n.$u?Date.UTC(n.$y,P,R):new Date(n.$y,P,R),n);return h?E:E.endOf(p)},F=function(R,P){return a.w(n.toDate()[R].apply(n.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(P)),n)},j=this.$W,C=this.$M,z=this.$D,V="set"+(this.$u?"UTC":"");switch(m){case q:return h?y(1,0):y(31,11);case L:return h?y(1,C):y(0,C+1);case d:var N=this.$locale().weekStart||0,X=(j<N?j+7:j)-N;return y(h?z-X:z+(6-X),C);case p:case M:return F(V+"Hours",0);case w:return F(V+"Minutes",1);case g:return F(V+"Seconds",2);case x:return F(V+"Milliseconds",3);default:return this.clone()}},r.endOf=function(t){return this.startOf(t,!1)},r.$set=function(t,o){var n,h=a.p(t),m="set"+(this.$u?"UTC":""),y=(n={},n[p]=m+"Date",n[M]=m+"Date",n[L]=m+"Month",n[q]=m+"FullYear",n[w]=m+"Hours",n[g]=m+"Minutes",n[x]=m+"Seconds",n[D]=m+"Milliseconds",n)[h],F=h===p?this.$D+(o-this.$W):o;if(h===L||h===q){var j=this.clone().set(M,1);j.$d[y](F),j.init(),this.$d=j.set(M,Math.min(this.$D,j.daysInMonth())).$d}else y&&this.$d[y](F);return this.init(),this},r.set=function(t,o){return this.clone().$set(t,o)},r.get=function(t){return this[a.p(t)]()},r.add=function(t,o){var n,h=this;t=Number(t);var m=a.p(o),y=function(C){var z=$(h);return a.w(z.date(z.date()+Math.round(C*t)),h)};if(m===L)return this.set(L,this.$M+t);if(m===q)return this.set(q,this.$y+t);if(m===p)return y(1);if(m===d)return y(7);var F=(n={},n[g]=f,n[w]=T,n[x]=S,n)[m]||1,j=this.$d.getTime()+t*F;return a.w(j,this)},r.subtract=function(t,o){return this.add(-1*t,o)},r.format=function(t){var o=this,n=this.$locale();if(!this.isValid())return n.invalidDate||k;var h=t||"YYYY-MM-DDTHH:mm:ssZ",m=a.z(this),y=this.$H,F=this.$m,j=this.$M,C=n.weekdays,z=n.months,V=n.meridiem,N=function(P,E,U,Q){return P&&(P[E]||P(o,h))||U[E].slice(0,Q)},X=function(P){return a.s(y%12||12,P,"0")},R=V||function(P,E,U){var Q=P<12?"AM":"PM";return U?Q.toLowerCase():Q};return h.replace(c,function(P,E){return E||function(U){switch(U){case"YY":return String(o.$y).slice(-2);case"YYYY":return a.s(o.$y,4,"0");case"M":return j+1;case"MM":return a.s(j+1,2,"0");case"MMM":return N(n.monthsShort,j,z,3);case"MMMM":return N(z,j);case"D":return o.$D;case"DD":return a.s(o.$D,2,"0");case"d":return String(o.$W);case"dd":return N(n.weekdaysMin,o.$W,C,2);case"ddd":return N(n.weekdaysShort,o.$W,C,3);case"dddd":return C[o.$W];case"H":return String(y);case"HH":return a.s(y,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return R(y,F,!0);case"A":return R(y,F,!1);case"m":return String(F);case"mm":return a.s(F,2,"0");case"s":return String(o.$s);case"ss":return a.s(o.$s,2,"0");case"SSS":return a.s(o.$ms,3,"0");case"Z":return m}return null}(P)||m.replace(":","")})},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(t,o,n){var h,m=this,y=a.p(o),F=$(t),j=(F.utcOffset()-this.utcOffset())*f,C=this-F,z=function(){return a.m(m,F)};switch(y){case q:h=z()/12;break;case L:h=z();break;case A:h=z()/3;break;case d:h=(C-j)/6048e5;break;case p:h=(C-j)/864e5;break;case w:h=C/T;break;case g:h=C/f;break;case x:h=C/S;break;default:h=C}return n?h:a.a(h)},r.daysInMonth=function(){return this.endOf(L).$D},r.$locale=function(){return l[this.$L]},r.locale=function(t,o){if(!t)return this.$L;var n=this.clone(),h=v(t,o,!0);return h&&(n.$L=h),n},r.clone=function(){return a.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},s}(),b=O.prototype;return $.prototype=b,[["$ms",D],["$s",x],["$m",g],["$H",w],["$W",p],["$M",L],["$y",q],["$D",M]].forEach(function(s){b[s[1]]=function(r){return this.$g(r,s[0],s[1])}}),$.extend=function(s,r){return s.$i||(s(r,O,$),s.$i=!0),$},$.locale=v,$.isDayjs=e,$.unix=function(s){return $(1e3*s)},$.en=l[H],$.Ls=l,$.p={},$})}(tt)),tt.exports}var wt=gt();const Z=J(wt);var et={exports:{}},Lt=et.exports,$t;function Ot(){return $t||($t=1,function(B,W){(function(S,f){B.exports=f()})(Lt,function(){var S={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(f,T,D){var x=T.prototype,g=x.format;D.en.formats=S,x.format=function(w){w===void 0&&(w="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,d=function(L,A){return L.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(q,M,k){var u=k&&k.toUpperCase();return M||A[k]||S[k]||A[u].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(c,_,Y){return _||Y.slice(1)})})}(w,p===void 0?{}:p);return g.call(this,d)}}})}(et)),et.exports}var Tt=Ot();const bt=J(Tt);var rt={exports:{}},kt=rt.exports,pt;function Ht(){return pt||(pt=1,function(B,W){(function(S,f){B.exports=f()})(kt,function(){return function(S,f,T){S=S||{};var D=f.prototype,x={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function g(p,d,L,A){return D.fromToBase(p,d,L,A)}T.en.relativeTime=x,D.fromToBase=function(p,d,L,A,q){for(var M,k,u,c=L.$locale().relativeTime||x,_=S.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],Y=_.length,I=0;I<Y;I+=1){var H=_[I];H.d&&(M=A?T(p).diff(L,H.d,!0):L.diff(p,H.d,!0));var l=(S.rounding||Math.round)(Math.abs(M));if(u=M>0,l<=H.r||!H.r){l<=1&&I>0&&(H=_[I-1]);var i=c[H.l];q&&(l=q(""+l)),k=typeof i=="string"?i.replace("%d",l):i(l,d,H.l,u);break}}if(d)return k;var e=u?c.future:c.past;return typeof e=="function"?e(k):e.replace("%s",k)},D.to=function(p,d){return g(p,d,this,!0)},D.from=function(p,d){return g(p,d,this)};var w=function(p){return p.$u?T.utc():T()};D.toNow=function(p){return this.to(w(this),p)},D.fromNow=function(p){return this.from(w(this),p)}}})}(rt)),rt.exports}var At=Ht();const Bt=J(At);var nt={exports:{}},Ft=nt.exports,Mt;function qt(){return Mt||(Mt=1,function(B,W){(function(S,f){B.exports=f()})(Ft,function(){return function(S,f,T){f.prototype.isToday=function(){var D="YYYY-MM-DD",x=T();return this.format(D)===x.format(D)}}})}(nt)),nt.exports}var jt=qt();const It=J(jt);var st={exports:{}},Ct=st.exports,vt;function Pt(){return vt||(vt=1,function(B,W){(function(S,f){B.exports=f()})(Ct,function(){return function(S,f,T){f.prototype.isBetween=function(D,x,g,w){var p=T(D),d=T(x),L=(w=w||"()")[0]==="(",A=w[1]===")";return(L?this.isAfter(p,g):!this.isBefore(p,g))&&(A?this.isBefore(d,g):!this.isAfter(d,g))||(L?this.isBefore(p,g):!this.isAfter(p,g))&&(A?this.isAfter(d,g):!this.isBefore(d,g))}}})}(st)),st.exports}var zt=Pt();const Et=J(zt);var it={exports:{}},Rt=it.exports,yt;function Zt(){return yt||(yt=1,function(B,W){(function(S,f){B.exports=f()})(Rt,function(){return function(S,f){f.prototype.isSameOrBefore=function(T,D){return this.isSame(T,D)||this.isBefore(T,D)}}})}(it)),it.exports}var Wt=Zt();const Nt=J(Wt);var ot={exports:{}},Ut=ot.exports,_t;function Jt(){return _t||(_t=1,function(B,W){(function(S,f){B.exports=f()})(Ut,function(){return function(S,f){f.prototype.isSameOrAfter=function(T,D){return this.isSame(T,D)||this.isAfter(T,D)}}})}(ot)),ot.exports}var Vt=Jt();const Qt=J(Vt);var at={exports:{}},Xt=at.exports,Dt;function Gt(){return Dt||(Dt=1,function(B,W){(function(S,f){B.exports=f()})(Xt,function(){var S,f,T=1e3,D=6e4,x=36e5,g=864e5,w=/\[([^\]]+)]|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,p=31536e6,d=2628e6,L=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,A={years:p,months:d,days:g,hours:x,minutes:D,seconds:T,milliseconds:1,weeks:6048e5},q=function(l){return l instanceof I},M=function(l,i,e){return new I(l,e,i.$l)},k=function(l){return f.p(l)+"s"},u=function(l){return l<0},c=function(l){return u(l)?Math.ceil(l):Math.floor(l)},_=function(l){return Math.abs(l)},Y=function(l,i){return l?u(l)?{negative:!0,format:""+_(l)+i}:{negative:!1,format:""+l+i}:{negative:!1,format:""}},I=function(){function l(e,v,$){var a=this;if(this.$d={},this.$l=$,e===void 0&&(this.$ms=0,this.parseFromMilliseconds()),v)return M(e*A[k(v)],this);if(typeof e=="number")return this.$ms=e,this.parseFromMilliseconds(),this;if(typeof e=="object")return Object.keys(e).forEach(function(s){a.$d[k(s)]=e[s]}),this.calMilliseconds(),this;if(typeof e=="string"){var O=e.match(L);if(O){var b=O.slice(2).map(function(s){return s!=null?Number(s):0});return this.$d.years=b[0],this.$d.months=b[1],this.$d.weeks=b[2],this.$d.days=b[3],this.$d.hours=b[4],this.$d.minutes=b[5],this.$d.seconds=b[6],this.calMilliseconds(),this}}return this}var i=l.prototype;return i.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce(function(v,$){return v+(e.$d[$]||0)*A[$]},0)},i.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=c(e/p),e%=p,this.$d.months=c(e/d),e%=d,this.$d.days=c(e/g),e%=g,this.$d.hours=c(e/x),e%=x,this.$d.minutes=c(e/D),e%=D,this.$d.seconds=c(e/T),e%=T,this.$d.milliseconds=e},i.toISOString=function(){var e=Y(this.$d.years,"Y"),v=Y(this.$d.months,"M"),$=+this.$d.days||0;this.$d.weeks&&($+=7*this.$d.weeks);var a=Y($,"D"),O=Y(this.$d.hours,"H"),b=Y(this.$d.minutes,"M"),s=this.$d.seconds||0;this.$d.milliseconds&&(s+=this.$d.milliseconds/1e3,s=Math.round(1e3*s)/1e3);var r=Y(s,"S"),t=e.negative||v.negative||a.negative||O.negative||b.negative||r.negative,o=O.format||b.format||r.format?"T":"",n=(t?"-":"")+"P"+e.format+v.format+a.format+o+O.format+b.format+r.format;return n==="P"||n==="-P"?"P0D":n},i.toJSON=function(){return this.toISOString()},i.format=function(e){var v=e||"YYYY-MM-DDTHH:mm:ss",$={Y:this.$d.years,YY:f.s(this.$d.years,2,"0"),YYYY:f.s(this.$d.years,4,"0"),M:this.$d.months,MM:f.s(this.$d.months,2,"0"),D:this.$d.days,DD:f.s(this.$d.days,2,"0"),H:this.$d.hours,HH:f.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:f.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:f.s(this.$d.seconds,2,"0"),SSS:f.s(this.$d.milliseconds,3,"0")};return v.replace(w,function(a,O){return O||String($[a])})},i.as=function(e){return this.$ms/A[k(e)]},i.get=function(e){var v=this.$ms,$=k(e);return $==="milliseconds"?v%=1e3:v=$==="weeks"?c(v/A[$]):this.$d[$],v||0},i.add=function(e,v,$){var a;return a=v?e*A[k(v)]:q(e)?e.$ms:M(e,this).$ms,M(this.$ms+a*($?-1:1),this)},i.subtract=function(e,v){return this.add(e,v,!0)},i.locale=function(e){var v=this.clone();return v.$l=e,v},i.clone=function(){return M(this.$ms,this)},i.humanize=function(e){return S().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},i.valueOf=function(){return this.asMilliseconds()},i.milliseconds=function(){return this.get("milliseconds")},i.asMilliseconds=function(){return this.as("milliseconds")},i.seconds=function(){return this.get("seconds")},i.asSeconds=function(){return this.as("seconds")},i.minutes=function(){return this.get("minutes")},i.asMinutes=function(){return this.as("minutes")},i.hours=function(){return this.get("hours")},i.asHours=function(){return this.as("hours")},i.days=function(){return this.get("days")},i.asDays=function(){return this.as("days")},i.weeks=function(){return this.get("weeks")},i.asWeeks=function(){return this.as("weeks")},i.months=function(){return this.get("months")},i.asMonths=function(){return this.as("months")},i.years=function(){return this.get("years")},i.asYears=function(){return this.as("years")},l}(),H=function(l,i,e){return l.add(i.years()*e,"y").add(i.months()*e,"M").add(i.days()*e,"d").add(i.hours()*e,"h").add(i.minutes()*e,"m").add(i.seconds()*e,"s").add(i.milliseconds()*e,"ms")};return function(l,i,e){S=e,f=e().$utils(),e.duration=function(a,O){var b=e.locale();return M(a,{$l:b},O)},e.isDuration=q;var v=i.prototype.add,$=i.prototype.subtract;i.prototype.add=function(a,O){return q(a)?H(this,a,1):v.bind(this)(a,O)},i.prototype.subtract=function(a,O){return q(a)?H(this,a,-1):$.bind(this)(a,O)}}})}(at)),at.exports}var Kt=Gt();const te=J(Kt);var ut={exports:{}},ee=ut.exports,Yt;function re(){return Yt||(Yt=1,function(B,W){(function(S,f){B.exports=f()})(ee,function(){var S={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},f=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,T=/\d/,D=/\d\d/,x=/\d\d?/,g=/\d*[^-_:/,()\s\d]+/,w={},p=function(u){return(u=+u)+(u>68?1900:2e3)},d=function(u){return function(c){this[u]=+c}},L=[/[+-]\d\d:?(\d\d)?|Z/,function(u){(this.zone||(this.zone={})).offset=function(c){if(!c||c==="Z")return 0;var _=c.match(/([+-]|\d\d)/g),Y=60*_[1]+(+_[2]||0);return Y===0?0:_[0]==="+"?-Y:Y}(u)}],A=function(u){var c=w[u];return c&&(c.indexOf?c:c.s.concat(c.f))},q=function(u,c){var _,Y=w.meridiem;if(Y){for(var I=1;I<=24;I+=1)if(u.indexOf(Y(I,0,c))>-1){_=I>12;break}}else _=u===(c?"pm":"PM");return _},M={A:[g,function(u){this.afternoon=q(u,!1)}],a:[g,function(u){this.afternoon=q(u,!0)}],Q:[T,function(u){this.month=3*(u-1)+1}],S:[T,function(u){this.milliseconds=100*+u}],SS:[D,function(u){this.milliseconds=10*+u}],SSS:[/\d{3}/,function(u){this.milliseconds=+u}],s:[x,d("seconds")],ss:[x,d("seconds")],m:[x,d("minutes")],mm:[x,d("minutes")],H:[x,d("hours")],h:[x,d("hours")],HH:[x,d("hours")],hh:[x,d("hours")],D:[x,d("day")],DD:[D,d("day")],Do:[g,function(u){var c=w.ordinal,_=u.match(/\d+/);if(this.day=_[0],c)for(var Y=1;Y<=31;Y+=1)c(Y).replace(/\[|\]/g,"")===u&&(this.day=Y)}],w:[x,d("week")],ww:[D,d("week")],M:[x,d("month")],MM:[D,d("month")],MMM:[g,function(u){var c=A("months"),_=(A("monthsShort")||c.map(function(Y){return Y.slice(0,3)})).indexOf(u)+1;if(_<1)throw new Error;this.month=_%12||_}],MMMM:[g,function(u){var c=A("months").indexOf(u)+1;if(c<1)throw new Error;this.month=c%12||c}],Y:[/[+-]?\d+/,d("year")],YY:[D,function(u){this.year=p(u)}],YYYY:[/\d{4}/,d("year")],Z:L,ZZ:L};function k(u){var c,_;c=u,_=w&&w.formats;for(var Y=(u=c.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,a,O){var b=O&&O.toUpperCase();return a||_[O]||S[O]||_[b].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(s,r,t){return r||t.slice(1)})})).match(f),I=Y.length,H=0;H<I;H+=1){var l=Y[H],i=M[l],e=i&&i[0],v=i&&i[1];Y[H]=v?{regex:e,parser:v}:l.replace(/^\[|\]$/g,"")}return function($){for(var a={},O=0,b=0;O<I;O+=1){var s=Y[O];if(typeof s=="string")b+=s.length;else{var r=s.regex,t=s.parser,o=$.slice(b),n=r.exec(o)[0];t.call(a,n),$=$.replace(n,"")}}return function(h){var m=h.afternoon;if(m!==void 0){var y=h.hours;m?y<12&&(h.hours+=12):y===12&&(h.hours=0),delete h.afternoon}}(a),a}}return function(u,c,_){_.p.customParseFormat=!0,u&&u.parseTwoDigitYear&&(p=u.parseTwoDigitYear);var Y=c.prototype,I=Y.parse;Y.parse=function(H){var l=H.date,i=H.utc,e=H.args;this.$u=i;var v=e[1];if(typeof v=="string"){var $=e[2]===!0,a=e[3]===!0,O=$||a,b=e[2];a&&(b=e[2]),w=this.$locale(),!$&&b&&(w=_.Ls[b]),this.$d=function(o,n,h,m){try{if(["x","X"].indexOf(n)>-1)return new Date((n==="X"?1e3:1)*o);var y=k(n)(o),F=y.year,j=y.month,C=y.day,z=y.hours,V=y.minutes,N=y.seconds,X=y.milliseconds,R=y.zone,P=y.week,E=new Date,U=C||(F||j?1:E.getDate()),Q=F||E.getFullYear(),G=0;F&&!j||(G=j>0?j-1:E.getMonth());var K,ft=z||0,ht=V||0,dt=N||0,mt=X||0;return R?new Date(Date.UTC(Q,G,U,ft,ht,dt,mt+60*R.offset*1e3)):h?new Date(Date.UTC(Q,G,U,ft,ht,dt,mt)):(K=new Date(Q,G,U,ft,ht,dt,mt),P&&(K=m(K).week(P).toDate()),K)}catch{return new Date("")}}(l,v,i,_),this.init(),b&&b!==!0&&(this.$L=this.locale(b).$L),O&&l!=this.format(v)&&(this.$d=new Date("")),w={}}else if(v instanceof Array)for(var s=v.length,r=1;r<=s;r+=1){e[1]=v[r-1];var t=_.apply(this,e);if(t.isValid()){this.$d=t.$d,this.$L=t.$L,this.init();break}r===s&&(this.$d=new Date(""))}else I.call(this,H)}}})}(ut)),ut.exports}var ne=re();const se=J(ne);var ct={exports:{}},ie=ct.exports,xt;function oe(){return xt||(xt=1,function(B,W){(function(S,f){B.exports=f(gt())})(ie,function(S){function f(M){return M&&typeof M=="object"&&"default"in M?M:{default:M}}var T=f(S),D="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),x="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),g="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),w="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),p=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function d(M,k,u){var c,_;return u==="m"?k?"минута":"минуту":M+" "+(c=+M,_={mm:k?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[u].split("_"),c%10==1&&c%100!=11?_[0]:c%10>=2&&c%10<=4&&(c%100<10||c%100>=20)?_[1]:_[2])}var L=function(M,k){return p.test(k)?D[M.month()]:x[M.month()]};L.s=x,L.f=D;var A=function(M,k){return p.test(k)?g[M.month()]:w[M.month()]};A.s=w,A.f=g;var q={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:L,monthsShort:A,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:d,mm:d,h:"час",hh:d,d:"день",dd:d,M:"месяц",MM:d,y:"год",yy:d},ordinal:function(M){return M},meridiem:function(M){return M<4?"ночи":M<12?"утра":M<17?"дня":"вечера"}};return T.default.locale(q,null,!0),q})}(ct)),ct.exports}oe();Z.extend(bt);Z.extend(Bt);Z.extend(It);Z.extend(Et);Z.extend(Nt);Z.extend(Qt);Z.extend(te);Z.extend(se);Z.locale("ru");exports.dayjs=Z;
|