@roudanio/awesome-comment 0.10.6 → 0.10.7
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/awesome-comment.js +22 -22
- package/dist/{vendor-auth0-FyrIO3oS.js → vendor-auth0-DkqbqvnH.js} +1 -1
- package/dist/{vendor-i18n--NfXv8rP.js → vendor-i18n-B4UB934p.js} +34 -34
- package/dist/{vendor-lucide-C7toM1hZ.js → vendor-lucide-Cl8oS5sQ.js} +1 -1
- package/dist/{vendor-pinia-DRSupkuV.js → vendor-pinia-Dzo8X_0B.js} +43 -43
- package/dist/{vendor-vue-njoJvG0v.js → vendor-vue-BTtW1k2s.js} +375 -388
- package/package.json +7 -2
- package/vitest.config.ts +15 -0
package/dist/awesome-comment.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { i as N, r as $,
|
|
2
|
-
import { d as Te, c as Fe } from "./vendor-pinia-
|
|
3
|
-
import { E as Ke, G as Le } from "./vendor-auth0-
|
|
4
|
-
import { u as U, c as ze } from "./vendor-i18n
|
|
1
|
+
import { i as N, r as $, c as Y, w as G, d as D, o as se, q as de, v, x as ce, y as A, z as Me, A as I, B as m, C as Pe, D as we, E, G as me, F as M, H, I as f, J as j, f as B, K as je, L as Be, M as De, N as Se, O as Ue } from "./vendor-vue-BTtW1k2s.js";
|
|
2
|
+
import { d as Te, c as Fe } from "./vendor-pinia-Dzo8X_0B.js";
|
|
3
|
+
import { E as Ke, G as Le } from "./vendor-auth0-DkqbqvnH.js";
|
|
4
|
+
import { u as U, c as ze } from "./vendor-i18n-B4UB934p.js";
|
|
5
5
|
import { o as Ve } from "./vendor-lodash-CKuyBgAy.js";
|
|
6
|
-
import { T as Ge, a as He, R as Je, B as We } from "./vendor-lucide-
|
|
6
|
+
import { T as Ge, a as He, R as Je, B as We } from "./vendor-lucide-Cl8oS5sQ.js";
|
|
7
7
|
import { d as Ye } from "./vendor-marked-B6IoMkOX.js";
|
|
8
|
-
const
|
|
9
|
-
de:
|
|
10
|
-
en:
|
|
8
|
+
const qe = { admin: "Admin", anonymous: "Anonym", approve_hint: "Wir werden Ihren Kommentar innerhalb von 24 Stunden beantworten, ohne Ihre E-Mail zu spammen. Schauen Sie bitte bald wieder vorbei. :)", discussion: "Diskussion", edit: "Bearbeiten", load_more: "Mehr laden", login: "Anmelden", logout: "Abmelden", placeholder: "Schreiben Sie ein Kommentar...", post_comment: "Kommentar absenden", post_reply: "Antwort absenden", reply: "Antwort", reply_to: "Antwort auf", save_editing: "Speichern", ui_texts: ["Seien Sie der Erste, der die Diskussion beginnt!", "Beteiligen Sie sich an der Konversation (#)", "Laden...", "Kommentare laden"], your_comment: "Dein Kommentar" }, Ze = { admin: "Admin", anonymous: "Anonymous", approve_hint: "We’ll reply to your comment within 24 hours without spamming your email, so please check back soon :)", discussion: "Discussion", edit: "Edit", load_more: "Load More", login: "LOGIN", login_or_verify: "Please log in or complete the verification to post.", logout: "Logout", placeholder: "Write a comment...", post_comment: "POST COMMENT", post_reply: "POST REPLY", reply: "Reply", reply_to: "reply to", save_editing: "Save", ui_texts: ["Be the first to start the discussion!", "Join the Conversation (#)", "Loading...", "Load Comments"], your_comment: "Your comment" }, Xe = { admin: "Administrador", anonymous: "Anónimo", approve_hint: "los comentarios son normalmente aprobados dentro de 24 horas", discussion: "Discusión", edit: "Editar", load_more: "Cargar Más", login: "INICIAR SESIÓN", logout: "Cerrar Sesión", placeholder: "Escribe un comentario...", post_comment: "PUBLICAR COMENTARIO", post_reply: "PUBLICAR RESPUESTA", reply: "Responder", reply_to: "Responder a", save_editing: "Guardar", ui_texts: ["¡Sé el primero en iniciar la discusión!", "Únete a la Conversación (#)", "Cargando...", "Cargar Comentarios"], your_comment: "Tu comentario" }, Qe = { admin: "Admin", anonymous: "Anonyme", approve_hint: "Nous répondrons à votre commentaire dans les 24 heures sans vous spammer par e-mail, alors revenez bientôt :)", discussion: "Discussion", edit: "Modifier", load_more: "Charger plus", login: "CONNEXION", logout: "Déconnexion", placeholder: "Écrivez un commentaire...", post_comment: "POSTER UN COMMENTAIRE", post_reply: "POSTER UNE RÉPONSE", reply: "Répondre", reply_to: "répondre à", save_editing: "Enregistrer", ui_texts: ["Soyez le premier à lancer la discussion !", "Rejoignez la conversation (#)", "Chargement...", "Charger les commentaires"], your_comment: "Votre commentaire" }, et = { admin: "Admin", anonymous: "Anonim", approve_hint: "komentar biasanya disetujui dalam waktu 24 jam", discussion: "Diskusi", edit: "Edit", load_more: "Muat Lebih Banyak", login: "MASUK", logout: "Keluar", placeholder: "Tulis komentar...", post_comment: "KIRIM KOMENTAR", post_reply: "KIRIM BALASAN", reply: "Balas", reply_to: "balas ke", save_editing: "Simpan", your_comment: "Komentar Anda" }, tt = { admin: "Amministratore", anonymous: "Anonimo", approve_hint: "i commenti vengono normalmente approvati entro 24 ore", discussion: "Discussione", edit: "Modifica", load_more: "Carica Altri", login: "ACCEDI", logout: "Esci", placeholder: "Scrivi un commento...", post_comment: "INVIA COMMENTO", post_reply: "INVIA RISPOSTA", reply: "Risposta", reply_to: "rispondi a", save_editing: "Salva", your_comment: "Il tuo commento" }, nt = { admin: "管理者", anonymous: "匿名", approve_hint: "コメントは通常24時間以内に承認されます", discussion: "ディスカッション", edit: "編集", load_more: "もっと読み込む", login: "ログイン", logout: "ログアウト", placeholder: "コメントを書く...", post_comment: "コメントを投稿", post_reply: "返信を投稿", reply: "返信", reply_to: "返信先", save_editing: "保存", your_comment: "あなたのコメント" }, ot = { admin: "관리자", anonymous: "익명", approve_hint: "댓글은 보통 24시간 내에 승인됩니다", discussion: "토론", edit: "편집", load_more: "더 보기", login: "로그인", logout: "로그아웃", placeholder: "댓글을 입력하세요...", post_comment: "댓글 게시", post_reply: "답글 게시", reply: "답장", reply_to: "답장 대상", save_editing: "저장", your_comment: "당신의 댓글" }, st = { admin: "Administrador", anonymous: "Anônimo", approve_hint: "os comentários são normalmente aprovados dentro de 24 horas", discussion: "Discussão", edit: "Editar", load_more: "Carregar Mais", login: "ENTRAR", logout: "Sair", placeholder: "Escreva um comentário...", post_comment: "PUBLICAR COMENTÁRIO", post_reply: "PUBLICAR RESPOSTA", reply: "Responder", reply_to: "responder a", save_editing: "Salvar", your_comment: "Seu comentário" }, at = { admin: "แอดมิน", anonymous: "นิรนาม", approve_hint: "โดยปกติความคิดเห็นจะได้รับการอนุมัติภายใน 24 ชั่วโมง", discussion: "การอภิปราย", edit: "แก้ไข", load_more: "โหลดเพิ่ม", login: "ลงชื่อเข้าใช้", logout: "ลงชื่อออก", placeholder: "เขียนความคิดเห็น...", post_comment: "โพสต์ความคิดเห็น", post_reply: "โพสต์การตอบกลับ", reply: "ตอบกลับ", reply_to: "ตอบกลับถึง", save_editing: "บันทึก", ui_texts: ["เป็นคนแรกที่เริ่มการอภิปราย", "เข้าร่วมการสนทนา (#)", "กำลังโหลด...", "โหลดความคิดเห็น"], your_comment: "ความคิดเห็นของคุณ" }, rt = { admin: "管理員", anonymous: "匿名", approve_hint: "評論通常在24小時內獲得批準,並且每壹條評論都會獲得回復", discussion: "討論", edit: "修改", load_more: "加載更多", login: "登錄", login_or_verify: "請登錄或完成驗證碼後再發表評論。", logout: "登出", placeholder: "寫評論...", post_comment: "發表評論", post_reply: "發表回複", reply: "回複", reply_to: "回複給", save_editing: "保存", your_comment: "您的評論" }, it = { admin: "管理员", anonymous: "匿名", approve_hint: "评论通常在24小时内公开(我们也会回复您)", discussion: "讨论", edit: "编辑", load_more: "加载更多", login: "登录", login_or_verify: "请登录或完成验证码后再发表评论。", logout: "登出", placeholder: "写评论...", post_comment: "发表评论", post_reply: "发表回复", reply: "回复", reply_to: "回复给", save_editing: "保存", your_comment: "您的评论" }, ke = {
|
|
9
|
+
de: qe,
|
|
10
|
+
en: Ze,
|
|
11
11
|
es: Xe,
|
|
12
12
|
fr: Qe,
|
|
13
13
|
id: et,
|
|
@@ -198,16 +198,16 @@ const pe = "awesome-comment-comments", Ie = localStorage.getItem(pe), V = Ie ? J
|
|
|
198
198
|
c.value = Object.keys(h).length > 20, c.value && delete h[Object.keys(h)[0]], Object.assign(l.value, h), i.value = !0, a.value = !1;
|
|
199
199
|
}
|
|
200
200
|
function _(b, h, x, y = te.Pending, w, C) {
|
|
201
|
-
const { sub: F = "", name: K = "", picture:
|
|
201
|
+
const { sub: F = "", name: K = "", picture: q = "", email: ae = "", nickname: Z = "" } = x, O = {
|
|
202
202
|
id: b,
|
|
203
203
|
post_id: e,
|
|
204
204
|
postId: e,
|
|
205
205
|
content: h,
|
|
206
206
|
createdAt: /* @__PURE__ */ new Date(),
|
|
207
207
|
user: {
|
|
208
|
-
avatar:
|
|
208
|
+
avatar: q,
|
|
209
209
|
email: ae,
|
|
210
|
-
name:
|
|
210
|
+
name: Z || K
|
|
211
211
|
},
|
|
212
212
|
user_id: F,
|
|
213
213
|
userId: F,
|
|
@@ -440,7 +440,7 @@ const he = Te("auth", () => {
|
|
|
440
440
|
},
|
|
441
441
|
emits: ["close", "update"],
|
|
442
442
|
setup(e, { emit: s }) {
|
|
443
|
-
const t = e, n = s, i = he(), d = J(), { t: u } = U(), l = N("ApiBaseUrl"), o = N("Auth0Domain"), r = N("siteId"), a = N("TurnstileSiteKey"), c = N("AutoFocus"), k = "0.10.
|
|
443
|
+
const t = e, n = s, i = he(), d = J(), { t: u } = U(), l = N("ApiBaseUrl"), o = N("Auth0Domain"), r = N("siteId"), a = N("TurnstileSiteKey"), c = N("AutoFocus"), k = "0.10.7", g = $(), _ = $(), p = $(!1), S = $(t.content || ""), b = $(""), h = $(!1), x = $(""), y = $(""), w = Y(() => !i.isAuthenticated);
|
|
444
444
|
let C = null;
|
|
445
445
|
function F() {
|
|
446
446
|
if (typeof window > "u") return Promise.reject(new Error("Turnstile 仅支持浏览器环境"));
|
|
@@ -485,7 +485,7 @@ const he = Te("auth", () => {
|
|
|
485
485
|
});
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function q() {
|
|
489
489
|
if (!y.value || !window.turnstile) {
|
|
490
490
|
x.value = "";
|
|
491
491
|
return;
|
|
@@ -506,7 +506,7 @@ const he = Te("auth", () => {
|
|
|
506
506
|
email: ""
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
|
-
async function
|
|
509
|
+
async function Z(T) {
|
|
510
510
|
if (!i.isAuthenticated) {
|
|
511
511
|
if (!a)
|
|
512
512
|
return O();
|
|
@@ -562,7 +562,7 @@ const he = Te("auth", () => {
|
|
|
562
562
|
return;
|
|
563
563
|
}
|
|
564
564
|
const { id: ye, status: be } = ie.data, _e = ae();
|
|
565
|
-
t.ancestorId || t.parentId ? d.addComment(ye, L, _e, be, t.ancestorId, t.parentId) : t.currentId ? n("update", L) : d.addComment(ye, L, _e, be), S.value = "", n("close"), w.value && (
|
|
565
|
+
t.ancestorId || t.parentId ? d.addComment(ye, L, _e, be, t.ancestorId, t.parentId) : t.currentId ? n("update", L) : d.addComment(ye, L, _e, be), S.value = "", n("close"), w.value && (q(), h.value = !1);
|
|
566
566
|
} catch (R) {
|
|
567
567
|
b.value = R.message || String(R);
|
|
568
568
|
}
|
|
@@ -572,7 +572,7 @@ const he = Te("auth", () => {
|
|
|
572
572
|
i.login();
|
|
573
573
|
}
|
|
574
574
|
function P(T) {
|
|
575
|
-
lt(T, "Enter") &&
|
|
575
|
+
lt(T, "Enter") && Z(T);
|
|
576
576
|
}
|
|
577
577
|
function re() {
|
|
578
578
|
n("close");
|
|
@@ -587,11 +587,11 @@ const he = Te("auth", () => {
|
|
|
587
587
|
), G(
|
|
588
588
|
() => i.isAuthenticated,
|
|
589
589
|
(T) => {
|
|
590
|
-
T && (h.value = !1,
|
|
590
|
+
T && (h.value = !1, q());
|
|
591
591
|
}
|
|
592
592
|
), (T, L) => (f(), v("form", {
|
|
593
593
|
class: "mb-6",
|
|
594
|
-
onSubmit: ce(
|
|
594
|
+
onSubmit: ce(Z, ["prevent"])
|
|
595
595
|
}, [
|
|
596
596
|
A("div", At, [
|
|
597
597
|
A("label", It, I(m(u)("your_comment")), 1),
|
|
@@ -687,7 +687,7 @@ const he = Te("auth", () => {
|
|
|
687
687
|
},
|
|
688
688
|
body: JSON.stringify({
|
|
689
689
|
like: a,
|
|
690
|
-
postId: t.comment.postId,
|
|
690
|
+
postId: t.comment.postId || i.postId,
|
|
691
691
|
siteId: l
|
|
692
692
|
})
|
|
693
693
|
})).json();
|
|
@@ -791,7 +791,7 @@ function Gt(e) {
|
|
|
791
791
|
const Ht = { class: "flex items-center gap-2 text-sm text-base-content dark:text-white" }, Jt = { class: "ac-avatar" }, Wt = {
|
|
792
792
|
key: 0,
|
|
793
793
|
class: "w-6 h-6"
|
|
794
|
-
}, Yt = ["alt", "src"],
|
|
794
|
+
}, Yt = ["alt", "src"], qt = { class: "text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6" }, Zt = ["data-tip"], Xt = ["href"], Qt = ["datetime", "title"], en = /* @__PURE__ */ D({
|
|
795
795
|
__name: "comment-header",
|
|
796
796
|
props: {
|
|
797
797
|
comment: {},
|
|
@@ -821,7 +821,7 @@ const Ht = { class: "flex items-center gap-2 text-sm text-base-content dark:text
|
|
|
821
821
|
style: je({ "background-color": m(Gt)(d.value) }),
|
|
822
822
|
class: "avatar-char rounded-full w-6 h-6 text-center"
|
|
823
823
|
}, [
|
|
824
|
-
A("span",
|
|
824
|
+
A("span", qt, I(d.value.substring(0, 1)), 1)
|
|
825
825
|
], 4))
|
|
826
826
|
]),
|
|
827
827
|
H(" " + I(d.value) + " ", 1),
|
|
@@ -834,7 +834,7 @@ const Ht = { class: "flex items-center gap-2 text-sm text-base-content dark:text
|
|
|
834
834
|
class: "block",
|
|
835
835
|
size: 18
|
|
836
836
|
})
|
|
837
|
-
], 8,
|
|
837
|
+
], 8, Zt)) : E("", !0),
|
|
838
838
|
A("a", {
|
|
839
839
|
href: u(e.comment.id),
|
|
840
840
|
class: "no-underline hover:underline hover:decoration-green-middle"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as L, a as
|
|
2
|
-
import { e as wt,
|
|
1
|
+
import { i as L, m as M, a as h, b as d, D as Ve, c as y, d as Z, e as U, u as H, f as ee, g as ht, h as P, j as N, k as q, l as te, n as kt, o as p, p as de, q as Ee, r as G, s as Q, A as Ot, t as Nt, v as yt, N as pt, w as xe, x as Pt, y as Ie, C as Mt, z as Fe, B as Le, M as Te, E as Re, F as ve, G as he, H as ke, I as St, J as Dt, K as Ct, L as At, O as Wt, P as Ut, Q as j, R as Vt, S as xt, T as $t } from "./vendor-misc-CwXjvmXA.js";
|
|
2
|
+
import { e as wt, r as Ht, s as Yt, c as Y, w as ne, a as jt, d as ie, h as $e, g as Gt, F as we, i as Bt, o as Xt, b as Jt, f as zt, T as Kt } from "./vendor-vue-BTtW1k2s.js";
|
|
3
3
|
const qt = "11.2.8";
|
|
4
4
|
function Qt() {
|
|
5
5
|
typeof __VUE_I18N_FULL_INSTALL__ != "boolean" && (j().__VUE_I18N_FULL_INSTALL__ = !0), typeof __VUE_I18N_LEGACY_API__ != "boolean" && (j().__VUE_I18N_LEGACY_API__ = !0), typeof __INTLIFY_DROP_MESSAGE_COMPILER__ != "boolean" && (j().__INTLIFY_DROP_MESSAGE_COMPILER__ = !1), typeof __INTLIFY_PROD_DEVTOOLS__ != "boolean" && (j().__INTLIFY_PROD_DEVTOOLS__ = !1);
|
|
@@ -20,8 +20,8 @@ const R = {
|
|
|
20
20
|
// unexpected error
|
|
21
21
|
UNEXPECTED_ERROR: 32
|
|
22
22
|
};
|
|
23
|
-
function
|
|
24
|
-
return
|
|
23
|
+
function k(e, ...t) {
|
|
24
|
+
return ht(e, null, void 0);
|
|
25
25
|
}
|
|
26
26
|
const re = /* @__PURE__ */ M("__translateVNode"), se = /* @__PURE__ */ M("__datetimeParts"), le = /* @__PURE__ */ M("__numberParts"), He = M("__setPluralRules"), Ye = /* @__PURE__ */ M("__injectWithOption"), oe = /* @__PURE__ */ M("__dispose");
|
|
27
27
|
function B(e) {
|
|
@@ -51,7 +51,7 @@ function B(e) {
|
|
|
51
51
|
return e;
|
|
52
52
|
}
|
|
53
53
|
function ue(e, t) {
|
|
54
|
-
const { messages: c, __i18n: l, messageResolver: a, flatJson: r } = t, s =
|
|
54
|
+
const { messages: c, __i18n: l, messageResolver: a, flatJson: r } = t, s = h(c) ? c : y(l) ? N() : { [e]: N() };
|
|
55
55
|
if (y(l) && l.forEach((i) => {
|
|
56
56
|
if ("locale" in i && "resource" in i) {
|
|
57
57
|
const { locale: u, resource: m } = i;
|
|
@@ -108,17 +108,17 @@ const ea = /* @__NO_SIDE_EFFECTS__ */ () => {
|
|
|
108
108
|
return e && (t = je(e)[Ne]) ? { [Ne]: t } : null;
|
|
109
109
|
};
|
|
110
110
|
function _e(e = {}) {
|
|
111
|
-
const { __root: t, __injectWithOption: c } = e, l = t === void 0, a = e.flatJson, r = ee ?
|
|
111
|
+
const { __root: t, __injectWithOption: c } = e, l = t === void 0, a = e.flatJson, r = ee ? Ht : Yt;
|
|
112
112
|
let s = L(e.inheritLocale) ? e.inheritLocale : !0;
|
|
113
113
|
const i = r(
|
|
114
114
|
// prettier-ignore
|
|
115
115
|
t && s ? t.locale.value : d(e.locale) ? e.locale : Ve
|
|
116
116
|
), u = r(
|
|
117
117
|
// prettier-ignore
|
|
118
|
-
t && s ? t.fallbackLocale.value : d(e.fallbackLocale) || y(e.fallbackLocale) ||
|
|
119
|
-
), m = r(ue(i.value, e)), b = r(
|
|
118
|
+
t && s ? t.fallbackLocale.value : d(e.fallbackLocale) || y(e.fallbackLocale) || h(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : i.value
|
|
119
|
+
), m = r(ue(i.value, e)), b = r(h(e.datetimeFormats) ? e.datetimeFormats : { [i.value]: {} }), f = r(h(e.numberFormats) ? e.numberFormats : { [i.value]: {} });
|
|
120
120
|
let E = t ? t.missingWarn : L(e.missingWarn) || Z(e.missingWarn) ? e.missingWarn : !0, T = t ? t.fallbackWarn : L(e.fallbackWarn) || Z(e.fallbackWarn) ? e.fallbackWarn : !0, O = t ? t.fallbackRoot : L(e.fallbackRoot) ? e.fallbackRoot : !0, v = !!e.fallbackFormat, J = U(e.missing) ? e.missing : null, A = U(e.missing) ? Pe(e.missing) : null, S = U(e.postTranslation) ? e.postTranslation : null, V = t ? t.warnHtmlMessage : L(e.warnHtmlMessage) ? e.warnHtmlMessage : !0, x = !!e.escapeParameter;
|
|
121
|
-
const $ = t ? t.modifiers :
|
|
121
|
+
const $ = t ? t.modifiers : h(e.modifiers) ? e.modifiers : {};
|
|
122
122
|
let w = e.pluralRules || t && t.pluralRules, _;
|
|
123
123
|
_ = (() => {
|
|
124
124
|
l && Ie(null);
|
|
@@ -141,8 +141,8 @@ function _e(e = {}) {
|
|
|
141
141
|
messageCompiler: e.messageCompiler,
|
|
142
142
|
__meta: { framework: "vue" }
|
|
143
143
|
};
|
|
144
|
-
n.datetimeFormats = b.value, n.numberFormats = f.value, n.__datetimeFormatters =
|
|
145
|
-
const o =
|
|
144
|
+
n.datetimeFormats = b.value, n.numberFormats = f.value, n.__datetimeFormatters = h(_) ? _.__datetimeFormatters : void 0, n.__numberFormatters = h(_) ? _.__numberFormatters : void 0;
|
|
145
|
+
const o = kt(n);
|
|
146
146
|
return l && Ie(o), o;
|
|
147
147
|
})(), H(_, i.value, u.value);
|
|
148
148
|
function ae() {
|
|
@@ -192,7 +192,7 @@ function _e(e = {}) {
|
|
|
192
192
|
} else {
|
|
193
193
|
if (K(W))
|
|
194
194
|
return W;
|
|
195
|
-
throw
|
|
195
|
+
throw k(R.UNEXPECTED_RETURN_TYPE);
|
|
196
196
|
}
|
|
197
197
|
};
|
|
198
198
|
function ge(...n) {
|
|
@@ -201,14 +201,14 @@ function _e(e = {}) {
|
|
|
201
201
|
function nt(...n) {
|
|
202
202
|
const [o, g, I] = n;
|
|
203
203
|
if (I && !p(I))
|
|
204
|
-
throw
|
|
204
|
+
throw k(R.INVALID_ARGUMENT);
|
|
205
205
|
return ge(o, g, P({ resolvedMessage: !0 }, I || {}));
|
|
206
206
|
}
|
|
207
207
|
function rt(...n) {
|
|
208
208
|
return D((o) => Reflect.apply(ve, null, [o, ...n]), () => Re(...n), "datetime format", (o) => Reflect.apply(o.d, o, [...n]), () => Te, (o) => d(o) || y(o));
|
|
209
209
|
}
|
|
210
210
|
function st(...n) {
|
|
211
|
-
return D((o) => Reflect.apply(
|
|
211
|
+
return D((o) => Reflect.apply(ke, null, [o, ...n]), () => he(...n), "number format", (o) => Reflect.apply(o.n, o, [...n]), () => Te, (o) => d(o) || y(o));
|
|
212
212
|
}
|
|
213
213
|
function lt(n) {
|
|
214
214
|
return n.map((o) => d(o) || G(o) || L(o) ? Oe(String(o)) : o);
|
|
@@ -231,7 +231,7 @@ function _e(e = {}) {
|
|
|
231
231
|
}, () => Fe(...n), "translate", (o) => o[re](...n), (o) => [Oe(o)], (o) => y(o));
|
|
232
232
|
}
|
|
233
233
|
function it(...n) {
|
|
234
|
-
return D((o) => Reflect.apply(
|
|
234
|
+
return D((o) => Reflect.apply(ke, null, [o, ...n]), () => he(...n), "number format", (o) => o[le](...n), ye, (o) => d(o) || y(o));
|
|
235
235
|
}
|
|
236
236
|
function ut(...n) {
|
|
237
237
|
return D((o) => Reflect.apply(ve, null, [o, ...n]), () => Re(...n), "datetime format", (o) => o[se](...n), ye, (o) => d(o) || y(o));
|
|
@@ -378,9 +378,9 @@ function _e(e = {}) {
|
|
|
378
378
|
return F.datetimeFormats = qe, F.numberFormats = Qe, F.rt = nt, F.te = mt, F.tm = gt, F.d = rt, F.n = st, F.getDateTimeFormat = Et, F.setDateTimeFormat = It, F.mergeDateTimeFormat = Ft, F.getNumberFormat = Lt, F.setNumberFormat = Tt, F.mergeNumberFormat = Rt, F[Ye] = c, F[re] = ct, F[se] = ut, F[le] = it, F;
|
|
379
379
|
}
|
|
380
380
|
function ta(e) {
|
|
381
|
-
const t = d(e.locale) ? e.locale : Ve, c = d(e.fallbackLocale) || y(e.fallbackLocale) ||
|
|
381
|
+
const t = d(e.locale) ? e.locale : Ve, c = d(e.fallbackLocale) || y(e.fallbackLocale) || h(e.fallbackLocale) || e.fallbackLocale === !1 ? e.fallbackLocale : t, l = U(e.missing) ? e.missing : void 0, a = L(e.silentTranslationWarn) || Z(e.silentTranslationWarn) ? !e.silentTranslationWarn : !0, r = L(e.silentFallbackWarn) || Z(e.silentFallbackWarn) ? !e.silentFallbackWarn : !0, s = L(e.fallbackRoot) ? e.fallbackRoot : !0, i = !!e.formatFallbackMessages, u = h(e.modifiers) ? e.modifiers : {}, m = e.pluralizationRules, b = U(e.postTranslation) ? e.postTranslation : void 0, f = d(e.warnHtmlInMessage) ? e.warnHtmlInMessage !== "off" : !0, E = !!e.escapeParameterHtml, T = L(e.sync) ? e.sync : !0;
|
|
382
382
|
let O = e.messages;
|
|
383
|
-
if (
|
|
383
|
+
if (h(e.sharedMessages)) {
|
|
384
384
|
const $ = e.sharedMessages;
|
|
385
385
|
O = Object.keys($).reduce((_, z) => {
|
|
386
386
|
const ae = _[z] || (_[z] = {});
|
|
@@ -580,7 +580,7 @@ function aa(e, t, c) {
|
|
|
580
580
|
beforeCreate() {
|
|
581
581
|
const l = X();
|
|
582
582
|
if (!l)
|
|
583
|
-
throw
|
|
583
|
+
throw k(R.UNEXPECTED_ERROR);
|
|
584
584
|
const a = this.$options;
|
|
585
585
|
if (a.i18n) {
|
|
586
586
|
const r = a.i18n;
|
|
@@ -613,7 +613,7 @@ function aa(e, t, c) {
|
|
|
613
613
|
unmounted() {
|
|
614
614
|
const l = X();
|
|
615
615
|
if (!l)
|
|
616
|
-
throw
|
|
616
|
+
throw k(R.UNEXPECTED_ERROR);
|
|
617
617
|
const a = this.$i18n;
|
|
618
618
|
delete this.$t, delete this.$rt, delete this.$te, delete this.$d, delete this.$n, delete this.$tm, a.__disposer && (a.__disposer(), delete a.__disposer, delete a.__extender), c.__deleteInstance(l), delete this.$i18n;
|
|
619
619
|
}
|
|
@@ -743,7 +743,7 @@ function ca(e) {
|
|
|
743
743
|
const t = (s) => {
|
|
744
744
|
const { instance: i, value: u } = s;
|
|
745
745
|
if (!i || !i.$)
|
|
746
|
-
throw
|
|
746
|
+
throw k(R.UNEXPECTED_ERROR);
|
|
747
747
|
const m = oa(e, i.$), b = Ce(u);
|
|
748
748
|
return [
|
|
749
749
|
Reflect.apply(m.t, m, [...Ae(b)]),
|
|
@@ -777,23 +777,23 @@ function ca(e) {
|
|
|
777
777
|
function Ce(e) {
|
|
778
778
|
if (d(e))
|
|
779
779
|
return { path: e };
|
|
780
|
-
if (
|
|
780
|
+
if (h(e)) {
|
|
781
781
|
if (!("path" in e))
|
|
782
|
-
throw
|
|
782
|
+
throw k(R.REQUIRED_VALUE, "path");
|
|
783
783
|
return e;
|
|
784
784
|
} else
|
|
785
|
-
throw
|
|
785
|
+
throw k(R.INVALID_VALUE);
|
|
786
786
|
}
|
|
787
787
|
function Ae(e) {
|
|
788
788
|
const { path: t, locale: c, args: l, choice: a, plural: r } = e, s = {}, i = l || {};
|
|
789
789
|
return d(c) && (s.locale = c), G(a) && (s.plural = a), G(r) && (s.plural = r), [t, i, s];
|
|
790
790
|
}
|
|
791
791
|
function ia(e, t, ...c) {
|
|
792
|
-
const l =
|
|
792
|
+
const l = h(c[0]) ? c[0] : {};
|
|
793
793
|
(!L(l.globalInstall) || l.globalInstall) && ([Se.name, "I18nT"].forEach((r) => e.component(r, Se)), [De.name, "I18nN"].forEach((r) => e.component(r, De)), [Ue.name, "I18nD"].forEach((r) => e.component(r, Ue))), e.directive("t", ca(t));
|
|
794
794
|
}
|
|
795
795
|
const ua = /* @__PURE__ */ M("global-vue-i18n");
|
|
796
|
-
function
|
|
796
|
+
function ka(e = {}) {
|
|
797
797
|
const t = __VUE_I18N_LEGACY_API__ && L(e.legacy) ? e.legacy : __VUE_I18N_LEGACY_API__, c = L(e.globalInjection) ? e.globalInjection : !0, l = /* @__PURE__ */ new Map(), [a, r] = _a(e, t), s = /* @__PURE__ */ M("");
|
|
798
798
|
function i(f) {
|
|
799
799
|
return l.get(f) || null;
|
|
@@ -811,7 +811,7 @@ function ha(e = {}) {
|
|
|
811
811
|
},
|
|
812
812
|
// install plugin
|
|
813
813
|
async install(f, ...E) {
|
|
814
|
-
if (f.__VUE_I18N_SYMBOL__ = s, f.provide(f.__VUE_I18N_SYMBOL__, b),
|
|
814
|
+
if (f.__VUE_I18N_SYMBOL__ = s, f.provide(f.__VUE_I18N_SYMBOL__, b), h(E[0])) {
|
|
815
815
|
const v = E[0];
|
|
816
816
|
b.__composerExtend = v.__composerExtend, b.__vueI18nExtend = v.__vueI18nExtend;
|
|
817
817
|
}
|
|
@@ -843,9 +843,9 @@ function ha(e = {}) {
|
|
|
843
843
|
function fe(e = {}) {
|
|
844
844
|
const t = X();
|
|
845
845
|
if (t == null)
|
|
846
|
-
throw
|
|
846
|
+
throw k(R.MUST_BE_CALL_SETUP_TOP);
|
|
847
847
|
if (!t.isCE && t.appContext.app != null && !t.appContext.app.__VUE_I18N_SYMBOL__)
|
|
848
|
-
throw
|
|
848
|
+
throw k(R.NOT_INSTALLED);
|
|
849
849
|
const c = ma(t), l = ga(c), a = je(t), r = fa(e, a);
|
|
850
850
|
if (r === "global")
|
|
851
851
|
return Ge(l, e, a), l;
|
|
@@ -864,13 +864,13 @@ function fe(e = {}) {
|
|
|
864
864
|
function _a(e, t) {
|
|
865
865
|
const c = wt(), l = __VUE_I18N_LEGACY_API__ && t ? c.run(() => ce(e)) : c.run(() => _e(e));
|
|
866
866
|
if (l == null)
|
|
867
|
-
throw
|
|
867
|
+
throw k(R.UNEXPECTED_ERROR);
|
|
868
868
|
return [c, l];
|
|
869
869
|
}
|
|
870
870
|
function ma(e) {
|
|
871
871
|
const t = Bt(e.isCE ? ua : e.appContext.app.__VUE_I18N_SYMBOL__);
|
|
872
872
|
if (!t)
|
|
873
|
-
throw
|
|
873
|
+
throw k(e.isCE ? R.NOT_INSTALLED_WITH_PROVIDE : R.UNEXPECTED_ERROR);
|
|
874
874
|
return t;
|
|
875
875
|
}
|
|
876
876
|
function fa(e, t) {
|
|
@@ -919,8 +919,8 @@ function Fa(e, t) {
|
|
|
919
919
|
return Ia.forEach((a) => {
|
|
920
920
|
const r = Object.getOwnPropertyDescriptor(t, a);
|
|
921
921
|
if (!r)
|
|
922
|
-
throw
|
|
923
|
-
const s =
|
|
922
|
+
throw k(R.UNEXPECTED_ERROR);
|
|
923
|
+
const s = jt(r.value) ? {
|
|
924
924
|
get() {
|
|
925
925
|
return r.value.value;
|
|
926
926
|
},
|
|
@@ -937,7 +937,7 @@ function Fa(e, t) {
|
|
|
937
937
|
}), e.config.globalProperties.$i18n = c, We.forEach((a) => {
|
|
938
938
|
const r = Object.getOwnPropertyDescriptor(t, a);
|
|
939
939
|
if (!r || !r.value)
|
|
940
|
-
throw
|
|
940
|
+
throw k(R.UNEXPECTED_ERROR);
|
|
941
941
|
Object.defineProperty(e.config.globalProperties, `$${a}`, r);
|
|
942
942
|
}), () => {
|
|
943
943
|
delete e.config.globalProperties.$i18n, We.forEach((a) => {
|
|
@@ -979,6 +979,6 @@ if (__INTLIFY_PROD_DEVTOOLS__) {
|
|
|
979
979
|
e.__INTLIFY__ = !0, Vt(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
|
|
980
980
|
}
|
|
981
981
|
export {
|
|
982
|
-
|
|
982
|
+
ka as c,
|
|
983
983
|
fe as u
|
|
984
984
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h } from "./vendor-vue-BTtW1k2s.js";
|
|
2
2
|
const m = (t) => t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), w = (t) => t.replace(
|
|
3
3
|
/^([A-Z])|[\s-_]+(\w)/g,
|
|
4
4
|
(e, o, a) => a ? a.toUpperCase() : o.toLowerCase()
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { e as H, r as M, m as V, i as G, j as $, k as T, a as E, l as q, t as tt, n as et, p as nt, w as st, q as ot, u as ct, c as rt } from "./vendor-vue-BTtW1k2s.js";
|
|
2
2
|
let B;
|
|
3
3
|
const R = (t) => B = t, J = (
|
|
4
4
|
/* istanbul ignore next */
|
|
5
5
|
/* @__PURE__ */ Symbol()
|
|
6
6
|
);
|
|
7
|
-
function
|
|
7
|
+
function I(t) {
|
|
8
8
|
return t && typeof t == "object" && Object.prototype.toString.call(t) === "[object Object]" && typeof t.toJSON != "function";
|
|
9
9
|
}
|
|
10
|
-
var
|
|
10
|
+
var g;
|
|
11
11
|
(function(t) {
|
|
12
12
|
t.direct = "direct", t.patchObject = "patch object", t.patchFunction = "patch function";
|
|
13
|
-
})(
|
|
13
|
+
})(g || (g = {}));
|
|
14
14
|
function St() {
|
|
15
|
-
const t =
|
|
15
|
+
const t = H(!0), c = t.run(() => M({}));
|
|
16
16
|
let n = [], e = [];
|
|
17
|
-
const u =
|
|
17
|
+
const u = V({
|
|
18
18
|
install(a) {
|
|
19
19
|
R(u), u._a = a, a.provide(J, u), a.config.globalProperties.$pinia = u, e.forEach((r) => n.push(r)), e = [];
|
|
20
20
|
},
|
|
@@ -38,21 +38,21 @@ function F(t, c, n, e = K) {
|
|
|
38
38
|
const u = () => {
|
|
39
39
|
t.delete(c) && e();
|
|
40
40
|
};
|
|
41
|
-
return !n &&
|
|
41
|
+
return !n && et() && nt(u), u;
|
|
42
42
|
}
|
|
43
43
|
function w(t, ...c) {
|
|
44
44
|
t.forEach((n) => {
|
|
45
45
|
n(...c);
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
const ut = (t) => t(), A = /* @__PURE__ */ Symbol(),
|
|
48
|
+
const ut = (t) => t(), A = /* @__PURE__ */ Symbol(), x = /* @__PURE__ */ Symbol();
|
|
49
49
|
function W(t, c) {
|
|
50
50
|
t instanceof Map && c instanceof Map ? c.forEach((n, e) => t.set(e, n)) : t instanceof Set && c instanceof Set && c.forEach(t.add, t);
|
|
51
51
|
for (const n in c) {
|
|
52
52
|
if (!c.hasOwnProperty(n))
|
|
53
53
|
continue;
|
|
54
54
|
const e = c[n], u = t[n];
|
|
55
|
-
|
|
55
|
+
I(u) && I(e) && t.hasOwnProperty(n) && !E(e) && !q(e) ? t[n] = W(u, e) : t[n] = e;
|
|
56
56
|
}
|
|
57
57
|
return t;
|
|
58
58
|
}
|
|
@@ -61,7 +61,7 @@ const at = (
|
|
|
61
61
|
/* @__PURE__ */ Symbol()
|
|
62
62
|
);
|
|
63
63
|
function ft(t) {
|
|
64
|
-
return !
|
|
64
|
+
return !I(t) || !Object.prototype.hasOwnProperty.call(t, at);
|
|
65
65
|
}
|
|
66
66
|
const { assign: h } = Object;
|
|
67
67
|
function lt(t) {
|
|
@@ -72,40 +72,40 @@ function it(t, c, n, e) {
|
|
|
72
72
|
let S;
|
|
73
73
|
function b() {
|
|
74
74
|
P || (n.state.value[t] = u ? u() : {});
|
|
75
|
-
const y =
|
|
76
|
-
return h(y, a, Object.keys(r || {}).reduce((v, d) => (v[d] =
|
|
75
|
+
const y = ct(n.state.value[t]);
|
|
76
|
+
return h(y, a, Object.keys(r || {}).reduce((v, d) => (v[d] = V(rt(() => {
|
|
77
77
|
R(n);
|
|
78
78
|
const m = n._s.get(t);
|
|
79
79
|
return r[d].call(m, m);
|
|
80
80
|
})), v), {}));
|
|
81
81
|
}
|
|
82
|
-
return S =
|
|
82
|
+
return S = z(t, b, c, n, e, !0), S;
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function z(t, c, n = {}, e, u, a) {
|
|
85
85
|
let r;
|
|
86
86
|
const P = h({ actions: {} }, n), S = { deep: !0 };
|
|
87
87
|
let b, y, v = /* @__PURE__ */ new Set(), d = /* @__PURE__ */ new Set(), m;
|
|
88
88
|
const _ = e.state.value[t];
|
|
89
|
-
!a && !_ && (e.state.value[t] = {});
|
|
89
|
+
!a && !_ && (e.state.value[t] = {}), M({});
|
|
90
90
|
let L;
|
|
91
91
|
function N(o) {
|
|
92
92
|
let s;
|
|
93
93
|
b = y = !1, typeof o == "function" ? (o(e.state.value[t]), s = {
|
|
94
|
-
type:
|
|
94
|
+
type: g.patchFunction,
|
|
95
95
|
storeId: t,
|
|
96
96
|
events: m
|
|
97
97
|
}) : (W(e.state.value[t], o), s = {
|
|
98
|
-
type:
|
|
98
|
+
type: g.patchObject,
|
|
99
99
|
payload: o,
|
|
100
100
|
storeId: t,
|
|
101
101
|
events: m
|
|
102
102
|
});
|
|
103
103
|
const f = L = /* @__PURE__ */ Symbol();
|
|
104
|
-
|
|
104
|
+
ot().then(() => {
|
|
105
105
|
L === f && (b = !0);
|
|
106
106
|
}), y = !0, w(v, s, e.state.value[t]);
|
|
107
107
|
}
|
|
108
|
-
const
|
|
108
|
+
const Q = a ? function() {
|
|
109
109
|
const { state: s } = n, f = s ? s() : {};
|
|
110
110
|
this.$patch((j) => {
|
|
111
111
|
h(j, f);
|
|
@@ -114,68 +114,68 @@ function q(t, c, n = {}, e, u, a) {
|
|
|
114
114
|
/* istanbul ignore next */
|
|
115
115
|
K
|
|
116
116
|
);
|
|
117
|
-
function
|
|
117
|
+
function U() {
|
|
118
118
|
r.stop(), v.clear(), d.clear(), e._s.delete(t);
|
|
119
119
|
}
|
|
120
120
|
const D = (o, s = "") => {
|
|
121
121
|
if (A in o)
|
|
122
|
-
return o[
|
|
122
|
+
return o[x] = s, o;
|
|
123
123
|
const f = function() {
|
|
124
124
|
R(e);
|
|
125
|
-
const j = Array.from(arguments), O = /* @__PURE__ */ new Set(),
|
|
126
|
-
function
|
|
125
|
+
const j = Array.from(arguments), O = /* @__PURE__ */ new Set(), k = /* @__PURE__ */ new Set();
|
|
126
|
+
function Y(l) {
|
|
127
127
|
O.add(l);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
129
|
+
function Z(l) {
|
|
130
|
+
k.add(l);
|
|
131
131
|
}
|
|
132
132
|
w(d, {
|
|
133
133
|
args: j,
|
|
134
|
-
name: f[
|
|
134
|
+
name: f[x],
|
|
135
135
|
store: i,
|
|
136
|
-
after:
|
|
137
|
-
onError:
|
|
136
|
+
after: Y,
|
|
137
|
+
onError: Z
|
|
138
138
|
});
|
|
139
|
-
let
|
|
139
|
+
let p;
|
|
140
140
|
try {
|
|
141
|
-
|
|
141
|
+
p = o.apply(this && this.$id === t ? this : i, j);
|
|
142
142
|
} catch (l) {
|
|
143
|
-
throw w(
|
|
143
|
+
throw w(k, l), l;
|
|
144
144
|
}
|
|
145
|
-
return
|
|
145
|
+
return p instanceof Promise ? p.then((l) => (w(O, l), l)).catch((l) => (w(k, l), Promise.reject(l))) : (w(O, p), p);
|
|
146
146
|
};
|
|
147
|
-
return f[A] = !0, f[
|
|
148
|
-
},
|
|
147
|
+
return f[A] = !0, f[x] = s, f;
|
|
148
|
+
}, X = {
|
|
149
149
|
_p: e,
|
|
150
150
|
// _s: scope,
|
|
151
151
|
$id: t,
|
|
152
152
|
$onAction: F.bind(null, d),
|
|
153
153
|
$patch: N,
|
|
154
|
-
$reset:
|
|
154
|
+
$reset: Q,
|
|
155
155
|
$subscribe(o, s = {}) {
|
|
156
|
-
const f = F(v, o, s.detached, () => j()), j = r.run(() =>
|
|
156
|
+
const f = F(v, o, s.detached, () => j()), j = r.run(() => st(() => e.state.value[t], (O) => {
|
|
157
157
|
(s.flush === "sync" ? y : b) && o({
|
|
158
158
|
storeId: t,
|
|
159
|
-
type:
|
|
159
|
+
type: g.direct,
|
|
160
160
|
events: m
|
|
161
161
|
}, O);
|
|
162
162
|
}, h({}, S, s)));
|
|
163
163
|
return f;
|
|
164
164
|
},
|
|
165
|
-
$dispose:
|
|
166
|
-
}, i =
|
|
165
|
+
$dispose: U
|
|
166
|
+
}, i = T(X);
|
|
167
167
|
e._s.set(t, i);
|
|
168
|
-
const C = (e._a && e._a.runWithContext || ut)(() => e._e.run(() => (r =
|
|
168
|
+
const C = (e._a && e._a.runWithContext || ut)(() => e._e.run(() => (r = H()).run(() => c({ action: D }))));
|
|
169
169
|
for (const o in C) {
|
|
170
170
|
const s = C[o];
|
|
171
|
-
if (E(s) && !lt(s) ||
|
|
171
|
+
if (E(s) && !lt(s) || q(s))
|
|
172
172
|
a || (_ && ft(s) && (E(s) ? s.value = _[o] : W(s, _[o])), e.state.value[t][o] = s);
|
|
173
173
|
else if (typeof s == "function") {
|
|
174
174
|
const f = D(s, o);
|
|
175
175
|
C[o] = f, P.actions[o] = s;
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
|
-
return h(i, C), h(
|
|
178
|
+
return h(i, C), h(tt(i), C), Object.defineProperty(i, "$state", {
|
|
179
179
|
get: () => e.state.value[t],
|
|
180
180
|
set: (o) => {
|
|
181
181
|
N((s) => {
|
|
@@ -200,7 +200,7 @@ function yt(t, c, n) {
|
|
|
200
200
|
const S = $();
|
|
201
201
|
return r = // in test mode, ignore the argument provided as we can always retrieve a
|
|
202
202
|
// pinia instance with getActivePinia()
|
|
203
|
-
r || (S ? G(J, null) : null), r && R(r), r = B, r._s.has(t) || (u ?
|
|
203
|
+
r || (S ? G(J, null) : null), r && R(r), r = B, r._s.has(t) || (u ? z(t, c, e, r) : it(t, e, r)), r._s.get(t);
|
|
204
204
|
}
|
|
205
205
|
return a.$id = t, a;
|
|
206
206
|
}
|