@dskripchenko/laravel-admin 1.20.1 → 1.21.1
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/index.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { h as Se, ref as A, computed as M, defineComponent as ne, openBlock as c, createElementBlock as h, createVNode as w, unref as n, createBlock as z, withCtx as x, Fragment as X, renderList as
|
|
2
|
-
import { defineStore as e1, createPinia as
|
|
3
|
-
import { useRouter as Ze, useRoute as l1, createWebHistory as
|
|
4
|
-
import { UidIcon as
|
|
1
|
+
import { h as Se, ref as A, computed as M, defineComponent as ne, openBlock as c, createElementBlock as h, createVNode as w, unref as n, createBlock as z, withCtx as x, Fragment as X, renderList as ee, createTextVNode as D, toDisplayString as y, createElementVNode as u, createCommentVNode as H, renderSlot as ze, resolveDynamicComponent as $e, normalizeClass as fe, withKeys as A1, withModifiers as me, onMounted as Oe, onUnmounted as z9, watch as Ie, resolveComponent as H9, normalizeStyle as Ve, nextTick as Je, withDirectives as s1, vModelText as q1, onBeforeUnmount as Do, Teleport as lI, Transition as _9, inject as rI, normalizeProps as O2, mergeProps as Qn, provide as Pw, vModelSelect as Fw, createSlots as $I, guardReactiveProps as jw, reactive as TI, createApp as Dw } from "vue";
|
|
2
|
+
import { defineStore as e1, createPinia as Bw } from "pinia";
|
|
3
|
+
import { useRouter as Ze, useRoute as l1, createWebHistory as UI, createRouter as Rw } from "vue-router";
|
|
4
|
+
import { UidIcon as ae, UidMenu as je, UidMenuItem as De, UidMenuSeparator as $w, UidAvatar as dI, UidSidebarItem as Tw, UidSidebar as Uw, UidSkeleton as Re, UidSidebarGroup as Ow, UidModal as Ew, UidSpinner as Zw, UidSidebarLayout as Ww, useToast as ec, provideLocale as Gw, en as Nw, ru as Xw, UidToastProvider as Kw, UidAlert as Ye, UidInput as Le, UidButton as oe, UidCard as we, UidCheckbox as OI, UidErrorState as sI, UidEmptyState as hI, UidTreeView as Jw, UidTable as Co, UidPagination as Yw, UidGrid as uI, UidStack as Qw, UidBadge as yI, UidSelect as S9, UidStat as ic, UidGauge as ex, UidFormField as Z2, UidTextarea as ax, UidNumberInput as tx, UidDatePicker as nx, usePopover as ox, UidTabs as EI, UidTabPanel as ZI, UidTab as lc, UidDescriptionList as cx, UidDescriptionItem as ix, UidDrawer as lx, UidStepper as rx, UidFileUpload as dx, UidProgress as sx } from "@dskripchenko/ui";
|
|
5
5
|
import { t as v, u as W2 } from "./i18n-CoRTQbVV.js";
|
|
6
|
-
import { t as
|
|
7
|
-
import
|
|
8
|
-
import { DskWysiwyg as
|
|
6
|
+
import { t as hx, p as V9, u as Pe } from "./formState-DeRZBwWH.js";
|
|
7
|
+
import ux from "axios";
|
|
8
|
+
import { DskWysiwyg as yx } from "@dskripchenko/wysiwyg";
|
|
9
9
|
import "@dskripchenko/wysiwyg/style.css";
|
|
10
|
-
const
|
|
10
|
+
const px = (a) => a.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
11
11
|
var ac = {
|
|
12
12
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13
13
|
width: 24,
|
|
@@ -27,7 +27,7 @@ const WI = ({ size: a, strokeWidth: t = 2, absoluteStrokeWidth: o, color: l, ico
|
|
|
27
27
|
height: a || ac.height,
|
|
28
28
|
stroke: l || ac.stroke,
|
|
29
29
|
"stroke-width": o ? Number(t) * 24 / Number(a) : t,
|
|
30
|
-
class: ["lucide", `lucide-${
|
|
30
|
+
class: ["lucide", `lucide-${px(i ?? "icon")}`],
|
|
31
31
|
...r
|
|
32
32
|
},
|
|
33
33
|
[...d.map((m) => Se(...m)), ...p.default ? [p.default()] : []]
|
|
@@ -12716,7 +12716,7 @@ const C9 = e("ZoomOutIcon", [
|
|
|
12716
12716
|
["line", { x1: "21", x2: "16.65", y1: "21", y2: "16.65", key: "13gj7c" }],
|
|
12717
12717
|
["line", { x1: "8", x2: "14", y1: "11", y2: "11", key: "durymu" }]
|
|
12718
12718
|
]);
|
|
12719
|
-
const
|
|
12719
|
+
const kx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12720
12720
|
__proto__: null,
|
|
12721
12721
|
AArrowDown: rc,
|
|
12722
12722
|
AArrowUp: dc,
|
|
@@ -14258,7 +14258,7 @@ const px = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
14258
14258
|
ZoomIn: L9,
|
|
14259
14259
|
ZoomOut: C9
|
|
14260
14260
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
14261
|
-
const
|
|
14261
|
+
const mx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14262
14262
|
__proto__: null,
|
|
14263
14263
|
AArrowDown: rc,
|
|
14264
14264
|
AArrowDownIcon: rc,
|
|
@@ -19473,7 +19473,7 @@ const kx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
19473
19473
|
ZoomOut: C9,
|
|
19474
19474
|
ZoomOutIcon: C9,
|
|
19475
19475
|
createLucideIcon: e,
|
|
19476
|
-
icons:
|
|
19476
|
+
icons: kx
|
|
19477
19477
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
19478
19478
|
let E2 = null;
|
|
19479
19479
|
function GI(a) {
|
|
@@ -19486,19 +19486,19 @@ function Me() {
|
|
|
19486
19486
|
);
|
|
19487
19487
|
return E2;
|
|
19488
19488
|
}
|
|
19489
|
-
function
|
|
19489
|
+
function vx() {
|
|
19490
19490
|
E2 = null;
|
|
19491
19491
|
}
|
|
19492
|
-
function
|
|
19492
|
+
function fx() {
|
|
19493
19493
|
return E2 !== null;
|
|
19494
19494
|
}
|
|
19495
19495
|
const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
19496
19496
|
__proto__: null,
|
|
19497
|
-
clearAdminClient:
|
|
19497
|
+
clearAdminClient: vx,
|
|
19498
19498
|
getAdminClient: Me,
|
|
19499
|
-
hasAdminClient:
|
|
19499
|
+
hasAdminClient: fx,
|
|
19500
19500
|
setAdminClient: GI
|
|
19501
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
19501
|
+
}, Symbol.toStringTag, { value: "Module" })), pI = e1("admin-theme", () => {
|
|
19502
19502
|
const a = A("light"), t = A(["light", "dark"]), o = M(() => a.value === "dark");
|
|
19503
19503
|
function l(r) {
|
|
19504
19504
|
a.value = r.theme, t.value = r.availableThemes, s(r.theme);
|
|
@@ -19530,10 +19530,10 @@ const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
19530
19530
|
applyLocal: d,
|
|
19531
19531
|
setTheme: i
|
|
19532
19532
|
};
|
|
19533
|
-
}),
|
|
19533
|
+
}), gx = ["aria-label", "aria-pressed"], NI = /* @__PURE__ */ ne({
|
|
19534
19534
|
__name: "ThemeToggle",
|
|
19535
19535
|
setup(a) {
|
|
19536
|
-
const t =
|
|
19536
|
+
const t = pI(), o = M(() => t.current === "dark"), l = M(() => o.value ? F2 : x2), d = M(() => o.value ? "sun" : "moon"), i = M(
|
|
19537
19537
|
() => o.value ? v("Переключить на светлую тему") : v("Переключить на тёмную тему")
|
|
19538
19538
|
);
|
|
19539
19539
|
async function s() {
|
|
@@ -19547,12 +19547,12 @@ const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
19547
19547
|
"aria-pressed": o.value,
|
|
19548
19548
|
onClick: s
|
|
19549
19549
|
}, [
|
|
19550
|
-
w(n(
|
|
19550
|
+
w(n(ae), {
|
|
19551
19551
|
icon: l.value,
|
|
19552
19552
|
size: 18,
|
|
19553
19553
|
"data-icon": d.value
|
|
19554
19554
|
}, null, 8, ["icon", "data-icon"])
|
|
19555
|
-
], 8,
|
|
19555
|
+
], 8, gx));
|
|
19556
19556
|
}
|
|
19557
19557
|
}), co = e1("admin-locale", () => {
|
|
19558
19558
|
const a = A("ru"), t = A(["ru", "en"]);
|
|
@@ -19596,7 +19596,7 @@ const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
19596
19596
|
setLocale: i,
|
|
19597
19597
|
release: d
|
|
19598
19598
|
};
|
|
19599
|
-
}),
|
|
19599
|
+
}), Mx = ["aria-label"], XI = /* @__PURE__ */ ne({
|
|
19600
19600
|
__name: "LocaleSwitcher",
|
|
19601
19601
|
setup(a) {
|
|
19602
19602
|
const t = co();
|
|
@@ -19611,16 +19611,16 @@ const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
19611
19611
|
style: { width: "auto", padding: "0 8px", gap: "4px", "font-size": "12px" },
|
|
19612
19612
|
"aria-label": n(v)("Сменить локаль")
|
|
19613
19613
|
}, [
|
|
19614
|
-
w(n(
|
|
19614
|
+
w(n(ae), {
|
|
19615
19615
|
icon: n(mo),
|
|
19616
19616
|
size: 14,
|
|
19617
19617
|
"data-icon": "globe"
|
|
19618
19618
|
}, null, 8, ["icon"]),
|
|
19619
19619
|
u("span", null, y((n(t).current ?? "").toUpperCase()), 1)
|
|
19620
|
-
], 8,
|
|
19620
|
+
], 8, Mx)
|
|
19621
19621
|
]),
|
|
19622
19622
|
default: x(() => [
|
|
19623
|
-
(c(!0), h(X, null,
|
|
19623
|
+
(c(!0), h(X, null, ee(n(t).available, (i) => (c(), z(n(De), {
|
|
19624
19624
|
key: i,
|
|
19625
19625
|
onClick: (s) => o(i)
|
|
19626
19626
|
}, {
|
|
@@ -19705,7 +19705,7 @@ const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
19705
19705
|
closeDrawer: p,
|
|
19706
19706
|
toggleDrawer: m
|
|
19707
19707
|
};
|
|
19708
|
-
}),
|
|
19708
|
+
}), Ix = ["aria-label", "aria-expanded"], wx = ["title"], xx = /* @__PURE__ */ ne({
|
|
19709
19709
|
__name: "NotificationBell",
|
|
19710
19710
|
setup(a) {
|
|
19711
19711
|
const t = P9(), o = M(() => {
|
|
@@ -19723,7 +19723,7 @@ const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
19723
19723
|
"aria-expanded": n(t).isOpen,
|
|
19724
19724
|
onClick: l
|
|
19725
19725
|
}, [
|
|
19726
|
-
w(n(
|
|
19726
|
+
w(n(ae), {
|
|
19727
19727
|
icon: n(eo),
|
|
19728
19728
|
size: 18,
|
|
19729
19729
|
"data-icon": "bell"
|
|
@@ -19732,8 +19732,8 @@ const qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
19732
19732
|
key: 0,
|
|
19733
19733
|
class: "admin-topbar__bell-badge",
|
|
19734
19734
|
title: `Непрочитанных: ${n(t).unreadCount}`
|
|
19735
|
-
}, y(o.value), 9,
|
|
19736
|
-
], 8,
|
|
19735
|
+
}, y(o.value), 9, wx)) : H("", !0)
|
|
19736
|
+
], 8, Ix));
|
|
19737
19737
|
}
|
|
19738
19738
|
});
|
|
19739
19739
|
class We extends Error {
|
|
@@ -19749,12 +19749,12 @@ class KI extends We {
|
|
|
19749
19749
|
super(401, t), this.name = "UnauthenticatedError";
|
|
19750
19750
|
}
|
|
19751
19751
|
}
|
|
19752
|
-
class
|
|
19752
|
+
class bx extends We {
|
|
19753
19753
|
constructor(t) {
|
|
19754
19754
|
super(403, t), this.name = "ForbiddenError";
|
|
19755
19755
|
}
|
|
19756
19756
|
}
|
|
19757
|
-
class
|
|
19757
|
+
class Lx extends We {
|
|
19758
19758
|
constructor(t) {
|
|
19759
19759
|
super(404, t), this.name = "NotFoundError";
|
|
19760
19760
|
}
|
|
@@ -19778,14 +19778,14 @@ class F9 extends Error {
|
|
|
19778
19778
|
super(t), this.name = "NetworkError";
|
|
19779
19779
|
}
|
|
19780
19780
|
}
|
|
19781
|
-
function
|
|
19781
|
+
function LI(a, t) {
|
|
19782
19782
|
switch (a) {
|
|
19783
19783
|
case 401:
|
|
19784
19784
|
return new KI(t);
|
|
19785
19785
|
case 403:
|
|
19786
|
-
return new xx(t);
|
|
19787
|
-
case 404:
|
|
19788
19786
|
return new bx(t);
|
|
19787
|
+
case 404:
|
|
19788
|
+
return new Lx(t);
|
|
19789
19789
|
case 422:
|
|
19790
19790
|
return new G2(t);
|
|
19791
19791
|
default:
|
|
@@ -19891,7 +19891,7 @@ const Qe = e1("admin-auth", () => {
|
|
|
19891
19891
|
cancelChallenge: C,
|
|
19892
19892
|
logout: I
|
|
19893
19893
|
};
|
|
19894
|
-
}),
|
|
19894
|
+
}), Cx = ["aria-label"], _x = /* @__PURE__ */ ne({
|
|
19895
19895
|
__name: "UserMenu",
|
|
19896
19896
|
setup(a) {
|
|
19897
19897
|
const t = Qe(), o = Ze();
|
|
@@ -19920,7 +19920,7 @@ const Qe = e1("admin-auth", () => {
|
|
|
19920
19920
|
alt: n(t).user?.name ?? "User",
|
|
19921
19921
|
size: "sm"
|
|
19922
19922
|
}, null, 8, ["src", "name", "alt"])
|
|
19923
|
-
], 8,
|
|
19923
|
+
], 8, Cx)
|
|
19924
19924
|
]),
|
|
19925
19925
|
default: x(() => [
|
|
19926
19926
|
w(n(De), { onClick: d }, {
|
|
@@ -19929,7 +19929,7 @@ const Qe = e1("admin-auth", () => {
|
|
|
19929
19929
|
]),
|
|
19930
19930
|
_: 1
|
|
19931
19931
|
}),
|
|
19932
|
-
w(n(
|
|
19932
|
+
w(n($w)),
|
|
19933
19933
|
w(n(De), {
|
|
19934
19934
|
variant: "danger",
|
|
19935
19935
|
onClick: l
|
|
@@ -19943,10 +19943,10 @@ const Qe = e1("admin-auth", () => {
|
|
|
19943
19943
|
_: 1
|
|
19944
19944
|
}));
|
|
19945
19945
|
}
|
|
19946
|
-
}),
|
|
19946
|
+
}), Sx = { class: "admin-topbar" }, qx = ["aria-label"], Ax = { class: "admin-topbar__breadcrumbs" }, zx = {
|
|
19947
19947
|
key: 0,
|
|
19948
19948
|
class: "sep"
|
|
19949
|
-
},
|
|
19949
|
+
}, Hx = /* @__PURE__ */ ne({
|
|
19950
19950
|
__name: "AdminTopBar",
|
|
19951
19951
|
props: {
|
|
19952
19952
|
breadcrumbs: { default: () => [] },
|
|
@@ -19955,7 +19955,7 @@ const Qe = e1("admin-auth", () => {
|
|
|
19955
19955
|
emits: ["toggle-sidebar", "open-search"],
|
|
19956
19956
|
setup(a, { emit: t }) {
|
|
19957
19957
|
const o = a, l = t, d = M(() => o.breadcrumbs.length - 1);
|
|
19958
|
-
return (i, s) => (c(), h("header",
|
|
19958
|
+
return (i, s) => (c(), h("header", Sx, [
|
|
19959
19959
|
a.showCollapseToggle ? (c(), h("button", {
|
|
19960
19960
|
key: 0,
|
|
19961
19961
|
type: "button",
|
|
@@ -19963,16 +19963,16 @@ const Qe = e1("admin-auth", () => {
|
|
|
19963
19963
|
"aria-label": n(v)("Свернуть меню"),
|
|
19964
19964
|
onClick: s[0] || (s[0] = (r) => l("toggle-sidebar"))
|
|
19965
19965
|
}, [
|
|
19966
|
-
w(n(
|
|
19966
|
+
w(n(ae), {
|
|
19967
19967
|
icon: n(L1),
|
|
19968
19968
|
size: 18,
|
|
19969
19969
|
"data-icon": "panel-left"
|
|
19970
19970
|
}, null, 8, ["icon"])
|
|
19971
|
-
], 8,
|
|
19972
|
-
u("div",
|
|
19971
|
+
], 8, qx)) : H("", !0),
|
|
19972
|
+
u("div", Ax, [
|
|
19973
19973
|
ze(i.$slots, "breadcrumbs", {}, () => [
|
|
19974
|
-
(c(!0), h(X, null,
|
|
19975
|
-
p > 0 ? (c(), h("span",
|
|
19974
|
+
(c(!0), h(X, null, ee(a.breadcrumbs, (r, p) => (c(), h(X, { key: p }, [
|
|
19975
|
+
p > 0 ? (c(), h("span", zx, "›")) : H("", !0),
|
|
19976
19976
|
(c(), z($e(r.to ? "a" : "span"), {
|
|
19977
19977
|
href: typeof r.to == "string" ? r.to : void 0,
|
|
19978
19978
|
class: fe(p === d.value ? "cur" : "")
|
|
@@ -19998,7 +19998,7 @@ const Qe = e1("admin-auth", () => {
|
|
|
19998
19998
|
s[3] || (s[3] = A1(me((r) => l("open-search"), ["prevent"]), ["space"]))
|
|
19999
19999
|
]
|
|
20000
20000
|
}, [
|
|
20001
|
-
w(n(
|
|
20001
|
+
w(n(ae), {
|
|
20002
20002
|
icon: n(z1),
|
|
20003
20003
|
size: 14,
|
|
20004
20004
|
"data-icon": "search"
|
|
@@ -20008,10 +20008,10 @@ const Qe = e1("admin-auth", () => {
|
|
|
20008
20008
|
], 32)
|
|
20009
20009
|
]),
|
|
20010
20010
|
ze(i.$slots, "actions"),
|
|
20011
|
-
w(
|
|
20011
|
+
w(xx),
|
|
20012
20012
|
w(NI),
|
|
20013
20013
|
w(XI),
|
|
20014
|
-
w(
|
|
20014
|
+
w(_x)
|
|
20015
20015
|
]));
|
|
20016
20016
|
}
|
|
20017
20017
|
}), j9 = e1("admin-menu", () => {
|
|
@@ -20121,19 +20121,19 @@ const Qe = e1("admin-auth", () => {
|
|
|
20121
20121
|
refresh: I,
|
|
20122
20122
|
reset: f
|
|
20123
20123
|
};
|
|
20124
|
-
}),
|
|
20124
|
+
}), Vx = 1500;
|
|
20125
20125
|
function JI() {
|
|
20126
20126
|
const a = Ee(), t = j9(), o = A(!1);
|
|
20127
20127
|
let l = null;
|
|
20128
20128
|
return Oe(() => {
|
|
20129
20129
|
l = setTimeout(() => {
|
|
20130
20130
|
o.value = !0;
|
|
20131
|
-
},
|
|
20131
|
+
}, Vx);
|
|
20132
20132
|
}), z9(() => {
|
|
20133
20133
|
l !== null && clearTimeout(l);
|
|
20134
20134
|
}), M(() => o.value || a.bootResolved && !t.loading);
|
|
20135
20135
|
}
|
|
20136
|
-
const
|
|
20136
|
+
const Px = {
|
|
20137
20137
|
activity: Bo,
|
|
20138
20138
|
"alert-circle": g1,
|
|
20139
20139
|
archive: Ro,
|
|
@@ -20218,16 +20218,16 @@ const Vx = {
|
|
|
20218
20218
|
zap: U2
|
|
20219
20219
|
};
|
|
20220
20220
|
function q9(a) {
|
|
20221
|
-
return a ?
|
|
20221
|
+
return a ? Px[a] ?? null : null;
|
|
20222
20222
|
}
|
|
20223
|
-
const
|
|
20223
|
+
const Fx = ["data-depth"], jx = ["aria-expanded", "title"], Dx = { class: "uid-sidebar-item__icon" }, Bx = {
|
|
20224
20224
|
key: 0,
|
|
20225
20225
|
class: "uid-sidebar-item__label"
|
|
20226
|
-
},
|
|
20226
|
+
}, Rx = {
|
|
20227
20227
|
key: 2,
|
|
20228
20228
|
class: "admin-sidebar-node__children",
|
|
20229
20229
|
role: "group"
|
|
20230
|
-
},
|
|
20230
|
+
}, $x = /* @__PURE__ */ ne({
|
|
20231
20231
|
__name: "AdminSidebarNode",
|
|
20232
20232
|
props: {
|
|
20233
20233
|
item: {},
|
|
@@ -20268,7 +20268,7 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20268
20268
|
});
|
|
20269
20269
|
function b(I) {
|
|
20270
20270
|
const L = q9(I) ?? so;
|
|
20271
|
-
return () => Se(
|
|
20271
|
+
return () => Se(ae, { icon: L, size: 16 });
|
|
20272
20272
|
}
|
|
20273
20273
|
function C() {
|
|
20274
20274
|
d.value = !d.value;
|
|
@@ -20298,21 +20298,21 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20298
20298
|
title: a.collapsed ? a.item.label : void 0,
|
|
20299
20299
|
onClick: C
|
|
20300
20300
|
}, [
|
|
20301
|
-
u("span",
|
|
20301
|
+
u("span", Dx, [
|
|
20302
20302
|
(c(), z($e(b(a.item.icon))))
|
|
20303
20303
|
]),
|
|
20304
|
-
a.collapsed ? H("", !0) : (c(), h("span",
|
|
20304
|
+
a.collapsed ? H("", !0) : (c(), h("span", Bx, y(a.item.label), 1)),
|
|
20305
20305
|
a.collapsed ? H("", !0) : (c(), h("span", {
|
|
20306
20306
|
key: 1,
|
|
20307
20307
|
class: fe(["admin-sidebar-node__chev", { "admin-sidebar-node__chev--open": d.value }]),
|
|
20308
20308
|
"aria-hidden": "true"
|
|
20309
20309
|
}, [
|
|
20310
|
-
w(n(
|
|
20310
|
+
w(n(ae), {
|
|
20311
20311
|
icon: n(Uo),
|
|
20312
20312
|
size: 14
|
|
20313
20313
|
}, null, 8, ["icon"])
|
|
20314
20314
|
], 2))
|
|
20315
|
-
], 10,
|
|
20315
|
+
], 10, jx)) : (c(), z(n(Tw), {
|
|
20316
20316
|
key: 1,
|
|
20317
20317
|
class: "admin-sidebar-node__leaf",
|
|
20318
20318
|
"data-testid": `menu-${a.item.key}`,
|
|
@@ -20329,8 +20329,8 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20329
20329
|
]),
|
|
20330
20330
|
_: 1
|
|
20331
20331
|
}, 8, ["data-testid", "to", "active", "badge", "title"])),
|
|
20332
|
-
l.value && d.value ? (c(), h("div",
|
|
20333
|
-
(c(!0), h(X, null,
|
|
20332
|
+
l.value && d.value ? (c(), h("div", Rx, [
|
|
20333
|
+
(c(!0), h(X, null, ee(a.item.children, (S) => (c(), z(f, {
|
|
20334
20334
|
key: S.key,
|
|
20335
20335
|
item: S,
|
|
20336
20336
|
depth: a.depth + 1,
|
|
@@ -20339,10 +20339,10 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20339
20339
|
"indent-step": a.indentStep
|
|
20340
20340
|
}, null, 8, ["item", "depth", "collapsed", "stripe-at", "indent-step"]))), 128))
|
|
20341
20341
|
])) : H("", !0)
|
|
20342
|
-
], 14,
|
|
20342
|
+
], 14, Fx);
|
|
20343
20343
|
};
|
|
20344
20344
|
}
|
|
20345
|
-
}),
|
|
20345
|
+
}), Tx = ["aria-label"], Ux = "#2dd4bf", Ox = "#18181b", D9 = /* @__PURE__ */ ne({
|
|
20346
20346
|
__name: "BrandLogo",
|
|
20347
20347
|
props: {
|
|
20348
20348
|
size: { default: 28 },
|
|
@@ -20351,8 +20351,8 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20351
20351
|
title: { default: "LAdmin" }
|
|
20352
20352
|
},
|
|
20353
20353
|
setup(a) {
|
|
20354
|
-
const t = a, o = M(() => Math.round(t.size * 0.25)), l = M(() => Math.round(t.size * 0.42)), d = M(() => Math.round(t.size * 0.18)), i = M(() => Math.max(2, Math.round(t.size * 0.18))), s = M(() => Math.round(t.size * 0.3)), r = M(() => Math.max(1, Math.round(t.size * 0.04))), p = M(() => t.variant === "mono" ? "currentColor" :
|
|
20355
|
-
() => t.variant === "mono" ? "var(--ladmin-logo-fg, #fff)" :
|
|
20354
|
+
const t = a, o = M(() => Math.round(t.size * 0.25)), l = M(() => Math.round(t.size * 0.42)), d = M(() => Math.round(t.size * 0.18)), i = M(() => Math.max(2, Math.round(t.size * 0.18))), s = M(() => Math.round(t.size * 0.3)), r = M(() => Math.max(1, Math.round(t.size * 0.04))), p = M(() => t.variant === "mono" ? "currentColor" : Ox), m = M(
|
|
20355
|
+
() => t.variant === "mono" ? "var(--ladmin-logo-fg, #fff)" : Ux
|
|
20356
20356
|
), k = M(() => ({
|
|
20357
20357
|
width: `${t.size}px`,
|
|
20358
20358
|
height: `${t.size}px`,
|
|
@@ -20379,22 +20379,22 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20379
20379
|
class: "ladmin-logo__cursor",
|
|
20380
20380
|
style: Ve(g.value)
|
|
20381
20381
|
}, null, 4)
|
|
20382
|
-
], 14,
|
|
20382
|
+
], 14, Tx));
|
|
20383
20383
|
}
|
|
20384
|
-
}),
|
|
20384
|
+
}), Ex = ["src", "alt"], Zx = {
|
|
20385
20385
|
key: 1,
|
|
20386
20386
|
class: "admin-sidebar-brand__mark"
|
|
20387
|
-
},
|
|
20387
|
+
}, Wx = {
|
|
20388
20388
|
key: 3,
|
|
20389
20389
|
class: "admin-sidebar-brand__name"
|
|
20390
|
-
},
|
|
20390
|
+
}, Gx = {
|
|
20391
20391
|
key: 0,
|
|
20392
20392
|
class: "admin-sidebar-tenant"
|
|
20393
|
-
},
|
|
20393
|
+
}, Nx = {
|
|
20394
20394
|
key: 0,
|
|
20395
20395
|
class: "admin-sidebar-boot",
|
|
20396
20396
|
"aria-busy": "true"
|
|
20397
|
-
},
|
|
20397
|
+
}, Xx = { class: "admin-sidebar-foot" }, Kx = ["title"], Jx = ["href"], Yx = /* @__PURE__ */ ne({
|
|
20398
20398
|
__name: "AdminSidebar",
|
|
20399
20399
|
props: {
|
|
20400
20400
|
collapsed: { type: Boolean, default: !1 },
|
|
@@ -20410,7 +20410,7 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20410
20410
|
const t = j9(), o = M(() => t.groupedItems), l = JI(), d = M(() => l.value || t.isLoaded);
|
|
20411
20411
|
return (i, s) => {
|
|
20412
20412
|
const r = H9("router-link");
|
|
20413
|
-
return c(), z(n(
|
|
20413
|
+
return c(), z(n(Uw), { collapsed: a.collapsed }, {
|
|
20414
20414
|
header: x(() => [
|
|
20415
20415
|
w(r, {
|
|
20416
20416
|
to: { name: a.homeRouteName },
|
|
@@ -20424,41 +20424,41 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20424
20424
|
class: "admin-sidebar-brand__logo",
|
|
20425
20425
|
src: a.brandLogo,
|
|
20426
20426
|
alt: a.brandName
|
|
20427
|
-
}, null, 8,
|
|
20427
|
+
}, null, 8, Ex)) : a.brandMark ? (c(), h("div", Zx, y(a.brandMark), 1)) : (c(), z(D9, {
|
|
20428
20428
|
key: 2,
|
|
20429
20429
|
size: 28
|
|
20430
20430
|
})),
|
|
20431
|
-
a.collapsed ? H("", !0) : (c(), h("div",
|
|
20431
|
+
a.collapsed ? H("", !0) : (c(), h("div", Wx, y(a.brandName), 1))
|
|
20432
20432
|
]),
|
|
20433
20433
|
_: 1
|
|
20434
20434
|
}, 8, ["to", "title", "aria-label"]),
|
|
20435
|
-
a.tenant && !a.collapsed ? (c(), h("div",
|
|
20435
|
+
a.tenant && !a.collapsed ? (c(), h("div", Gx, [
|
|
20436
20436
|
u("span", null, y(a.tenant.label), 1),
|
|
20437
20437
|
u("b", null, y(a.tenant.name), 1)
|
|
20438
20438
|
])) : H("", !0)
|
|
20439
20439
|
]),
|
|
20440
20440
|
nav: x(() => [
|
|
20441
|
-
d.value ? (c(!0), h(X, { key: 1 },
|
|
20441
|
+
d.value ? (c(!0), h(X, { key: 1 }, ee(o.value, (p, m) => (c(), z(n(Ow), {
|
|
20442
20442
|
key: `grp-${m}`,
|
|
20443
20443
|
title: p.group ?? void 0
|
|
20444
20444
|
}, {
|
|
20445
20445
|
default: x(() => [
|
|
20446
|
-
(c(!0), h(X, null,
|
|
20446
|
+
(c(!0), h(X, null, ee(p.items, (k) => (c(), z($x, {
|
|
20447
20447
|
key: k.key,
|
|
20448
20448
|
item: k,
|
|
20449
20449
|
collapsed: a.collapsed
|
|
20450
20450
|
}, null, 8, ["item", "collapsed"]))), 128))
|
|
20451
20451
|
]),
|
|
20452
20452
|
_: 2
|
|
20453
|
-
}, 1032, ["title"]))), 128)) : (c(), h("div",
|
|
20454
|
-
(c(), h(X, null,
|
|
20453
|
+
}, 1032, ["title"]))), 128)) : (c(), h("div", Nx, [
|
|
20454
|
+
(c(), h(X, null, ee(6, (p) => w(n(Re), {
|
|
20455
20455
|
key: `sk-${p}`,
|
|
20456
20456
|
height: "32px"
|
|
20457
20457
|
})), 64))
|
|
20458
20458
|
]))
|
|
20459
20459
|
]),
|
|
20460
20460
|
footer: x(() => [
|
|
20461
|
-
u("div",
|
|
20461
|
+
u("div", Xx, [
|
|
20462
20462
|
u("span", {
|
|
20463
20463
|
class: "admin-sidebar-foot__text",
|
|
20464
20464
|
title: a.version ?? a.brandName
|
|
@@ -20468,28 +20468,28 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20468
20468
|
], 64)) : (c(), h(X, { key: 0 }, [
|
|
20469
20469
|
D(y(a.version ?? a.brandName), 1)
|
|
20470
20470
|
], 64))
|
|
20471
|
-
], 8,
|
|
20471
|
+
], 8, Kx),
|
|
20472
20472
|
a.docsUrl && !a.collapsed ? (c(), h("a", {
|
|
20473
20473
|
key: 0,
|
|
20474
20474
|
href: a.docsUrl,
|
|
20475
20475
|
class: "admin-sidebar-foot__text admin-sidebar-foot__link"
|
|
20476
|
-
}, " Docs ", 8,
|
|
20476
|
+
}, " Docs ", 8, Jx)) : H("", !0)
|
|
20477
20477
|
])
|
|
20478
20478
|
]),
|
|
20479
20479
|
_: 1
|
|
20480
20480
|
}, 8, ["collapsed"]);
|
|
20481
20481
|
};
|
|
20482
20482
|
}
|
|
20483
|
-
}),
|
|
20483
|
+
}), Qx = { class: "admin-search__box" }, eb = ["placeholder"], ab = { class: "admin-search__results" }, tb = {
|
|
20484
20484
|
key: 0,
|
|
20485
20485
|
class: "admin-search__hint"
|
|
20486
|
-
},
|
|
20486
|
+
}, nb = {
|
|
20487
20487
|
key: 1,
|
|
20488
20488
|
class: "admin-search__hint"
|
|
20489
|
-
},
|
|
20489
|
+
}, ob = { class: "admin-search__group-hd" }, cb = ["onClick", "onMousemove"], ib = { class: "admin-search__item-title" }, lb = {
|
|
20490
20490
|
key: 0,
|
|
20491
20491
|
class: "admin-search__item-sub"
|
|
20492
|
-
},
|
|
20492
|
+
}, rb = /* @__PURE__ */ ne({
|
|
20493
20493
|
__name: "GlobalSearch",
|
|
20494
20494
|
props: {
|
|
20495
20495
|
modelValue: { type: Boolean }
|
|
@@ -20558,14 +20558,14 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20558
20558
|
}
|
|
20559
20559
|
return Ie(C, (G) => {
|
|
20560
20560
|
G && (p.value = "", k.value = [], g.value = 0, Je(() => b.value?.focus()));
|
|
20561
|
-
}), (G, te) => (c(), z(n(
|
|
20561
|
+
}), (G, te) => (c(), z(n(Ew), {
|
|
20562
20562
|
modelValue: C.value,
|
|
20563
20563
|
"onUpdate:modelValue": te[4] || (te[4] = (W) => C.value = W),
|
|
20564
20564
|
size: "md"
|
|
20565
20565
|
}, {
|
|
20566
20566
|
default: x(() => [
|
|
20567
|
-
u("div",
|
|
20568
|
-
w(n(
|
|
20567
|
+
u("div", Qx, [
|
|
20568
|
+
w(n(ae), {
|
|
20569
20569
|
icon: n(z1),
|
|
20570
20570
|
size: 16,
|
|
20571
20571
|
class: "admin-search__box-icon"
|
|
@@ -20586,29 +20586,29 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20586
20586
|
te[2] || (te[2] = A1(me((W) => O(-1), ["prevent"]), ["up"])),
|
|
20587
20587
|
te[3] || (te[3] = A1(me((W) => F(S.value[g.value]), ["prevent"]), ["enter"]))
|
|
20588
20588
|
]
|
|
20589
|
-
}, null, 40,
|
|
20589
|
+
}, null, 40, eb), [
|
|
20590
20590
|
[q1, p.value]
|
|
20591
20591
|
]),
|
|
20592
|
-
m.value ? (c(), z(n(
|
|
20592
|
+
m.value ? (c(), z(n(Zw), {
|
|
20593
20593
|
key: 0,
|
|
20594
20594
|
size: "sm"
|
|
20595
20595
|
})) : H("", !0)
|
|
20596
20596
|
]),
|
|
20597
|
-
u("div",
|
|
20598
|
-
Z.value ? U.value ? (c(), h("p",
|
|
20599
|
-
(c(!0), h(X, null,
|
|
20597
|
+
u("div", ab, [
|
|
20598
|
+
Z.value ? U.value ? (c(), h("p", nb, y(r("admin.search.hint_empty", "Ничего не найдено по запросу")) + " «" + y(p.value) + "». ", 1)) : H("", !0) : (c(), h("p", tb, y(r("admin.search.hint_min", "Введите минимум 2 символа. Ищет по разделам и записям всех ресурсов.")), 1)),
|
|
20599
|
+
(c(!0), h(X, null, ee(f.value, (W) => (c(), h("div", {
|
|
20600
20600
|
key: W.label,
|
|
20601
20601
|
class: "admin-search__group"
|
|
20602
20602
|
}, [
|
|
20603
|
-
u("div",
|
|
20604
|
-
n(q9)(W.icon) ? (c(), z(n(
|
|
20603
|
+
u("div", ob, [
|
|
20604
|
+
n(q9)(W.icon) ? (c(), z(n(ae), {
|
|
20605
20605
|
key: 0,
|
|
20606
20606
|
icon: n(q9)(W.icon),
|
|
20607
20607
|
size: 12
|
|
20608
20608
|
}, null, 8, ["icon"])) : H("", !0),
|
|
20609
20609
|
u("span", null, y(W.label), 1)
|
|
20610
20610
|
]),
|
|
20611
|
-
(c(!0), h(X, null,
|
|
20611
|
+
(c(!0), h(X, null, ee(W.items, (J) => (c(), h("button", {
|
|
20612
20612
|
key: W.label + J.url,
|
|
20613
20613
|
type: "button",
|
|
20614
20614
|
class: fe(["admin-search__item", { "admin-search__item--active": B(W, J) === g.value }]),
|
|
@@ -20616,29 +20616,29 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20616
20616
|
onClick: (R) => F(J),
|
|
20617
20617
|
onMousemove: (R) => g.value = B(W, J)
|
|
20618
20618
|
}, [
|
|
20619
|
-
u("span",
|
|
20620
|
-
J.subtitle ? (c(), h("span",
|
|
20621
|
-
B(W, J) === g.value ? (c(), z(n(
|
|
20619
|
+
u("span", ib, y(J.title), 1),
|
|
20620
|
+
J.subtitle ? (c(), h("span", lb, y(J.subtitle), 1)) : H("", !0),
|
|
20621
|
+
B(W, J) === g.value ? (c(), z(n(ae), {
|
|
20622
20622
|
key: 1,
|
|
20623
20623
|
icon: n(No),
|
|
20624
20624
|
size: 13,
|
|
20625
20625
|
class: "admin-search__item-enter"
|
|
20626
20626
|
}, null, 8, ["icon"])) : H("", !0)
|
|
20627
|
-
], 42,
|
|
20627
|
+
], 42, cb))), 128))
|
|
20628
20628
|
]))), 128))
|
|
20629
20629
|
])
|
|
20630
20630
|
]),
|
|
20631
20631
|
_: 1
|
|
20632
20632
|
}, 8, ["modelValue"]));
|
|
20633
20633
|
}
|
|
20634
|
-
}),
|
|
20634
|
+
}), db = { class: "admin-shell-root" }, sb = {
|
|
20635
20635
|
key: 0,
|
|
20636
20636
|
class: "admin-impersonation-banner",
|
|
20637
20637
|
role: "status"
|
|
20638
|
-
},
|
|
20638
|
+
}, hb = { class: "admin-main-footer" }, ub = {
|
|
20639
20639
|
key: 0,
|
|
20640
20640
|
class: "admin-main-footer__copyright"
|
|
20641
|
-
},
|
|
20641
|
+
}, yb = "(max-width: 768px)", G9 = "data-admin-impersonating", pb = /* @__PURE__ */ ne({
|
|
20642
20642
|
__name: "AdminShell",
|
|
20643
20643
|
props: {
|
|
20644
20644
|
collapsed: { type: Boolean, default: void 0 },
|
|
@@ -20678,7 +20678,7 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20678
20678
|
), Do(() => {
|
|
20679
20679
|
typeof document < "u" && document.documentElement.removeAttribute(G9);
|
|
20680
20680
|
}), Oe(() => {
|
|
20681
|
-
typeof window > "u" || typeof window.matchMedia != "function" || (g = window.matchMedia(
|
|
20681
|
+
typeof window > "u" || typeof window.matchMedia != "function" || (g = window.matchMedia(yb), k.value = g.matches, g.matches && f(!0), g.addEventListener("change", Z));
|
|
20682
20682
|
});
|
|
20683
20683
|
function Z(T) {
|
|
20684
20684
|
b(T.matches);
|
|
@@ -20694,8 +20694,8 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20694
20694
|
typeof window < "u" && window.addEventListener("keydown", V);
|
|
20695
20695
|
}), Do(() => {
|
|
20696
20696
|
typeof window < "u" && window.removeEventListener("keydown", V);
|
|
20697
|
-
}), (T, P) => (c(), h("div",
|
|
20698
|
-
a.impersonation ? (c(), h("div",
|
|
20697
|
+
}), (T, P) => (c(), h("div", db, [
|
|
20698
|
+
a.impersonation ? (c(), h("div", sb, [
|
|
20699
20699
|
u("span", null, [
|
|
20700
20700
|
D(y(n(v)("Вы вошли как")) + " ", 1),
|
|
20701
20701
|
u("b", null, y(a.impersonation.asName), 1),
|
|
@@ -20707,14 +20707,14 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20707
20707
|
onClick: S
|
|
20708
20708
|
}, y(n(v)("Выйти из режима")), 1)
|
|
20709
20709
|
])) : H("", !0),
|
|
20710
|
-
w(n(
|
|
20710
|
+
w(n(Ww), {
|
|
20711
20711
|
"model-value": L.value,
|
|
20712
20712
|
class: "admin-shell",
|
|
20713
20713
|
"onUpdate:modelValue": f
|
|
20714
20714
|
}, {
|
|
20715
20715
|
sidebar: x(() => [
|
|
20716
20716
|
ze(T.$slots, "sidebar", {}, () => [
|
|
20717
|
-
w(
|
|
20717
|
+
w(Yx, {
|
|
20718
20718
|
collapsed: L.value,
|
|
20719
20719
|
"brand-name": l.value,
|
|
20720
20720
|
"brand-mark": i.value,
|
|
@@ -20727,7 +20727,7 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20727
20727
|
ze(T.$slots, "topbar", {
|
|
20728
20728
|
openSearch: () => U.value = !0
|
|
20729
20729
|
}, () => [
|
|
20730
|
-
w(
|
|
20730
|
+
w(Hx, {
|
|
20731
20731
|
onToggleSidebar: P[0] || (P[0] = (B) => f(!L.value)),
|
|
20732
20732
|
onOpenSearch: P[1] || (P[1] = (B) => U.value = !0)
|
|
20733
20733
|
})
|
|
@@ -20735,8 +20735,8 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20735
20735
|
]),
|
|
20736
20736
|
footer: x(() => [
|
|
20737
20737
|
ze(T.$slots, "footer", {}, () => [
|
|
20738
|
-
u("div",
|
|
20739
|
-
r.value ? (c(), h("span",
|
|
20738
|
+
u("div", hb, [
|
|
20739
|
+
r.value ? (c(), h("span", ub, y(r.value), 1)) : H("", !0)
|
|
20740
20740
|
])
|
|
20741
20741
|
])
|
|
20742
20742
|
]),
|
|
@@ -20745,21 +20745,21 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20745
20745
|
]),
|
|
20746
20746
|
_: 3
|
|
20747
20747
|
}, 8, ["model-value"]),
|
|
20748
|
-
w(
|
|
20748
|
+
w(rb, {
|
|
20749
20749
|
modelValue: U.value,
|
|
20750
20750
|
"onUpdate:modelValue": P[2] || (P[2] = (B) => U.value = B)
|
|
20751
20751
|
}, null, 8, ["modelValue"])
|
|
20752
20752
|
]));
|
|
20753
20753
|
}
|
|
20754
|
-
}),
|
|
20754
|
+
}), kb = {
|
|
20755
20755
|
class: "admin-page admin-boot-skeleton",
|
|
20756
20756
|
"aria-busy": "true",
|
|
20757
20757
|
"aria-live": "polite"
|
|
20758
|
-
},
|
|
20758
|
+
}, mb = { class: "admin-boot-skeleton__hd" }, vb = { class: "admin-boot-skeleton__row" }, fb = /* @__PURE__ */ ne({
|
|
20759
20759
|
__name: "AdminBootSkeleton",
|
|
20760
20760
|
setup(a) {
|
|
20761
|
-
return (t, o) => (c(), h("div",
|
|
20762
|
-
u("div",
|
|
20761
|
+
return (t, o) => (c(), h("div", kb, [
|
|
20762
|
+
u("div", mb, [
|
|
20763
20763
|
w(n(Re), {
|
|
20764
20764
|
width: "220px",
|
|
20765
20765
|
height: "26px"
|
|
@@ -20769,14 +20769,14 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20769
20769
|
height: "32px"
|
|
20770
20770
|
})
|
|
20771
20771
|
]),
|
|
20772
|
-
u("div",
|
|
20772
|
+
u("div", vb, [
|
|
20773
20773
|
w(n(Re), { height: "88px" }),
|
|
20774
20774
|
w(n(Re), { height: "88px" })
|
|
20775
20775
|
]),
|
|
20776
20776
|
w(n(Re), { height: "240px" })
|
|
20777
20777
|
]));
|
|
20778
20778
|
}
|
|
20779
|
-
}),
|
|
20779
|
+
}), kI = e1("admin-navigation", () => {
|
|
20780
20780
|
const a = A(0), t = M(() => a.value > 0);
|
|
20781
20781
|
function o() {
|
|
20782
20782
|
a.value += 1;
|
|
@@ -20788,10 +20788,10 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20788
20788
|
a.value = 0;
|
|
20789
20789
|
}
|
|
20790
20790
|
return { pending: a, isLoading: t, start: o, end: l, reset: d };
|
|
20791
|
-
}),
|
|
20791
|
+
}), gb = ["aria-label"], Mb = /* @__PURE__ */ ne({
|
|
20792
20792
|
__name: "AdminLoadingBar",
|
|
20793
20793
|
setup(a) {
|
|
20794
|
-
const t =
|
|
20794
|
+
const t = kI(), o = A(!1);
|
|
20795
20795
|
let l = null;
|
|
20796
20796
|
Ie(
|
|
20797
20797
|
() => t.isLoading,
|
|
@@ -20811,40 +20811,40 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20811
20811
|
role: "progressbar",
|
|
20812
20812
|
"aria-busy": "true",
|
|
20813
20813
|
"aria-label": n(v)("Загрузка")
|
|
20814
|
-
}, null, 10,
|
|
20814
|
+
}, null, 10, gb));
|
|
20815
20815
|
}
|
|
20816
|
-
}),
|
|
20816
|
+
}), Ib = {
|
|
20817
20817
|
key: 0,
|
|
20818
20818
|
class: "admin-notif-drawer",
|
|
20819
20819
|
role: "dialog",
|
|
20820
20820
|
"aria-modal": "true",
|
|
20821
20821
|
"aria-labelledby": "admin-notif-drawer-title"
|
|
20822
|
-
},
|
|
20822
|
+
}, wb = { class: "admin-notif-drawer__panel" }, xb = { class: "admin-notif-drawer__hd" }, bb = {
|
|
20823
20823
|
id: "admin-notif-drawer-title",
|
|
20824
20824
|
class: "admin-notif-drawer__title"
|
|
20825
|
-
},
|
|
20825
|
+
}, Lb = {
|
|
20826
20826
|
key: 0,
|
|
20827
20827
|
class: "admin-notif-drawer__unread-badge"
|
|
20828
|
-
},
|
|
20828
|
+
}, Cb = { class: "admin-notif-drawer__hd-actions" }, _b = ["aria-label"], Sb = {
|
|
20829
20829
|
class: "admin-notif-drawer__tabs",
|
|
20830
20830
|
role: "tablist"
|
|
20831
|
-
},
|
|
20831
|
+
}, qb = ["aria-selected", "onClick"], Ab = { class: "admin-notif-drawer__tab-count" }, zb = { class: "admin-notif-drawer__body" }, Hb = {
|
|
20832
20832
|
key: 0,
|
|
20833
20833
|
class: "admin-notif-drawer__empty"
|
|
20834
|
-
},
|
|
20834
|
+
}, Vb = {
|
|
20835
20835
|
key: 1,
|
|
20836
20836
|
class: "admin-notif-drawer__empty"
|
|
20837
|
-
},
|
|
20837
|
+
}, Pb = {
|
|
20838
20838
|
key: 2,
|
|
20839
20839
|
class: "admin-notif-drawer__list"
|
|
20840
|
-
},
|
|
20840
|
+
}, Fb = ["onClick"], jb = ["data-variant"], Db = { class: "admin-notif-drawer__content" }, Bb = { class: "admin-notif-drawer__row" }, Rb = { class: "admin-notif-drawer__item-title" }, $b = { class: "admin-notif-drawer__item-time" }, Tb = {
|
|
20841
20841
|
key: 0,
|
|
20842
20842
|
class: "admin-notif-drawer__item-description"
|
|
20843
|
-
},
|
|
20843
|
+
}, Ub = {
|
|
20844
20844
|
key: 0,
|
|
20845
20845
|
class: "admin-notif-drawer__unread-dot",
|
|
20846
20846
|
"aria-hidden": "true"
|
|
20847
|
-
},
|
|
20847
|
+
}, Ob = ["aria-label", "onClick"], Eb = /* @__PURE__ */ ne({
|
|
20848
20848
|
__name: "NotificationsDrawer",
|
|
20849
20849
|
setup(a) {
|
|
20850
20850
|
const t = P9(), o = M(() => t.isOpen), l = [
|
|
@@ -20908,25 +20908,25 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20908
20908
|
}), (L, f) => (c(), z(lI, { to: "body" }, [
|
|
20909
20909
|
w(_9, { name: "admin-notif-drawer" }, {
|
|
20910
20910
|
default: x(() => [
|
|
20911
|
-
o.value ? (c(), h("div",
|
|
20911
|
+
o.value ? (c(), h("div", Ib, [
|
|
20912
20912
|
u("div", {
|
|
20913
20913
|
class: "admin-notif-drawer__backdrop",
|
|
20914
20914
|
onClick: p
|
|
20915
20915
|
}),
|
|
20916
|
-
u("aside",
|
|
20917
|
-
u("header",
|
|
20918
|
-
u("h2",
|
|
20916
|
+
u("aside", wb, [
|
|
20917
|
+
u("header", xb, [
|
|
20918
|
+
u("h2", bb, [
|
|
20919
20919
|
D(y(n(v)("Уведомления")) + " ", 1),
|
|
20920
|
-
n(t).unreadCount > 0 ? (c(), h("span",
|
|
20920
|
+
n(t).unreadCount > 0 ? (c(), h("span", Lb, y(n(t).unreadCount), 1)) : H("", !0)
|
|
20921
20921
|
]),
|
|
20922
|
-
u("div",
|
|
20922
|
+
u("div", Cb, [
|
|
20923
20923
|
n(t).unreadCount > 0 ? (c(), h("button", {
|
|
20924
20924
|
key: 0,
|
|
20925
20925
|
type: "button",
|
|
20926
20926
|
class: "admin-notif-drawer__mark-all",
|
|
20927
20927
|
onClick: i
|
|
20928
20928
|
}, [
|
|
20929
|
-
w(n(
|
|
20929
|
+
w(n(ae), {
|
|
20930
20930
|
icon: n(i1),
|
|
20931
20931
|
size: 14
|
|
20932
20932
|
}, null, 8, ["icon"]),
|
|
@@ -20938,15 +20938,15 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20938
20938
|
"aria-label": n(v)("Закрыть"),
|
|
20939
20939
|
onClick: p
|
|
20940
20940
|
}, [
|
|
20941
|
-
w(n(
|
|
20941
|
+
w(n(ae), {
|
|
20942
20942
|
icon: n(He),
|
|
20943
20943
|
size: 16
|
|
20944
20944
|
}, null, 8, ["icon"])
|
|
20945
|
-
], 8,
|
|
20945
|
+
], 8, _b)
|
|
20946
20946
|
])
|
|
20947
20947
|
]),
|
|
20948
|
-
u("nav",
|
|
20949
|
-
(c(), h(X, null,
|
|
20948
|
+
u("nav", Sb, [
|
|
20949
|
+
(c(), h(X, null, ee(l, (S) => u("button", {
|
|
20950
20950
|
key: S.key,
|
|
20951
20951
|
type: "button",
|
|
20952
20952
|
role: "tab",
|
|
@@ -20960,12 +20960,12 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20960
20960
|
onClick: (Z) => d(S.key)
|
|
20961
20961
|
}, [
|
|
20962
20962
|
D(y(S.label) + " ", 1),
|
|
20963
|
-
u("span",
|
|
20964
|
-
], 10,
|
|
20963
|
+
u("span", Ab, y(C.value[S.key]), 1)
|
|
20964
|
+
], 10, qb)), 64))
|
|
20965
20965
|
]),
|
|
20966
|
-
u("div",
|
|
20967
|
-
n(t).loading && n(t).items.length === 0 ? (c(), h("div",
|
|
20968
|
-
(c(!0), h(X, null,
|
|
20966
|
+
u("div", zb, [
|
|
20967
|
+
n(t).loading && n(t).items.length === 0 ? (c(), h("div", Hb, y(n(v)("Загрузка…")), 1)) : n(t).items.length === 0 ? (c(), h("div", Vb, y(n(v)("Нет уведомлений")), 1)) : (c(), h("ol", Pb, [
|
|
20968
|
+
(c(!0), h(X, null, ee(n(t).items, (S) => (c(), h("li", {
|
|
20969
20969
|
key: S.id,
|
|
20970
20970
|
class: fe([
|
|
20971
20971
|
"admin-notif-drawer__item",
|
|
@@ -20978,31 +20978,31 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20978
20978
|
"data-variant": k(S),
|
|
20979
20979
|
"aria-hidden": "true"
|
|
20980
20980
|
}, [
|
|
20981
|
-
w(n(
|
|
20981
|
+
w(n(ae), {
|
|
20982
20982
|
icon: m(S),
|
|
20983
20983
|
size: 14
|
|
20984
20984
|
}, null, 8, ["icon"])
|
|
20985
|
-
], 8,
|
|
20986
|
-
u("div",
|
|
20987
|
-
u("div",
|
|
20988
|
-
u("span",
|
|
20989
|
-
u("span",
|
|
20985
|
+
], 8, jb),
|
|
20986
|
+
u("div", Db, [
|
|
20987
|
+
u("div", Bb, [
|
|
20988
|
+
u("span", Rb, y(b(S).title), 1),
|
|
20989
|
+
u("span", $b, y(g(S.created_at)), 1)
|
|
20990
20990
|
]),
|
|
20991
|
-
b(S).description ? (c(), h("div",
|
|
20991
|
+
b(S).description ? (c(), h("div", Tb, y(b(S).description), 1)) : H("", !0)
|
|
20992
20992
|
]),
|
|
20993
|
-
S.read_at === null ? (c(), h("span",
|
|
20993
|
+
S.read_at === null ? (c(), h("span", Ub)) : H("", !0),
|
|
20994
20994
|
u("button", {
|
|
20995
20995
|
type: "button",
|
|
20996
20996
|
class: "admin-notif-drawer__item-delete",
|
|
20997
20997
|
"aria-label": n(v)("Удалить"),
|
|
20998
20998
|
onClick: me((Z) => r(S, Z), ["stop"])
|
|
20999
20999
|
}, [
|
|
21000
|
-
w(n(
|
|
21000
|
+
w(n(ae), {
|
|
21001
21001
|
icon: n(He),
|
|
21002
21002
|
size: 12
|
|
21003
21003
|
}, null, 8, ["icon"])
|
|
21004
|
-
], 8,
|
|
21005
|
-
], 10,
|
|
21004
|
+
], 8, Ob)
|
|
21005
|
+
], 10, Fb))), 128))
|
|
21006
21006
|
]))
|
|
21007
21007
|
])
|
|
21008
21008
|
])
|
|
@@ -21033,11 +21033,11 @@ const pe = {
|
|
|
21033
21033
|
function B9() {
|
|
21034
21034
|
return rI(YI, {});
|
|
21035
21035
|
}
|
|
21036
|
-
const
|
|
21036
|
+
const Zb = { class: "admin-page-host" }, Wb = /* @__PURE__ */ ne({
|
|
21037
21037
|
__name: "AdminApp",
|
|
21038
21038
|
setup(a) {
|
|
21039
21039
|
const t = l1(), o = Qe(), l = B9(), d = co();
|
|
21040
|
-
|
|
21040
|
+
Gw(M(() => d.current === "en" ? Nw : Xw));
|
|
21041
21041
|
const i = M(() => {
|
|
21042
21042
|
const b = o.user;
|
|
21043
21043
|
return b?.impersonator ? { asName: String(b?.name ?? "?") } : null;
|
|
@@ -21058,20 +21058,20 @@ const Eb = { class: "admin-page-host" }, Zb = /* @__PURE__ */ ne({
|
|
|
21058
21058
|
return (b, C) => {
|
|
21059
21059
|
const I = H9("router-view");
|
|
21060
21060
|
return c(), h(X, null, [
|
|
21061
|
-
w(
|
|
21062
|
-
r.value ? (c(), z(
|
|
21061
|
+
w(Mb),
|
|
21062
|
+
r.value ? (c(), z(pb, {
|
|
21063
21063
|
key: 0,
|
|
21064
21064
|
impersonation: i.value,
|
|
21065
21065
|
brand: n(l),
|
|
21066
21066
|
onExitImpersonation: s
|
|
21067
21067
|
}, {
|
|
21068
21068
|
default: x(() => [
|
|
21069
|
-
u("div",
|
|
21069
|
+
u("div", Zb, [
|
|
21070
21070
|
w(I, null, {
|
|
21071
21071
|
default: x(({ Component: L }) => [
|
|
21072
21072
|
w(_9, { name: g.value }, {
|
|
21073
21073
|
default: x(() => [
|
|
21074
|
-
n(m) ? (c(), z($e(L), { key: 0 })) : (c(), z(
|
|
21074
|
+
n(m) ? (c(), z($e(L), { key: 0 })) : (c(), z(fb, { key: 1 }))
|
|
21075
21075
|
]),
|
|
21076
21076
|
_: 2
|
|
21077
21077
|
}, 1032, ["name"])
|
|
@@ -21092,8 +21092,8 @@ const Eb = { class: "admin-page-host" }, Zb = /* @__PURE__ */ ne({
|
|
|
21092
21092
|
]),
|
|
21093
21093
|
_: 1
|
|
21094
21094
|
})),
|
|
21095
|
-
w(
|
|
21096
|
-
w(n(
|
|
21095
|
+
w(Eb),
|
|
21096
|
+
w(n(Kw))
|
|
21097
21097
|
], 64);
|
|
21098
21098
|
};
|
|
21099
21099
|
}
|
|
@@ -21240,7 +21240,7 @@ function R9() {
|
|
|
21240
21240
|
}
|
|
21241
21241
|
};
|
|
21242
21242
|
}
|
|
21243
|
-
const _o = R9(),
|
|
21243
|
+
const _o = R9(), Gb = _o.register, Nb = _o.get, Xb = _o.has, Kb = _o.list, ZF = _o.clear, WF = _o.registerBundle, ew = /* @__PURE__ */ ne({
|
|
21244
21244
|
__name: "UnknownWidget",
|
|
21245
21245
|
props: {
|
|
21246
21246
|
type: {}
|
|
@@ -21258,13 +21258,13 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
21258
21258
|
_: 1
|
|
21259
21259
|
}));
|
|
21260
21260
|
}
|
|
21261
|
-
}),
|
|
21261
|
+
}), aw = /* @__PURE__ */ ne({
|
|
21262
21262
|
__name: "WidgetRenderer",
|
|
21263
21263
|
props: {
|
|
21264
21264
|
node: {}
|
|
21265
21265
|
},
|
|
21266
21266
|
setup(a) {
|
|
21267
|
-
const t = a, o = M(() =>
|
|
21267
|
+
const t = a, o = M(() => Nb(t.node.type)), l = M(() => {
|
|
21268
21268
|
const {
|
|
21269
21269
|
type: d,
|
|
21270
21270
|
span: i,
|
|
@@ -21301,7 +21301,7 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
21301
21301
|
title: n(v)("Перетащить"),
|
|
21302
21302
|
"data-drag-handle": "true"
|
|
21303
21303
|
}, [
|
|
21304
|
-
w(n(
|
|
21304
|
+
w(n(ae), {
|
|
21305
21305
|
icon: n(vo),
|
|
21306
21306
|
size: 14
|
|
21307
21307
|
}, null, 8, ["icon"])
|
|
@@ -21313,7 +21313,7 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
21313
21313
|
title: n(v)("Настройки"),
|
|
21314
21314
|
onClick: o[0] || (o[0] = (l) => t.$emit("configure"))
|
|
21315
21315
|
}, [
|
|
21316
|
-
w(n(
|
|
21316
|
+
w(n(ae), {
|
|
21317
21317
|
icon: n(Io),
|
|
21318
21318
|
size: 14
|
|
21319
21319
|
}, null, 8, ["icon"])
|
|
@@ -21325,7 +21325,7 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
21325
21325
|
title: n(v)("Удалить"),
|
|
21326
21326
|
onClick: o[1] || (o[1] = (l) => t.$emit("remove"))
|
|
21327
21327
|
}, [
|
|
21328
|
-
w(n(
|
|
21328
|
+
w(n(ae), {
|
|
21329
21329
|
icon: n(He),
|
|
21330
21330
|
size: 14
|
|
21331
21331
|
}, null, 8, ["icon"])
|
|
@@ -21386,7 +21386,7 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
21386
21386
|
function d(B) {
|
|
21387
21387
|
l("restore", B), l("close");
|
|
21388
21388
|
}
|
|
21389
|
-
const i = M(() =>
|
|
21389
|
+
const i = M(() => Kb()), s = A(""), r = A(""), p = A("6"), m = A(`# Новая заметка
|
|
21390
21390
|
|
|
21391
21391
|
Текст…`), k = A("LABEL"), g = A("0"), b = A("50"), C = A(v("Янв, Фев, Мар, Апр")), I = A("10, 20, 15, 30"), L = A(""), f = A("5");
|
|
21392
21392
|
Ie(
|
|
@@ -21481,7 +21481,7 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
21481
21481
|
"aria-label": n(v)("Закрыть"),
|
|
21482
21482
|
onClick: P
|
|
21483
21483
|
}, [
|
|
21484
|
-
w(n(
|
|
21484
|
+
w(n(ae), {
|
|
21485
21485
|
icon: n(He),
|
|
21486
21486
|
size: 16
|
|
21487
21487
|
}, null, 8, ["icon"])
|
|
@@ -21491,7 +21491,7 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
21491
21491
|
a.mode === "add" ? (c(), h("div", rL, [
|
|
21492
21492
|
u("label", dL, y(n(v)("Скрытые виджеты")), 1),
|
|
21493
21493
|
a.restorable.length === 0 ? (c(), h("p", sL, y(n(v)("Нечего добавлять — все виджеты дашборда уже показаны.")), 1)) : (c(), h("div", hL, [
|
|
21494
|
-
(c(!0), h(X, null,
|
|
21494
|
+
(c(!0), h(X, null, ee(a.restorable, (O) => (c(), h("button", {
|
|
21495
21495
|
key: O.slug,
|
|
21496
21496
|
type: "button",
|
|
21497
21497
|
class: "admin-dialog__type-card",
|
|
@@ -21509,7 +21509,7 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
21509
21509
|
u("span", { class: "admin-dialog__required" }, "*")
|
|
21510
21510
|
], -1)),
|
|
21511
21511
|
i.value.length === 0 ? (c(), h("p", mL, y(n(v)("Нет виджетов для добавления — все доступные типы уже на дашборде")) + " " + y(n(v)("или ни один не зарегистрирован.")), 1)) : (c(), h("div", vL, [
|
|
21512
|
-
(c(!0), h(X, null,
|
|
21512
|
+
(c(!0), h(X, null, ee(i.value, (O) => (c(), h("button", {
|
|
21513
21513
|
key: O,
|
|
21514
21514
|
type: "button",
|
|
21515
21515
|
class: fe([
|
|
@@ -21649,7 +21649,7 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
21649
21649
|
}), EL = { class: "admin-page admin-dashboard" }, ZL = { class: "admin-page__hd" }, WL = { class: "admin-page__title-wrap" }, GL = { class: "admin-page__title" }, NL = {
|
|
21650
21650
|
key: 0,
|
|
21651
21651
|
class: "admin-page__count"
|
|
21652
|
-
}, XL = { class: "admin-page__actions" }, KL = ["draggable", "onDragstart", "onDragover", "onDrop"], JL = ["aria-label", "onMousedown"], YL = 140, QL = 16,
|
|
21652
|
+
}, XL = { class: "admin-page__actions" }, KL = ["draggable", "onDragstart", "onDragover", "onDrop"], JL = ["aria-label", "onMousedown"], YL = 140, QL = 16, tw = /* @__PURE__ */ ne({
|
|
21653
21653
|
__name: "DashboardPage",
|
|
21654
21654
|
props: {
|
|
21655
21655
|
slug: { default: void 0 },
|
|
@@ -21960,13 +21960,13 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
21960
21960
|
"data-testid": "dash-period"
|
|
21961
21961
|
}, {
|
|
21962
21962
|
prepend: x(() => [
|
|
21963
|
-
w(n(
|
|
21963
|
+
w(n(ae), {
|
|
21964
21964
|
icon: n(ho),
|
|
21965
21965
|
size: 14
|
|
21966
21966
|
}, null, 8, ["icon"])
|
|
21967
21967
|
]),
|
|
21968
21968
|
append: x(() => [
|
|
21969
|
-
w(n(
|
|
21969
|
+
w(n(ae), {
|
|
21970
21970
|
icon: n(h1),
|
|
21971
21971
|
size: 14
|
|
21972
21972
|
}, null, 8, ["icon"])
|
|
@@ -21978,7 +21978,7 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
21978
21978
|
})
|
|
21979
21979
|
]),
|
|
21980
21980
|
default: x(() => [
|
|
21981
|
-
(c(!0), h(X, null,
|
|
21981
|
+
(c(!0), h(X, null, ee(Z.value, (le) => (c(), z(n(De), {
|
|
21982
21982
|
key: le.key,
|
|
21983
21983
|
onClick: (re) => T(le.key)
|
|
21984
21984
|
}, {
|
|
@@ -21997,7 +21997,7 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
21997
21997
|
onClick: O9
|
|
21998
21998
|
}, {
|
|
21999
21999
|
prepend: x(() => [
|
|
22000
|
-
w(n(
|
|
22000
|
+
w(n(ae), {
|
|
22001
22001
|
icon: n(po),
|
|
22002
22002
|
size: 14
|
|
22003
22003
|
}, null, 8, ["icon"])
|
|
@@ -22015,7 +22015,7 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
22015
22015
|
onClick: _
|
|
22016
22016
|
}, {
|
|
22017
22017
|
prepend: x(() => [
|
|
22018
|
-
w(n(
|
|
22018
|
+
w(n(ae), {
|
|
22019
22019
|
icon: n(Te),
|
|
22020
22020
|
size: 14
|
|
22021
22021
|
}, null, 8, ["icon"])
|
|
@@ -22031,7 +22031,7 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
22031
22031
|
onClick: ce
|
|
22032
22032
|
}, {
|
|
22033
22033
|
prepend: x(() => [
|
|
22034
|
-
w(n(
|
|
22034
|
+
w(n(ae), {
|
|
22035
22035
|
icon: n(no),
|
|
22036
22036
|
size: 14
|
|
22037
22037
|
}, null, 8, ["icon"])
|
|
@@ -22071,7 +22071,7 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
22071
22071
|
onClick: q
|
|
22072
22072
|
}, {
|
|
22073
22073
|
prepend: x(() => [
|
|
22074
|
-
w(n(
|
|
22074
|
+
w(n(ae), {
|
|
22075
22075
|
icon: n(u1),
|
|
22076
22076
|
size: 14
|
|
22077
22077
|
}, null, 8, ["icon"])
|
|
@@ -22089,7 +22089,7 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
22089
22089
|
{ "admin-dashboard__grid--editing": n(i).editMode }
|
|
22090
22090
|
])
|
|
22091
22091
|
}, [
|
|
22092
|
-
(c(!0), h(X, null,
|
|
22092
|
+
(c(!0), h(X, null, ee(L.value, (le, re) => (c(), h("div", {
|
|
22093
22093
|
key: le.layoutSlug,
|
|
22094
22094
|
class: fe(["admin-dashboard__cell", {
|
|
22095
22095
|
"admin-dashboard__cell--editing": n(i).editMode,
|
|
@@ -22107,7 +22107,7 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
22107
22107
|
onDrop: (ve) => U9(re, ve),
|
|
22108
22108
|
onDragend: $9
|
|
22109
22109
|
}, [
|
|
22110
|
-
w(
|
|
22110
|
+
w(aw, {
|
|
22111
22111
|
node: le.node
|
|
22112
22112
|
}, null, 8, ["node"]),
|
|
22113
22113
|
n(i).editMode ? (c(), z(aL, {
|
|
@@ -22156,7 +22156,7 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
22156
22156
|
m && p.openDashboard(m);
|
|
22157
22157
|
},
|
|
22158
22158
|
{ immediate: !0 }
|
|
22159
|
-
), (m, k) => r.value ? (c(), z(
|
|
22159
|
+
), (m, k) => r.value ? (c(), z(tw, {
|
|
22160
22160
|
key: 0,
|
|
22161
22161
|
slug: r.value
|
|
22162
22162
|
}, null, 8, ["slug"])) : (c(), h("div", eC, [
|
|
@@ -22173,7 +22173,7 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
22173
22173
|
i.value.length ? (c(), h("section", nC, [
|
|
22174
22174
|
u("h2", oC, y(n(v)("Ресурсы")), 1),
|
|
22175
22175
|
u("ul", cC, [
|
|
22176
|
-
(c(!0), h(X, null,
|
|
22176
|
+
(c(!0), h(X, null, ee(i.value, (g) => (c(), h("li", {
|
|
22177
22177
|
key: g.slug
|
|
22178
22178
|
}, [
|
|
22179
22179
|
u("button", {
|
|
@@ -22355,27 +22355,27 @@ const _o = R9(), Wb = _o.register, Gb = _o.get, Nb = _o.has, Xb = _o.list, EF =
|
|
|
22355
22355
|
setErrors: P,
|
|
22356
22356
|
clearErrors: B
|
|
22357
22357
|
};
|
|
22358
|
-
}),
|
|
22359
|
-
function
|
|
22360
|
-
|
|
22358
|
+
}), mI = /* @__PURE__ */ Symbol("admin.infolist-record");
|
|
22359
|
+
function nw(a) {
|
|
22360
|
+
Pw(mI, a);
|
|
22361
22361
|
}
|
|
22362
|
-
function
|
|
22363
|
-
const a = rI(
|
|
22362
|
+
function GF() {
|
|
22363
|
+
const a = rI(mI);
|
|
22364
22364
|
if (!a)
|
|
22365
22365
|
throw new Error("useRecord() called outside of provideRecord() scope");
|
|
22366
22366
|
return a;
|
|
22367
22367
|
}
|
|
22368
22368
|
function N2() {
|
|
22369
|
-
return rI(
|
|
22369
|
+
return rI(mI, null);
|
|
22370
22370
|
}
|
|
22371
|
-
const So = R9(), qo = R9(), wC = So.register,
|
|
22372
|
-
function
|
|
22371
|
+
const So = R9(), qo = R9(), wC = So.register, ow = So.get, xC = So.has, NF = So.list, bC = qo.register, CI = qo.get, LC = qo.has, XF = qo.list;
|
|
22372
|
+
function KF() {
|
|
22373
22373
|
So.clear(), qo.clear();
|
|
22374
22374
|
}
|
|
22375
|
-
function
|
|
22375
|
+
function JF(a) {
|
|
22376
22376
|
a.fields && So.registerBundle(a.fields), a.layouts && qo.registerBundle(a.layouts);
|
|
22377
22377
|
}
|
|
22378
|
-
const
|
|
22378
|
+
const cw = /* @__PURE__ */ ne({
|
|
22379
22379
|
__name: "UnknownField",
|
|
22380
22380
|
props: {
|
|
22381
22381
|
type: {},
|
|
@@ -22397,13 +22397,13 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22397
22397
|
_: 1
|
|
22398
22398
|
}));
|
|
22399
22399
|
}
|
|
22400
|
-
}),
|
|
22400
|
+
}), vI = /* @__PURE__ */ ne({
|
|
22401
22401
|
__name: "FieldRenderer",
|
|
22402
22402
|
props: {
|
|
22403
22403
|
node: {}
|
|
22404
22404
|
},
|
|
22405
22405
|
setup(a) {
|
|
22406
|
-
const t = a, o = M(() =>
|
|
22406
|
+
const t = a, o = M(() => ow(t.node.type)), l = hx(), d = M(() => {
|
|
22407
22407
|
const r = l?.mode;
|
|
22408
22408
|
return r ? t.node.visibility?.[r] !== !1 : !0;
|
|
22409
22409
|
}), i = M(() => {
|
|
@@ -22422,7 +22422,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22422
22422
|
return { ...m, ...p ?? {} };
|
|
22423
22423
|
});
|
|
22424
22424
|
return (r, p) => d.value && i.value ? (c(), h(X, { key: 0 }, [
|
|
22425
|
-
o.value ? (c(), z($e(o.value), O2(Qn({ key: 0 }, s.value)), null, 16)) : (c(), z(
|
|
22425
|
+
o.value ? (c(), z($e(o.value), O2(Qn({ key: 0 }, s.value)), null, 16)) : (c(), z(cw, {
|
|
22426
22426
|
key: 1,
|
|
22427
22427
|
type: a.node.type,
|
|
22428
22428
|
name: a.node.name
|
|
@@ -22439,19 +22439,19 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22439
22439
|
if (t.node.kind === "field")
|
|
22440
22440
|
return { kind: "field" };
|
|
22441
22441
|
if (t.node.kind === "layout") {
|
|
22442
|
-
const s =
|
|
22442
|
+
const s = CI(t.node.type);
|
|
22443
22443
|
return s ? { kind: "layout", component: s } : { kind: "unknown" };
|
|
22444
22444
|
}
|
|
22445
|
-
const i =
|
|
22446
|
-
return i ? { kind: "layout", component: i } :
|
|
22445
|
+
const i = CI(t.node.type);
|
|
22446
|
+
return i ? { kind: "layout", component: i } : ow(t.node.type) ? { kind: "field" } : { kind: "unknown" };
|
|
22447
22447
|
}), l = M(() => {
|
|
22448
22448
|
const { type: i, kind: s, ...r } = t.node;
|
|
22449
22449
|
return r;
|
|
22450
22450
|
}), d = M(() => t.node);
|
|
22451
|
-
return (i, s) => o.value.kind === "layout" && o.value.component ? (c(), z($e(o.value.component), O2(Qn({ key: 0 }, l.value)), null, 16)) : o.value.kind === "field" ? (c(), z(
|
|
22451
|
+
return (i, s) => o.value.kind === "layout" && o.value.component ? (c(), z($e(o.value.component), O2(Qn({ key: 0 }, l.value)), null, 16)) : o.value.kind === "field" ? (c(), z(vI, {
|
|
22452
22452
|
key: 1,
|
|
22453
22453
|
node: d.value
|
|
22454
|
-
}, null, 8, ["node"])) : (c(), z(
|
|
22454
|
+
}, null, 8, ["node"])) : (c(), z(cw, {
|
|
22455
22455
|
key: 2,
|
|
22456
22456
|
type: a.node.type,
|
|
22457
22457
|
name: a.node.name
|
|
@@ -22473,7 +22473,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22473
22473
|
},
|
|
22474
22474
|
setup(a) {
|
|
22475
22475
|
const t = a, o = l1(), l = IC(), d = M(() => t.slug ? t.slug : String(o.params.slug ?? o.meta?.slug ?? "")), i = V9(l.state, l.errors);
|
|
22476
|
-
|
|
22476
|
+
nw(l.state), Ie(
|
|
22477
22477
|
() => l.errors,
|
|
22478
22478
|
(k) => {
|
|
22479
22479
|
i.setErrors({ ...k });
|
|
@@ -22511,7 +22511,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22511
22511
|
n(l).description ? (c(), h("p", AC, y(n(l).description), 1)) : H("", !0)
|
|
22512
22512
|
]),
|
|
22513
22513
|
n(l).commandBar.length > 0 ? (c(), h("div", zC, [
|
|
22514
|
-
(c(!0), h(X, null,
|
|
22514
|
+
(c(!0), h(X, null, ee(n(l).commandBar, (b) => (c(), z(n(oe), {
|
|
22515
22515
|
key: b.name,
|
|
22516
22516
|
variant: m(b),
|
|
22517
22517
|
icon: b.icon ?? void 0,
|
|
@@ -22548,7 +22548,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22548
22548
|
_: 1
|
|
22549
22549
|
})) : H("", !0),
|
|
22550
22550
|
n(l).loading ? (c(), h("div", HC, [
|
|
22551
|
-
(c(), h(X, null,
|
|
22551
|
+
(c(), h(X, null, ee(4, (b) => w(n(Re), {
|
|
22552
22552
|
key: b,
|
|
22553
22553
|
height: "40px"
|
|
22554
22554
|
})), 64))
|
|
@@ -22558,7 +22558,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22558
22558
|
class: "admin-screen-page__body"
|
|
22559
22559
|
}, {
|
|
22560
22560
|
default: x(() => [
|
|
22561
|
-
(c(!0), h(X, null,
|
|
22561
|
+
(c(!0), h(X, null, ee(s.value, (b, C) => (c(), z(bo, {
|
|
22562
22562
|
key: C,
|
|
22563
22563
|
node: b
|
|
22564
22564
|
}, null, 8, ["node"]))), 128))
|
|
@@ -22639,7 +22639,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22639
22639
|
"data-testid": "login-password"
|
|
22640
22640
|
}, null, 8, ["modelValue", "label", "disabled", "error"]),
|
|
22641
22641
|
u("div", PC, [
|
|
22642
|
-
w(n(
|
|
22642
|
+
w(n(OI), {
|
|
22643
22643
|
modelValue: s.value,
|
|
22644
22644
|
"onUpdate:modelValue": I[2] || (I[2] = (L) => s.value = L),
|
|
22645
22645
|
disabled: r.value,
|
|
@@ -22755,7 +22755,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22755
22755
|
class: "admin-code-input",
|
|
22756
22756
|
onPaste: f
|
|
22757
22757
|
}, [
|
|
22758
|
-
(c(!0), h(X, null,
|
|
22758
|
+
(c(!0), h(X, null, ee(i.value, (P, B) => (c(), h("input", {
|
|
22759
22759
|
key: B,
|
|
22760
22760
|
ref_for: !0,
|
|
22761
22761
|
ref: (F) => C(B, F),
|
|
@@ -22967,7 +22967,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22967
22967
|
loading: i.value
|
|
22968
22968
|
}, {
|
|
22969
22969
|
prepend: x(() => [
|
|
22970
|
-
w(n(
|
|
22970
|
+
w(n(ae), {
|
|
22971
22971
|
icon: n(fo),
|
|
22972
22972
|
size: 14
|
|
22973
22973
|
}, null, 8, ["icon"])
|
|
@@ -23083,7 +23083,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
23083
23083
|
loading: m.value
|
|
23084
23084
|
}, {
|
|
23085
23085
|
prepend: x(() => [
|
|
23086
|
-
w(n(
|
|
23086
|
+
w(n(ae), {
|
|
23087
23087
|
icon: n(i1),
|
|
23088
23088
|
size: 14
|
|
23089
23089
|
}, null, 8, ["icon"])
|
|
@@ -23100,8 +23100,8 @@ const ow = /* @__PURE__ */ ne({
|
|
|
23100
23100
|
})
|
|
23101
23101
|
]));
|
|
23102
23102
|
}
|
|
23103
|
-
}),
|
|
23104
|
-
const a = A(null), t = A([]), o = A({ ...
|
|
23103
|
+
}), _I = { page: 1, per_page: 20, total: 0, last_page: 1 }, iw = e1("admin-resource-index", () => {
|
|
23104
|
+
const a = A(null), t = A([]), o = A({ ..._I }), l = A(!1), d = A(!1), i = A(null);
|
|
23105
23105
|
let s = null;
|
|
23106
23106
|
const r = 200, p = A(""), m = A({}), k = A(null), g = A(null), b = A(/* @__PURE__ */ new Set()), C = M(() => !l.value && i.value === null && t.value.length === 0), I = M(() => b.value.size), L = M(() => b.value.size > 0), f = M(() => i.value !== null), S = M(() => b.value.size === 0 || t.value.length === 0 ? "none" : t.value.every((E) => b.value.has(Z(E))) ? "all" : "mixed");
|
|
23107
23107
|
function Z(q) {
|
|
@@ -23111,7 +23111,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
23111
23111
|
a.value !== q && (a.value = q, V(), l.value = !0);
|
|
23112
23112
|
}
|
|
23113
23113
|
function V() {
|
|
23114
|
-
t.value = [], o.value = { ...
|
|
23114
|
+
t.value = [], o.value = { ..._I }, l.value = !1, i.value = null, p.value = "", m.value = {}, k.value = null, g.value = null, b.value = /* @__PURE__ */ new Set();
|
|
23115
23115
|
}
|
|
23116
23116
|
function T(q = {}) {
|
|
23117
23117
|
const E = {
|
|
@@ -23215,17 +23215,17 @@ const ow = /* @__PURE__ */ ne({
|
|
|
23215
23215
|
};
|
|
23216
23216
|
}), m_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23217
23217
|
__proto__: null,
|
|
23218
|
-
useResourceIndexStore:
|
|
23219
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
23218
|
+
useResourceIndexStore: iw
|
|
23219
|
+
}, Symbol.toStringTag, { value: "Module" })), SI = "d.m.Y H:i:s", v_ = "d.m.Y", f_ = /^\d{4}-\d{2}-\d{2}[T\s]\d{2}:\d{2}/;
|
|
23220
23220
|
function X2(a, t, o = {}) {
|
|
23221
23221
|
if (a == null) return "";
|
|
23222
23222
|
if (!t && typeof a == "string" && f_.test(a))
|
|
23223
|
-
return N9(a,
|
|
23223
|
+
return N9(a, SI);
|
|
23224
23224
|
switch (t) {
|
|
23225
23225
|
case "date":
|
|
23226
23226
|
return N9(String(a), o.format ?? v_);
|
|
23227
23227
|
case "datetime":
|
|
23228
|
-
return N9(String(a), o.format ??
|
|
23228
|
+
return N9(String(a), o.format ?? SI);
|
|
23229
23229
|
case "money":
|
|
23230
23230
|
return g_(a, o.currency ?? "RUB", o.decimals ?? 2);
|
|
23231
23231
|
case "boolean":
|
|
@@ -23233,12 +23233,12 @@ function X2(a, t, o = {}) {
|
|
|
23233
23233
|
case "bytes":
|
|
23234
23234
|
return I_(a);
|
|
23235
23235
|
case "json":
|
|
23236
|
-
return
|
|
23236
|
+
return qI(a);
|
|
23237
23237
|
default:
|
|
23238
|
-
return Array.isArray(a) || a !== null && typeof a == "object" ?
|
|
23238
|
+
return Array.isArray(a) || a !== null && typeof a == "object" ? qI(a) : String(a);
|
|
23239
23239
|
}
|
|
23240
23240
|
}
|
|
23241
|
-
function
|
|
23241
|
+
function qI(a) {
|
|
23242
23242
|
try {
|
|
23243
23243
|
return JSON.stringify(a, null, 2);
|
|
23244
23244
|
} catch {
|
|
@@ -23284,7 +23284,7 @@ function I_(a) {
|
|
|
23284
23284
|
const t = typeof a == "number" ? a : Number(a);
|
|
23285
23285
|
return isNaN(t) ? String(a) : t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFixed(1)} KB` : t < 1024 * 1024 * 1024 ? `${(t / 1024 / 1024).toFixed(1)} MB` : `${(t / 1024 / 1024 / 1024).toFixed(1)} GB`;
|
|
23286
23286
|
}
|
|
23287
|
-
const
|
|
23287
|
+
const AI = ne({
|
|
23288
23288
|
name: "FilterEditor",
|
|
23289
23289
|
props: {
|
|
23290
23290
|
filter: { type: Object, required: !0 },
|
|
@@ -23417,7 +23417,7 @@ const qI = ne({
|
|
|
23417
23417
|
}, T_ = { class: "admin-toolbar__chip-text" }, U_ = ["checked", "onChange"], O_ = {
|
|
23418
23418
|
type: "button",
|
|
23419
23419
|
class: "admin-toolbar__chip"
|
|
23420
|
-
}, E_ = { class: "admin-toolbar__chip-text" }, Z_ = ["placeholder"], W_ = { class: "admin-toolbar__popover-actions" },
|
|
23420
|
+
}, E_ = { class: "admin-toolbar__chip-text" }, Z_ = ["placeholder"], W_ = { class: "admin-toolbar__popover-actions" }, zI = 4, G_ = /* @__PURE__ */ ne({
|
|
23421
23421
|
__name: "AdminFilterToolbar",
|
|
23422
23422
|
props: {
|
|
23423
23423
|
search: {},
|
|
@@ -23450,11 +23450,11 @@ const qI = ne({
|
|
|
23450
23450
|
() => o.filters.filter((_) => !s(o.values[_.name]))
|
|
23451
23451
|
), m = A(/* @__PURE__ */ new Set()), k = M(
|
|
23452
23452
|
() => p.value.filter(
|
|
23453
|
-
(_, j) => m.value.has(_.name) || j <
|
|
23453
|
+
(_, j) => m.value.has(_.name) || j < zI
|
|
23454
23454
|
)
|
|
23455
23455
|
), g = M(
|
|
23456
23456
|
() => p.value.filter(
|
|
23457
|
-
(_, j) => !m.value.has(_.name) && j >=
|
|
23457
|
+
(_, j) => !m.value.has(_.name) && j >= zI
|
|
23458
23458
|
)
|
|
23459
23459
|
);
|
|
23460
23460
|
function b(_) {
|
|
@@ -23533,7 +23533,7 @@ const qI = ne({
|
|
|
23533
23533
|
return (_, j) => (c(), h("div", w_, [
|
|
23534
23534
|
u("div", x_, [
|
|
23535
23535
|
u("label", b_, [
|
|
23536
|
-
w(n(
|
|
23536
|
+
w(n(ae), {
|
|
23537
23537
|
icon: n(z1),
|
|
23538
23538
|
size: 14,
|
|
23539
23539
|
class: "admin-toolbar__search-icon"
|
|
@@ -23550,12 +23550,12 @@ const qI = ne({
|
|
|
23550
23550
|
])
|
|
23551
23551
|
]),
|
|
23552
23552
|
a.filters.length > 0 ? (c(), h("span", C_)) : H("", !0),
|
|
23553
|
-
(c(!0), h(X, null,
|
|
23553
|
+
(c(!0), h(X, null, ee(r.value, (q) => (c(), z(n(je), {
|
|
23554
23554
|
key: `active-${q.name}`
|
|
23555
23555
|
}, {
|
|
23556
23556
|
trigger: x(() => [
|
|
23557
23557
|
u("button", __, [
|
|
23558
|
-
R(q.icon) !== null ? (c(), z(n(
|
|
23558
|
+
R(q.icon) !== null ? (c(), z(n(ae), {
|
|
23559
23559
|
key: 0,
|
|
23560
23560
|
icon: R(q.icon),
|
|
23561
23561
|
size: 14
|
|
@@ -23569,7 +23569,7 @@ const qI = ne({
|
|
|
23569
23569
|
onClick: me((E) => I(q.name), ["stop"]),
|
|
23570
23570
|
onKeydown: A1(me((E) => I(q.name), ["stop"]), ["enter"])
|
|
23571
23571
|
}, [
|
|
23572
|
-
w(n(
|
|
23572
|
+
w(n(ae), {
|
|
23573
23573
|
icon: n(He),
|
|
23574
23574
|
size: 12
|
|
23575
23575
|
}, null, 8, ["icon"])
|
|
@@ -23582,7 +23582,7 @@ const qI = ne({
|
|
|
23582
23582
|
onKeydown: j[1] || (j[1] = me(() => {
|
|
23583
23583
|
}, ["stop"]))
|
|
23584
23584
|
}, [
|
|
23585
|
-
w(n(
|
|
23585
|
+
w(n(AI), {
|
|
23586
23586
|
filter: q,
|
|
23587
23587
|
draft: S(q.name),
|
|
23588
23588
|
"is-checked": (E) => T(q.name, E),
|
|
@@ -23616,12 +23616,12 @@ const qI = ne({
|
|
|
23616
23616
|
]),
|
|
23617
23617
|
_: 2
|
|
23618
23618
|
}, 1024))), 128)),
|
|
23619
|
-
(c(!0), h(X, null,
|
|
23619
|
+
(c(!0), h(X, null, ee(k.value, (q) => (c(), z(n(je), {
|
|
23620
23620
|
key: `inactive-${q.name}`
|
|
23621
23621
|
}, {
|
|
23622
23622
|
trigger: x(() => [
|
|
23623
23623
|
u("button", z_, [
|
|
23624
|
-
R(q.icon) !== null ? (c(), z(n(
|
|
23624
|
+
R(q.icon) !== null ? (c(), z(n(ae), {
|
|
23625
23625
|
key: 0,
|
|
23626
23626
|
icon: R(q.icon),
|
|
23627
23627
|
size: 14
|
|
@@ -23635,7 +23635,7 @@ const qI = ne({
|
|
|
23635
23635
|
onKeydown: j[2] || (j[2] = me(() => {
|
|
23636
23636
|
}, ["stop"]))
|
|
23637
23637
|
}, [
|
|
23638
|
-
w(n(
|
|
23638
|
+
w(n(AI), {
|
|
23639
23639
|
filter: q,
|
|
23640
23640
|
draft: S(q.name),
|
|
23641
23641
|
"is-checked": (E) => T(q.name, E),
|
|
@@ -23672,7 +23672,7 @@ const qI = ne({
|
|
|
23672
23672
|
g.value.length > 0 ? (c(), z(n(je), { key: 1 }, {
|
|
23673
23673
|
trigger: x(() => [
|
|
23674
23674
|
u("button", P_, [
|
|
23675
|
-
w(n(
|
|
23675
|
+
w(n(ae), {
|
|
23676
23676
|
icon: n(Te),
|
|
23677
23677
|
size: 14
|
|
23678
23678
|
}, null, 8, ["icon"]),
|
|
@@ -23685,14 +23685,14 @@ const qI = ne({
|
|
|
23685
23685
|
onKeydown: j[3] || (j[3] = me(() => {
|
|
23686
23686
|
}, ["stop"]))
|
|
23687
23687
|
}, [
|
|
23688
|
-
(c(!0), h(X, null,
|
|
23688
|
+
(c(!0), h(X, null, ee(g.value, (q) => (c(), h("button", {
|
|
23689
23689
|
key: q.name,
|
|
23690
23690
|
type: "button",
|
|
23691
23691
|
role: "menuitem",
|
|
23692
23692
|
class: "admin-toolbar__list-item",
|
|
23693
23693
|
onClick: (E) => b(q.name)
|
|
23694
23694
|
}, [
|
|
23695
|
-
R(q.icon) !== null ? (c(), z(n(
|
|
23695
|
+
R(q.icon) !== null ? (c(), z(n(ae), {
|
|
23696
23696
|
key: 0,
|
|
23697
23697
|
icon: R(q.icon),
|
|
23698
23698
|
size: 14
|
|
@@ -23711,7 +23711,7 @@ const qI = ne({
|
|
|
23711
23711
|
onClick: j[4] || (j[4] = (q) => l("reset"))
|
|
23712
23712
|
}, {
|
|
23713
23713
|
prepend: x(() => [
|
|
23714
|
-
w(n(
|
|
23714
|
+
w(n(ae), {
|
|
23715
23715
|
icon: n(no),
|
|
23716
23716
|
size: 14
|
|
23717
23717
|
}, null, 8, ["icon"])
|
|
@@ -23725,7 +23725,7 @@ const qI = ne({
|
|
|
23725
23725
|
P.value.length > 0 ? (c(), z(n(je), { key: 4 }, {
|
|
23726
23726
|
trigger: x(() => [
|
|
23727
23727
|
u("button", D_, [
|
|
23728
|
-
w(n(
|
|
23728
|
+
w(n(ae), {
|
|
23729
23729
|
icon: n(y2),
|
|
23730
23730
|
size: 14
|
|
23731
23731
|
}, null, 8, ["icon"]),
|
|
@@ -23745,14 +23745,14 @@ const qI = ne({
|
|
|
23745
23745
|
onClick: j[5] || (j[5] = (q) => B(null, () => {
|
|
23746
23746
|
}))
|
|
23747
23747
|
}, [
|
|
23748
|
-
a.groupBy ? H("", !0) : (c(), z(n(
|
|
23748
|
+
a.groupBy ? H("", !0) : (c(), z(n(ae), {
|
|
23749
23749
|
key: 0,
|
|
23750
23750
|
icon: n(i1),
|
|
23751
23751
|
size: 14
|
|
23752
23752
|
}, null, 8, ["icon"])),
|
|
23753
23753
|
u("span", null, y(n(v)("Без группировки")), 1)
|
|
23754
23754
|
]),
|
|
23755
|
-
(c(!0), h(X, null,
|
|
23755
|
+
(c(!0), h(X, null, ee(P.value, (q) => (c(), h("button", {
|
|
23756
23756
|
key: F(q),
|
|
23757
23757
|
type: "button",
|
|
23758
23758
|
role: "menuitem",
|
|
@@ -23760,7 +23760,7 @@ const qI = ne({
|
|
|
23760
23760
|
onClick: (E) => B(F(q), () => {
|
|
23761
23761
|
})
|
|
23762
23762
|
}, [
|
|
23763
|
-
a.groupBy === F(q) ? (c(), z(n(
|
|
23763
|
+
a.groupBy === F(q) ? (c(), z(n(ae), {
|
|
23764
23764
|
key: 0,
|
|
23765
23765
|
icon: n(i1),
|
|
23766
23766
|
size: 14
|
|
@@ -23774,7 +23774,7 @@ const qI = ne({
|
|
|
23774
23774
|
a.columns.length > 0 ? (c(), z(n(je), { key: 5 }, {
|
|
23775
23775
|
trigger: x(() => [
|
|
23776
23776
|
u("button", $_, [
|
|
23777
|
-
w(n(
|
|
23777
|
+
w(n(ae), {
|
|
23778
23778
|
icon: n(x1),
|
|
23779
23779
|
size: 14
|
|
23780
23780
|
}, null, 8, ["icon"]),
|
|
@@ -23787,7 +23787,7 @@ const qI = ne({
|
|
|
23787
23787
|
onKeydown: j[7] || (j[7] = me(() => {
|
|
23788
23788
|
}, ["stop"]))
|
|
23789
23789
|
}, [
|
|
23790
|
-
(c(!0), h(X, null,
|
|
23790
|
+
(c(!0), h(X, null, ee(a.columns.filter((q) => F(q) !== ""), (q) => (c(), h("label", {
|
|
23791
23791
|
key: F(q),
|
|
23792
23792
|
class: "admin-toolbar__list-item admin-toolbar__list-item--checkbox"
|
|
23793
23793
|
}, [
|
|
@@ -23805,7 +23805,7 @@ const qI = ne({
|
|
|
23805
23805
|
a.enableSavedViews ? (c(), z(n(je), { key: 6 }, {
|
|
23806
23806
|
trigger: x(() => [
|
|
23807
23807
|
u("button", O_, [
|
|
23808
|
-
w(n(
|
|
23808
|
+
w(n(ae), {
|
|
23809
23809
|
icon: n(ao),
|
|
23810
23810
|
size: 14
|
|
23811
23811
|
}, null, 8, ["icon"]),
|
|
@@ -23849,7 +23849,7 @@ const qI = ne({
|
|
|
23849
23849
|
])
|
|
23850
23850
|
]));
|
|
23851
23851
|
}
|
|
23852
|
-
}), N_ = ["title"], X_ = ["disabled"], K_ = ["disabled"], J_ = ["disabled"], Y_ = ["value"], Q_ = ["disabled"], eS = ["disabled"],
|
|
23852
|
+
}), N_ = ["title"], X_ = ["disabled"], K_ = ["disabled"], J_ = ["disabled"], Y_ = ["value"], Q_ = ["disabled"], eS = ["disabled"], lw = /* @__PURE__ */ ne({
|
|
23853
23853
|
__name: "InlineEditCell",
|
|
23854
23854
|
props: {
|
|
23855
23855
|
resourceSlug: {},
|
|
@@ -23950,12 +23950,12 @@ const qI = ne({
|
|
|
23950
23950
|
onClick: f[5] || (f[5] = me(() => {
|
|
23951
23951
|
}, ["stop"]))
|
|
23952
23952
|
}, [
|
|
23953
|
-
(c(!0), h(X, null,
|
|
23953
|
+
(c(!0), h(X, null, ee(I.value, (S) => (c(), h("option", {
|
|
23954
23954
|
key: S.value,
|
|
23955
23955
|
value: S.value
|
|
23956
23956
|
}, y(S.label), 9, Y_))), 128))
|
|
23957
23957
|
], 40, J_)), [
|
|
23958
|
-
[
|
|
23958
|
+
[Fw, i.value]
|
|
23959
23959
|
]) : a.inputType === "textarea" ? s1((c(), h("textarea", {
|
|
23960
23960
|
key: 4,
|
|
23961
23961
|
ref_key: "inputRef",
|
|
@@ -24121,7 +24121,7 @@ const qI = ne({
|
|
|
24121
24121
|
onClick: O
|
|
24122
24122
|
}, {
|
|
24123
24123
|
default: x(() => [
|
|
24124
|
-
w(n(
|
|
24124
|
+
w(n(ae), { icon: n(Te) }, null, 8, ["icon"]),
|
|
24125
24125
|
E[4] || (E[4] = D(" Создать ", -1))
|
|
24126
24126
|
]),
|
|
24127
24127
|
_: 1
|
|
@@ -24139,9 +24139,9 @@ const qI = ne({
|
|
|
24139
24139
|
trigger: x(() => [
|
|
24140
24140
|
w(n(oe), { variant: "ghost" }, {
|
|
24141
24141
|
default: x(() => [
|
|
24142
|
-
w(n(
|
|
24142
|
+
w(n(ae), { icon: n(Oo) }, null, 8, ["icon"]),
|
|
24143
24143
|
E[5] || (E[5] = D(" Развернуть ", -1)),
|
|
24144
|
-
w(n(
|
|
24144
|
+
w(n(ae), { icon: n(h1) }, null, 8, ["icon"])
|
|
24145
24145
|
]),
|
|
24146
24146
|
_: 1
|
|
24147
24147
|
})
|
|
@@ -24173,7 +24173,7 @@ const qI = ne({
|
|
|
24173
24173
|
onClick: te
|
|
24174
24174
|
}, {
|
|
24175
24175
|
default: x(() => [
|
|
24176
|
-
w(n(
|
|
24176
|
+
w(n(ae), { icon: n(u1) }, null, 8, ["icon"]),
|
|
24177
24177
|
E[6] || (E[6] = D(" Открыть ", -1))
|
|
24178
24178
|
]),
|
|
24179
24179
|
_: 1
|
|
@@ -24183,12 +24183,12 @@ const qI = ne({
|
|
|
24183
24183
|
onClick: G
|
|
24184
24184
|
}, {
|
|
24185
24185
|
default: x(() => [
|
|
24186
|
-
w(n(
|
|
24186
|
+
w(n(ae), { icon: n(u1) }, null, 8, ["icon"]),
|
|
24187
24187
|
E[7] || (E[7] = D(" Редактировать ", -1))
|
|
24188
24188
|
]),
|
|
24189
24189
|
_: 1
|
|
24190
24190
|
}),
|
|
24191
|
-
(c(!0), h(X, null,
|
|
24191
|
+
(c(!0), h(X, null, ee(W.value, (ce) => (c(), z(n(oe), {
|
|
24192
24192
|
key: ce.id,
|
|
24193
24193
|
variant: ce.variant ?? "secondary",
|
|
24194
24194
|
onClick: (ye) => R(ce)
|
|
@@ -24204,7 +24204,7 @@ const qI = ne({
|
|
|
24204
24204
|
onClick: _
|
|
24205
24205
|
}, {
|
|
24206
24206
|
default: x(() => [
|
|
24207
|
-
w(n(
|
|
24207
|
+
w(n(ae), { icon: n(Ue) }, null, 8, ["icon"]),
|
|
24208
24208
|
E[8] || (E[8] = D(" Удалить ", -1))
|
|
24209
24209
|
]),
|
|
24210
24210
|
_: 1
|
|
@@ -24221,7 +24221,7 @@ const qI = ne({
|
|
|
24221
24221
|
], 64)) : H("", !0)
|
|
24222
24222
|
]),
|
|
24223
24223
|
u("div", dS, [
|
|
24224
|
-
r.value && i.value.length === 0 ? (c(), h(X, { key: 0 },
|
|
24224
|
+
r.value && i.value.length === 0 ? (c(), h(X, { key: 0 }, ee(6, (ce) => w(n(Re), { key: ce })), 64)) : p.value ? (c(), z(n(sI), {
|
|
24225
24225
|
key: 1,
|
|
24226
24226
|
message: p.value.message,
|
|
24227
24227
|
onRetry: f
|
|
@@ -24229,7 +24229,7 @@ const qI = ne({
|
|
|
24229
24229
|
key: 2,
|
|
24230
24230
|
title: n(v)("Нет данных"),
|
|
24231
24231
|
hint: m.value.length > 0 ? n(v)("Ничего не найдено по запросу.") : null
|
|
24232
|
-
}, null, 8, ["title", "hint"])) : (c(), z(n(
|
|
24232
|
+
}, null, 8, ["title", "hint"])) : (c(), z(n(Jw), {
|
|
24233
24233
|
key: 3,
|
|
24234
24234
|
nodes: i.value,
|
|
24235
24235
|
"virtual-root": L.value,
|
|
@@ -24278,7 +24278,7 @@ const qI = ne({
|
|
|
24278
24278
|
}, AS = ["title", "onClick"], zS = ["title", "onClick"], HS = ["title", "onClick"], VS = ["title", "onClick"], PS = ["title", "onClick"], FS = { class: "admin-cell-truncate" }, jS = ["href", "target", "title"], DS = ["title"], BS = {
|
|
24279
24279
|
key: 6,
|
|
24280
24280
|
class: "admin-resource-index__footer"
|
|
24281
|
-
},
|
|
24281
|
+
}, HI = "__row_actions__", VI = "__row_reorder__", RS = /* @__PURE__ */ ne({
|
|
24282
24282
|
__name: "ResourceIndexPage",
|
|
24283
24283
|
props: {
|
|
24284
24284
|
slug: {},
|
|
@@ -24289,7 +24289,7 @@ const qI = ne({
|
|
|
24289
24289
|
},
|
|
24290
24290
|
emits: ["bulk-action", "row-click", "import", "header-action"],
|
|
24291
24291
|
setup(a, { emit: t }) {
|
|
24292
|
-
const o = W2(), l = ($) => o.tr($), d = ($, N, K) => o.has($) ? o.t($, K) : N, i = a, s = t, r =
|
|
24292
|
+
const o = W2(), l = ($) => o.tr($), d = ($, N, K) => o.has($) ? o.t($, K) : N, i = a, s = t, r = iw(), p = Ee(), m = kI(), k = Ze(), g = M(() => p.getResource(i.slug)), b = M(
|
|
24293
24293
|
() => i.title ?? g.value?.label ?? i.slug
|
|
24294
24294
|
), C = M(() => {
|
|
24295
24295
|
if (i.createRouteName !== null)
|
|
@@ -24396,8 +24396,8 @@ const qI = ne({
|
|
|
24396
24396
|
upload_id: ro.upload_id,
|
|
24397
24397
|
mapping: Vo.mapping
|
|
24398
24398
|
}
|
|
24399
|
-
), Y2 = await F(se, W9.process_id), Q2 = Y2.imported ?? 0,
|
|
24400
|
-
|
|
24399
|
+
), Y2 = await F(se, W9.process_id), Q2 = Y2.imported ?? 0, bI = Y2.failed ?? 0;
|
|
24400
|
+
bI > 0 ? pe.warning(`Импорт завершён с ошибками: ${Q2} записей, ${bI} ошибок.`) : pe.success(`Импортировано записей: ${Q2}.`), await r.load().catch(() => {
|
|
24401
24401
|
});
|
|
24402
24402
|
} catch (Q) {
|
|
24403
24403
|
typeof console < "u" && console.error("[admin] import failed:", Q), pe.error(
|
|
@@ -24439,7 +24439,7 @@ const qI = ne({
|
|
|
24439
24439
|
}).filter((Q) => Q.key).filter((Q) => y1.value[Q.key] !== !1);
|
|
24440
24440
|
return [
|
|
24441
24441
|
...O.value ? [{
|
|
24442
|
-
key:
|
|
24442
|
+
key: VI,
|
|
24443
24443
|
label: "",
|
|
24444
24444
|
sortable: !1,
|
|
24445
24445
|
align: "center",
|
|
@@ -24447,7 +24447,7 @@ const qI = ne({
|
|
|
24447
24447
|
}] : [],
|
|
24448
24448
|
...N,
|
|
24449
24449
|
{
|
|
24450
|
-
key:
|
|
24450
|
+
key: HI,
|
|
24451
24451
|
label: "",
|
|
24452
24452
|
sortable: !1,
|
|
24453
24453
|
align: "right",
|
|
@@ -24649,38 +24649,38 @@ const qI = ne({
|
|
|
24649
24649
|
async function Z9($) {
|
|
24650
24650
|
await Je(), await r.setSort($, r.sortDirection);
|
|
24651
24651
|
}
|
|
24652
|
-
async function
|
|
24652
|
+
async function gw($) {
|
|
24653
24653
|
await Je(), await r.setSort(r.sortKey, $);
|
|
24654
24654
|
}
|
|
24655
|
-
function
|
|
24655
|
+
function Mw($) {
|
|
24656
24656
|
r.selection = $;
|
|
24657
24657
|
}
|
|
24658
|
-
async function
|
|
24658
|
+
async function Iw($) {
|
|
24659
24659
|
await r.setPage($);
|
|
24660
24660
|
}
|
|
24661
24661
|
function F1($) {
|
|
24662
24662
|
const N = $?.id ?? $?.key;
|
|
24663
24663
|
return typeof N == "string" || typeof N == "number" ? N : null;
|
|
24664
24664
|
}
|
|
24665
|
-
function
|
|
24665
|
+
function ww($) {
|
|
24666
24666
|
return F1(de($) ?? {}) ?? "";
|
|
24667
24667
|
}
|
|
24668
|
-
function
|
|
24668
|
+
function xw($) {
|
|
24669
24669
|
s("row-click", $);
|
|
24670
24670
|
const N = F1($);
|
|
24671
24671
|
N !== null && k.push({ name: `admin.resource.${i.slug}.view`, params: { id: String(N) } });
|
|
24672
24672
|
}
|
|
24673
|
-
function
|
|
24673
|
+
function bw($, N) {
|
|
24674
24674
|
N?.stopPropagation();
|
|
24675
24675
|
const K = F1($);
|
|
24676
24676
|
K !== null && k.push({ name: `admin.resource.${i.slug}.view`, params: { id: String(K) } });
|
|
24677
24677
|
}
|
|
24678
|
-
function
|
|
24678
|
+
function Lw($, N) {
|
|
24679
24679
|
N?.stopPropagation();
|
|
24680
24680
|
const K = F1($);
|
|
24681
24681
|
K !== null && k.push({ name: `admin.resource.${i.slug}.edit`, params: { id: String(K) } });
|
|
24682
24682
|
}
|
|
24683
|
-
async function
|
|
24683
|
+
async function Cw($, N) {
|
|
24684
24684
|
N?.stopPropagation();
|
|
24685
24685
|
const K = F1($);
|
|
24686
24686
|
if (K !== null && window.confirm(d("admin.resource.delete_confirm", "Удалить запись?")))
|
|
@@ -24695,10 +24695,10 @@ const qI = ne({
|
|
|
24695
24695
|
m.end();
|
|
24696
24696
|
}
|
|
24697
24697
|
}
|
|
24698
|
-
function
|
|
24698
|
+
function _w($) {
|
|
24699
24699
|
return $.deleted_at !== null && $.deleted_at !== void 0;
|
|
24700
24700
|
}
|
|
24701
|
-
async function
|
|
24701
|
+
async function Sw($, N) {
|
|
24702
24702
|
N?.stopPropagation();
|
|
24703
24703
|
const K = F1($);
|
|
24704
24704
|
if (K !== null)
|
|
@@ -24714,7 +24714,7 @@ const qI = ne({
|
|
|
24714
24714
|
}
|
|
24715
24715
|
}
|
|
24716
24716
|
const k1 = A(null), j1 = A(null), J2 = A("before");
|
|
24717
|
-
function
|
|
24717
|
+
function qw($, N) {
|
|
24718
24718
|
if (!O.value || !N.dataTransfer) return;
|
|
24719
24719
|
if (!N.target?.closest('[data-row-drag-handle="true"]')) {
|
|
24720
24720
|
N.preventDefault();
|
|
@@ -24722,7 +24722,7 @@ const qI = ne({
|
|
|
24722
24722
|
}
|
|
24723
24723
|
k1.value = $, N.dataTransfer.effectAllowed = "move", N.dataTransfer.setData("text/plain", String($));
|
|
24724
24724
|
}
|
|
24725
|
-
function
|
|
24725
|
+
function Aw($, N) {
|
|
24726
24726
|
if (!O.value || k1.value === null) return;
|
|
24727
24727
|
N.preventDefault();
|
|
24728
24728
|
const K = N.currentTarget;
|
|
@@ -24732,10 +24732,10 @@ const qI = ne({
|
|
|
24732
24732
|
}
|
|
24733
24733
|
j1.value = $;
|
|
24734
24734
|
}
|
|
24735
|
-
function
|
|
24735
|
+
function zw() {
|
|
24736
24736
|
k1.value = null, j1.value = null;
|
|
24737
24737
|
}
|
|
24738
|
-
async function
|
|
24738
|
+
async function Hw($, N) {
|
|
24739
24739
|
if (N.preventDefault(), !O.value || k1.value === null) return;
|
|
24740
24740
|
const K = k1.value, Q = J2.value === "after" ? $ + 1 : $, se = Q > K ? Q - 1 : Q;
|
|
24741
24741
|
if (k1.value = null, j1.value = null, K === se) return;
|
|
@@ -24752,7 +24752,7 @@ const qI = ne({
|
|
|
24752
24752
|
m.end();
|
|
24753
24753
|
}
|
|
24754
24754
|
}
|
|
24755
|
-
async function
|
|
24755
|
+
async function Vw($, N) {
|
|
24756
24756
|
N?.stopPropagation();
|
|
24757
24757
|
const K = F1($);
|
|
24758
24758
|
if (K !== null && window.confirm(d("admin.resource.force_delete_confirm", "Удалить запись НАВСЕГДА? Действие необратимо.")))
|
|
@@ -24767,7 +24767,7 @@ const qI = ne({
|
|
|
24767
24767
|
m.end();
|
|
24768
24768
|
}
|
|
24769
24769
|
}
|
|
24770
|
-
async function
|
|
24770
|
+
async function xI() {
|
|
24771
24771
|
await r.load().catch(() => {
|
|
24772
24772
|
});
|
|
24773
24773
|
}
|
|
@@ -24811,13 +24811,13 @@ const qI = ne({
|
|
|
24811
24811
|
class: "admin-page__scope"
|
|
24812
24812
|
}, {
|
|
24813
24813
|
prepend: x(() => [
|
|
24814
|
-
w(n(
|
|
24814
|
+
w(n(ae), {
|
|
24815
24815
|
icon: n(ao),
|
|
24816
24816
|
size: 14
|
|
24817
24817
|
}, null, 8, ["icon"])
|
|
24818
24818
|
]),
|
|
24819
24819
|
append: x(() => [
|
|
24820
|
-
w(n(
|
|
24820
|
+
w(n(ae), {
|
|
24821
24821
|
icon: n(h1),
|
|
24822
24822
|
size: 14
|
|
24823
24823
|
}, null, 8, ["icon"])
|
|
@@ -24835,7 +24835,7 @@ const qI = ne({
|
|
|
24835
24835
|
]),
|
|
24836
24836
|
_: 1
|
|
24837
24837
|
}),
|
|
24838
|
-
(c(!0), h(X, null,
|
|
24838
|
+
(c(!0), h(X, null, ee(p1.value, (K) => (c(), z(n(De), {
|
|
24839
24839
|
key: K.id,
|
|
24840
24840
|
onClick: (Q) => K2(K)
|
|
24841
24841
|
}, {
|
|
@@ -24852,7 +24852,7 @@ const qI = ne({
|
|
|
24852
24852
|
"aria-label": l("Удалить view"),
|
|
24853
24853
|
onClick: me((Q) => Y(K, Q), ["stop"])
|
|
24854
24854
|
}, [
|
|
24855
|
-
w(n(
|
|
24855
|
+
w(n(ae), {
|
|
24856
24856
|
icon: n(Ue),
|
|
24857
24857
|
size: 12
|
|
24858
24858
|
}, null, 8, ["icon"])
|
|
@@ -24873,7 +24873,7 @@ const qI = ne({
|
|
|
24873
24873
|
class: "admin-page__more"
|
|
24874
24874
|
}, {
|
|
24875
24875
|
default: x(() => [
|
|
24876
|
-
w(n(
|
|
24876
|
+
w(n(ae), {
|
|
24877
24877
|
icon: n(d1),
|
|
24878
24878
|
size: 16
|
|
24879
24879
|
}, null, 8, ["icon"])
|
|
@@ -24882,13 +24882,13 @@ const qI = ne({
|
|
|
24882
24882
|
}, 8, ["aria-label"])
|
|
24883
24883
|
]),
|
|
24884
24884
|
default: x(() => [
|
|
24885
|
-
w(n(De), { onClick:
|
|
24885
|
+
w(n(De), { onClick: xI }, {
|
|
24886
24886
|
default: x(() => [
|
|
24887
24887
|
D(y(l("Обновить")), 1)
|
|
24888
24888
|
]),
|
|
24889
24889
|
_: 1
|
|
24890
24890
|
}),
|
|
24891
|
-
(c(!0), h(X, null,
|
|
24891
|
+
(c(!0), h(X, null, ee(R.value, (K) => (c(), z(n(De), {
|
|
24892
24892
|
key: K,
|
|
24893
24893
|
onClick: (Q) => V(K)
|
|
24894
24894
|
}, {
|
|
@@ -24897,7 +24897,7 @@ const qI = ne({
|
|
|
24897
24897
|
]),
|
|
24898
24898
|
_: 2
|
|
24899
24899
|
}, 1032, ["onClick"]))), 128)),
|
|
24900
|
-
(c(!0), h(X, null,
|
|
24900
|
+
(c(!0), h(X, null, ee(L.value, (K) => (c(), z(n(De), {
|
|
24901
24901
|
key: K.key,
|
|
24902
24902
|
onClick: (Q) => S(K)
|
|
24903
24903
|
}, {
|
|
@@ -24917,7 +24917,7 @@ const qI = ne({
|
|
|
24917
24917
|
onClick: P
|
|
24918
24918
|
}, {
|
|
24919
24919
|
prepend: x(() => [
|
|
24920
|
-
w(n(
|
|
24920
|
+
w(n(ae), {
|
|
24921
24921
|
icon: n(oo),
|
|
24922
24922
|
size: 14
|
|
24923
24923
|
}, null, 8, ["icon"])
|
|
@@ -24943,7 +24943,7 @@ const qI = ne({
|
|
|
24943
24943
|
onClick: N[0] || (N[0] = (K) => $.$router.push({ name: C.value }))
|
|
24944
24944
|
}, {
|
|
24945
24945
|
prepend: x(() => [
|
|
24946
|
-
w(n(
|
|
24946
|
+
w(n(ae), {
|
|
24947
24947
|
icon: n(Te),
|
|
24948
24948
|
size: 14
|
|
24949
24949
|
}, null, 8, ["icon"])
|
|
@@ -24961,7 +24961,7 @@ const qI = ne({
|
|
|
24961
24961
|
u("b", null, y(n(r).selectedCount), 1)
|
|
24962
24962
|
]),
|
|
24963
24963
|
N[5] || (N[5] = u("span", { class: "admin-bulk-toolbar__divider" }, null, -1)),
|
|
24964
|
-
(c(!0), h(X, null,
|
|
24964
|
+
(c(!0), h(X, null, ee(f.value, (K) => (c(), z(n(oe), {
|
|
24965
24965
|
key: K.key,
|
|
24966
24966
|
size: "sm",
|
|
24967
24967
|
variant: K.destructive ? "danger" : "ghost",
|
|
@@ -25031,7 +25031,7 @@ const qI = ne({
|
|
|
25031
25031
|
_: 3
|
|
25032
25032
|
}, 8, ["search", "search-placeholder", "filters", "values", "columns", "group-by", "column-visibility", "enable-saved-views"])) : H("", !0),
|
|
25033
25033
|
n(r).loading && n(r).items.length === 0 ? (c(), h("div", CS, [
|
|
25034
|
-
n(r).slowLoading ? (c(), h(X, { key: 0 },
|
|
25034
|
+
n(r).slowLoading ? (c(), h(X, { key: 0 }, ee(8, (K) => w(n(Re), {
|
|
25035
25035
|
key: K,
|
|
25036
25036
|
height: "40px"
|
|
25037
25037
|
})), 64)) : H("", !0)
|
|
@@ -25044,7 +25044,7 @@ const qI = ne({
|
|
|
25044
25044
|
actions: x(() => [
|
|
25045
25045
|
w(n(oe), {
|
|
25046
25046
|
variant: "primary",
|
|
25047
|
-
onClick:
|
|
25047
|
+
onClick: xI
|
|
25048
25048
|
}, {
|
|
25049
25049
|
default: x(() => [
|
|
25050
25050
|
D(y(l("Обновить")), 1)
|
|
@@ -25082,14 +25082,14 @@ const qI = ne({
|
|
|
25082
25082
|
selection: n(r).selection,
|
|
25083
25083
|
"row-key": (K) => n(r).rowId(K),
|
|
25084
25084
|
"onUpdate:sortKey": Z9,
|
|
25085
|
-
"onUpdate:sortDirection":
|
|
25086
|
-
"onUpdate:selection":
|
|
25087
|
-
onRowClick:
|
|
25088
|
-
},
|
|
25089
|
-
|
|
25085
|
+
"onUpdate:sortDirection": gw,
|
|
25086
|
+
"onUpdate:selection": Mw,
|
|
25087
|
+
onRowClick: xw
|
|
25088
|
+
}, $I({ _: 2 }, [
|
|
25089
|
+
ee(j.value, (K) => ({
|
|
25090
25090
|
name: K.key,
|
|
25091
25091
|
fn: x((Q) => [
|
|
25092
|
-
K.key ===
|
|
25092
|
+
K.key === VI ? (c(), h("span", {
|
|
25093
25093
|
key: 0,
|
|
25094
25094
|
class: fe([
|
|
25095
25095
|
"admin-resource-index__row-drag",
|
|
@@ -25102,44 +25102,44 @@ const qI = ne({
|
|
|
25102
25102
|
"data-row-drag-handle": "true",
|
|
25103
25103
|
draggable: O.value,
|
|
25104
25104
|
title: l("Перетащить"),
|
|
25105
|
-
onDragstart: (se) =>
|
|
25105
|
+
onDragstart: (se) => qw(
|
|
25106
25106
|
n(r).items.indexOf(de(Q) ?? {}),
|
|
25107
25107
|
se
|
|
25108
25108
|
),
|
|
25109
|
-
onDragover: (se) =>
|
|
25109
|
+
onDragover: (se) => Aw(
|
|
25110
25110
|
n(r).items.indexOf(de(Q) ?? {}),
|
|
25111
25111
|
se
|
|
25112
25112
|
),
|
|
25113
|
-
onDragend:
|
|
25114
|
-
onDrop: (se) =>
|
|
25113
|
+
onDragend: zw,
|
|
25114
|
+
onDrop: (se) => Hw(
|
|
25115
25115
|
n(r).items.indexOf(de(Q) ?? {}),
|
|
25116
25116
|
se
|
|
25117
25117
|
)
|
|
25118
25118
|
}, [
|
|
25119
|
-
w(n(
|
|
25119
|
+
w(n(ae), {
|
|
25120
25120
|
icon: n(vo),
|
|
25121
25121
|
size: 14
|
|
25122
25122
|
}, null, 8, ["icon"])
|
|
25123
|
-
], 42, SS)) : K.key ===
|
|
25123
|
+
], 42, SS)) : K.key === HI ? (c(), h("div", qS, [
|
|
25124
25124
|
u("button", {
|
|
25125
25125
|
type: "button",
|
|
25126
25126
|
class: "admin-resource-index__row-action",
|
|
25127
25127
|
title: l("Просмотр"),
|
|
25128
|
-
onClick: me((se) =>
|
|
25128
|
+
onClick: me((se) => bw(de(Q) ?? {}, se), ["stop"])
|
|
25129
25129
|
}, [
|
|
25130
|
-
w(n(
|
|
25130
|
+
w(n(ae), {
|
|
25131
25131
|
icon: n(Ko),
|
|
25132
25132
|
size: 16
|
|
25133
25133
|
}, null, 8, ["icon"])
|
|
25134
25134
|
], 8, AS),
|
|
25135
|
-
|
|
25135
|
+
_w(de(Q) ?? {}) ? (c(), h(X, { key: 1 }, [
|
|
25136
25136
|
u("button", {
|
|
25137
25137
|
type: "button",
|
|
25138
25138
|
class: "admin-resource-index__row-action",
|
|
25139
25139
|
title: l("Восстановить"),
|
|
25140
|
-
onClick: me((se) =>
|
|
25140
|
+
onClick: me((se) => Sw(de(Q) ?? {}, se), ["stop"])
|
|
25141
25141
|
}, [
|
|
25142
|
-
w(n(
|
|
25142
|
+
w(n(ae), {
|
|
25143
25143
|
icon: n(no),
|
|
25144
25144
|
size: 16
|
|
25145
25145
|
}, null, 8, ["icon"])
|
|
@@ -25148,9 +25148,9 @@ const qI = ne({
|
|
|
25148
25148
|
type: "button",
|
|
25149
25149
|
class: "admin-resource-index__row-action admin-resource-index__row-action--danger",
|
|
25150
25150
|
title: l("Удалить навсегда"),
|
|
25151
|
-
onClick: me((se) =>
|
|
25151
|
+
onClick: me((se) => Vw(de(Q) ?? {}, se), ["stop"])
|
|
25152
25152
|
}, [
|
|
25153
|
-
w(n(
|
|
25153
|
+
w(n(ae), {
|
|
25154
25154
|
icon: n(Ue),
|
|
25155
25155
|
size: 16
|
|
25156
25156
|
}, null, 8, ["icon"])
|
|
@@ -25161,9 +25161,9 @@ const qI = ne({
|
|
|
25161
25161
|
type: "button",
|
|
25162
25162
|
class: "admin-resource-index__row-action",
|
|
25163
25163
|
title: l("Редактировать"),
|
|
25164
|
-
onClick: me((se) =>
|
|
25164
|
+
onClick: me((se) => Lw(de(Q) ?? {}, se), ["stop"])
|
|
25165
25165
|
}, [
|
|
25166
|
-
w(n(
|
|
25166
|
+
w(n(ae), {
|
|
25167
25167
|
icon: n(u1),
|
|
25168
25168
|
size: 16
|
|
25169
25169
|
}, null, 8, ["icon"])
|
|
@@ -25173,9 +25173,9 @@ const qI = ne({
|
|
|
25173
25173
|
type: "button",
|
|
25174
25174
|
class: "admin-resource-index__row-action admin-resource-index__row-action--danger",
|
|
25175
25175
|
title: l("Удалить"),
|
|
25176
|
-
onClick: me((se) =>
|
|
25176
|
+
onClick: me((se) => Cw(de(Q) ?? {}, se), ["stop"])
|
|
25177
25177
|
}, [
|
|
25178
|
-
w(n(
|
|
25178
|
+
w(n(ae), {
|
|
25179
25179
|
icon: n(Ue),
|
|
25180
25180
|
size: 16
|
|
25181
25181
|
}, null, 8, ["icon"])
|
|
@@ -25184,10 +25184,10 @@ const qI = ne({
|
|
|
25184
25184
|
])) : ze($.$slots, `cell-${K.key}`, {
|
|
25185
25185
|
row: de(Q)
|
|
25186
25186
|
}, () => [
|
|
25187
|
-
q(K.key) ? (c(), z(
|
|
25187
|
+
q(K.key) ? (c(), z(lw, {
|
|
25188
25188
|
key: 0,
|
|
25189
25189
|
"resource-slug": a.slug,
|
|
25190
|
-
"row-id":
|
|
25190
|
+
"row-id": ww(Q),
|
|
25191
25191
|
column: K.key,
|
|
25192
25192
|
value: (de(Q) ?? {})[K.key],
|
|
25193
25193
|
editable: !0,
|
|
@@ -25221,16 +25221,16 @@ const qI = ne({
|
|
|
25221
25221
|
]), 1032, ["columns", "data", "sort-key", "sort-direction", "selection", "row-key"])
|
|
25222
25222
|
])),
|
|
25223
25223
|
!n(r).loading && !n(r).hasError && !n(r).isEmpty ? (c(), h("footer", BS, [
|
|
25224
|
-
w(n(
|
|
25224
|
+
w(n(Yw), {
|
|
25225
25225
|
"model-value": n(r).meta.page,
|
|
25226
25226
|
total: n(r).meta.total,
|
|
25227
25227
|
"per-page": n(r).meta.per_page,
|
|
25228
|
-
"onUpdate:modelValue":
|
|
25228
|
+
"onUpdate:modelValue": Iw
|
|
25229
25229
|
}, null, 8, ["model-value", "total", "per-page"])
|
|
25230
25230
|
])) : H("", !0)
|
|
25231
25231
|
]));
|
|
25232
25232
|
}
|
|
25233
|
-
}),
|
|
25233
|
+
}), fI = e1("admin-resource-form", () => {
|
|
25234
25234
|
const a = A(null), t = A("create"), o = A(null), l = A({}), d = A({}), i = A({}), s = A(!1), r = A(!1), p = A(!1), m = A(null), k = M(() => t.value === "create"), g = M(() => t.value === "edit"), b = M(() => t.value === "view"), C = M(() => m.value !== null), I = M(() => {
|
|
25235
25235
|
const O = l.value, G = d.value, te = /* @__PURE__ */ new Set([...Object.keys(O), ...Object.keys(G)]);
|
|
25236
25236
|
for (const W of te)
|
|
@@ -25352,14 +25352,14 @@ const qI = ne({
|
|
|
25352
25352
|
return Number.isFinite(r) && r >= 1 && r <= 12 ? r : 0;
|
|
25353
25353
|
}
|
|
25354
25354
|
const l = M(() => t.items.some((d) => o(d) > 0));
|
|
25355
|
-
return (d, i) => l.value ? (c(), z(n(
|
|
25355
|
+
return (d, i) => l.value ? (c(), z(n(uI), {
|
|
25356
25356
|
key: 0,
|
|
25357
25357
|
cols: 12,
|
|
25358
25358
|
"col-gap": a.gap,
|
|
25359
25359
|
"row-gap": "var(--uid-space-lg)"
|
|
25360
25360
|
}, {
|
|
25361
25361
|
default: x(() => [
|
|
25362
|
-
(c(!0), h(X, null,
|
|
25362
|
+
(c(!0), h(X, null, ee(a.items, (s, r) => (c(), h("div", {
|
|
25363
25363
|
key: r,
|
|
25364
25364
|
style: Ve({ gridColumn: `span ${o(s) || 12}` })
|
|
25365
25365
|
}, [
|
|
@@ -25367,14 +25367,14 @@ const qI = ne({
|
|
|
25367
25367
|
], 4))), 128))
|
|
25368
25368
|
]),
|
|
25369
25369
|
_: 1
|
|
25370
|
-
}, 8, ["col-gap"])) : (c(), z(n(
|
|
25370
|
+
}, 8, ["col-gap"])) : (c(), z(n(Qw), {
|
|
25371
25371
|
key: 1,
|
|
25372
25372
|
direction: "column",
|
|
25373
25373
|
gap: a.gap,
|
|
25374
25374
|
align: "stretch"
|
|
25375
25375
|
}, {
|
|
25376
25376
|
default: x(() => [
|
|
25377
|
-
(c(!0), h(X, null,
|
|
25377
|
+
(c(!0), h(X, null, ee(a.items, (s, r) => (c(), z(bo, {
|
|
25378
25378
|
key: r,
|
|
25379
25379
|
node: s
|
|
25380
25380
|
}, null, 8, ["node"]))), 128))
|
|
@@ -25388,7 +25388,7 @@ const qI = ne({
|
|
|
25388
25388
|
}, NS = {
|
|
25389
25389
|
key: 2,
|
|
25390
25390
|
class: "admin-resource-form__savebar"
|
|
25391
|
-
}, XS = { class: "admin-resource-form__savebar-hint" },
|
|
25391
|
+
}, XS = { class: "admin-resource-form__savebar-hint" }, PI = /* @__PURE__ */ ne({
|
|
25392
25392
|
__name: "ResourceFormPage",
|
|
25393
25393
|
props: {
|
|
25394
25394
|
slug: {},
|
|
@@ -25396,7 +25396,7 @@ const qI = ne({
|
|
|
25396
25396
|
indexRouteName: { default: null }
|
|
25397
25397
|
},
|
|
25398
25398
|
setup(a) {
|
|
25399
|
-
const t = a, o =
|
|
25399
|
+
const t = a, o = fI(), l = Ee(), d = Ze(), i = l1();
|
|
25400
25400
|
function s() {
|
|
25401
25401
|
const V = {};
|
|
25402
25402
|
for (const [T, P] of Object.entries(i.query))
|
|
@@ -25495,7 +25495,7 @@ const qI = ne({
|
|
|
25495
25495
|
onClick: U
|
|
25496
25496
|
}, y(n(v)("← Назад")), 1),
|
|
25497
25497
|
u("h1", OS, y(C.value), 1),
|
|
25498
|
-
I.value ? (c(), z(n(
|
|
25498
|
+
I.value ? (c(), z(n(yI), {
|
|
25499
25499
|
key: 0,
|
|
25500
25500
|
variant: L.value
|
|
25501
25501
|
}, {
|
|
@@ -25577,7 +25577,7 @@ const qI = ne({
|
|
|
25577
25577
|
_: 1
|
|
25578
25578
|
})) : H("", !0),
|
|
25579
25579
|
n(o).loading ? (c(), h("div", GS, [
|
|
25580
|
-
(c(), h(X, null,
|
|
25580
|
+
(c(), h(X, null, ee(6, (P) => w(n(Re), {
|
|
25581
25581
|
key: P,
|
|
25582
25582
|
height: "40px"
|
|
25583
25583
|
})), 64))
|
|
@@ -25619,7 +25619,7 @@ const qI = ne({
|
|
|
25619
25619
|
])) : H("", !0)
|
|
25620
25620
|
]));
|
|
25621
25621
|
}
|
|
25622
|
-
}), Ao = R9(),
|
|
25622
|
+
}), Ao = R9(), YF = Ao.register, tI = Ao.get, QF = Ao.has, ej = Ao.list, aj = Ao.clear, KS = Ao.registerBundle, JS = /* @__PURE__ */ ne({
|
|
25623
25623
|
__name: "UnknownEntry",
|
|
25624
25624
|
props: {
|
|
25625
25625
|
type: {},
|
|
@@ -25697,14 +25697,14 @@ const qI = ne({
|
|
|
25697
25697
|
const b = H9("InfolistRenderer", !0);
|
|
25698
25698
|
return l.value.kind === "entry" && a.node.label ? (c(), h("div", YS, [
|
|
25699
25699
|
u("span", QS, y(a.node.label), 1),
|
|
25700
|
-
(c(), z($e(l.value.component), O2(
|
|
25700
|
+
(c(), z($e(l.value.component), O2(jw(d.value)), null, 16))
|
|
25701
25701
|
])) : l.value.kind === "entry" ? (c(), z($e(l.value.component), O2(Qn({ key: 1 }, d.value)), null, 16)) : l.value.kind === "layout" && l.value.layoutType === "rows" ? (c(), h("div", eq, [
|
|
25702
|
-
(c(!0), h(X, null,
|
|
25702
|
+
(c(!0), h(X, null, ee(i.value, (C, I) => (c(), z(b, {
|
|
25703
25703
|
key: I,
|
|
25704
25704
|
node: C
|
|
25705
25705
|
}, null, 8, ["node"]))), 128))
|
|
25706
25706
|
])) : l.value.kind === "layout" && l.value.layoutType === "columns" ? (c(), h("div", aq, [
|
|
25707
|
-
(c(!0), h(X, null,
|
|
25707
|
+
(c(!0), h(X, null, ee(i.value, (C, I) => (c(), h("div", {
|
|
25708
25708
|
key: I,
|
|
25709
25709
|
class: "admin-infolist-cols__item",
|
|
25710
25710
|
style: Ve({
|
|
@@ -25719,14 +25719,14 @@ const qI = ne({
|
|
|
25719
25719
|
r.value ? (c(), h("p", cq, y(r.value), 1)) : H("", !0)
|
|
25720
25720
|
])) : H("", !0),
|
|
25721
25721
|
u("div", iq, [
|
|
25722
|
-
(c(!0), h(X, null,
|
|
25722
|
+
(c(!0), h(X, null, ee(i.value, (C, I) => (c(), z(b, {
|
|
25723
25723
|
key: I,
|
|
25724
25724
|
node: C
|
|
25725
25725
|
}, null, 8, ["node"]))), 128))
|
|
25726
25726
|
])
|
|
25727
25727
|
])) : l.value.kind === "layout" && l.value.layoutType === "tabs" ? (c(), h("div", lq, [
|
|
25728
25728
|
u("ul", rq, [
|
|
25729
|
-
(c(!0), h(X, null,
|
|
25729
|
+
(c(!0), h(X, null, ee(m.value, (C, I) => (c(), h("li", {
|
|
25730
25730
|
key: C.key ?? I,
|
|
25731
25731
|
class: fe([
|
|
25732
25732
|
"admin-infolist-tabs__tab",
|
|
@@ -25735,7 +25735,7 @@ const qI = ne({
|
|
|
25735
25735
|
}, y(C.label), 3))), 128))
|
|
25736
25736
|
]),
|
|
25737
25737
|
u("div", dq, [
|
|
25738
|
-
(c(!0), h(X, null,
|
|
25738
|
+
(c(!0), h(X, null, ee(m.value[p.value]?.items ?? [], (C, I) => (c(), z(b, {
|
|
25739
25739
|
key: I,
|
|
25740
25740
|
node: C
|
|
25741
25741
|
}, null, 8, ["node"]))), 128))
|
|
@@ -25844,17 +25844,17 @@ const qI = ne({
|
|
|
25844
25844
|
return (I, L) => (c(), h("section", hq, [
|
|
25845
25845
|
u("h2", uq, y(n(v)("История изменений")), 1),
|
|
25846
25846
|
l.value ? (c(), h("div", yq, [
|
|
25847
|
-
(c(), h(X, null,
|
|
25847
|
+
(c(), h(X, null, ee(3, (f) => w(n(Re), {
|
|
25848
25848
|
key: f,
|
|
25849
25849
|
height: "48px"
|
|
25850
25850
|
})), 64))
|
|
25851
25851
|
])) : d.value ? (c(), h("div", pq, " Не удалось загрузить историю: " + y(d.value.message), 1)) : s.value ? (c(), h("ol", mq, [
|
|
25852
|
-
(c(!0), h(X, null,
|
|
25852
|
+
(c(!0), h(X, null, ee(o.value, (f) => (c(), h("li", {
|
|
25853
25853
|
key: f.id,
|
|
25854
25854
|
class: "admin-audit-timeline__item"
|
|
25855
25855
|
}, [
|
|
25856
25856
|
u("span", vq, [
|
|
25857
|
-
w(n(
|
|
25857
|
+
w(n(ae), {
|
|
25858
25858
|
icon: r(f.event),
|
|
25859
25859
|
size: 14
|
|
25860
25860
|
}, null, 8, ["icon"])
|
|
@@ -25871,7 +25871,7 @@ const qI = ne({
|
|
|
25871
25871
|
u("span", wq, y(m(f.created_at)), 1)
|
|
25872
25872
|
]),
|
|
25873
25873
|
k(f) ? (c(), h("ul", xq, [
|
|
25874
|
-
(c(!0), h(X, null,
|
|
25874
|
+
(c(!0), h(X, null, ee(f.diff, (S) => (c(), h("li", {
|
|
25875
25875
|
key: S.field,
|
|
25876
25876
|
class: fe(["admin-audit-timeline__diff-row", `admin-audit-timeline__diff-row--${f.event}`])
|
|
25877
25877
|
}, [
|
|
@@ -25917,8 +25917,8 @@ const qI = ne({
|
|
|
25917
25917
|
uidPrefix: { default: "#" }
|
|
25918
25918
|
},
|
|
25919
25919
|
setup(a) {
|
|
25920
|
-
const t = a, o =
|
|
25921
|
-
|
|
25920
|
+
const t = a, o = fI(), l = Ee(), d = Ze();
|
|
25921
|
+
nw(o.state);
|
|
25922
25922
|
const i = M(() => l.getResource(t.slug)), s = M(() => (i.value?.features ?? {}).editable !== !1), r = M(
|
|
25923
25923
|
() => i.value?.infolist ?? i.value?.fields ?? []
|
|
25924
25924
|
), p = M(() => t.auditSubjectType !== null ? t.auditSubjectType : i.value?.subject_type ?? null), m = M(() => {
|
|
@@ -26021,7 +26021,7 @@ const qI = ne({
|
|
|
26021
26021
|
class: "admin-resource-view__back",
|
|
26022
26022
|
onClick: U
|
|
26023
26023
|
}, [
|
|
26024
|
-
w(n(
|
|
26024
|
+
w(n(ae), {
|
|
26025
26025
|
icon: n($o),
|
|
26026
26026
|
size: 14
|
|
26027
26027
|
}, null, 8, ["icon"]),
|
|
@@ -26052,7 +26052,7 @@ const qI = ne({
|
|
|
26052
26052
|
onClick: V
|
|
26053
26053
|
}, {
|
|
26054
26054
|
prepend: x(() => [
|
|
26055
|
-
w(n(
|
|
26055
|
+
w(n(ae), {
|
|
26056
26056
|
icon: n(u1),
|
|
26057
26057
|
size: 14
|
|
26058
26058
|
}, null, 8, ["icon"])
|
|
@@ -26071,7 +26071,7 @@ const qI = ne({
|
|
|
26071
26071
|
class: "admin-page__more"
|
|
26072
26072
|
}, {
|
|
26073
26073
|
default: x(() => [
|
|
26074
|
-
w(n(
|
|
26074
|
+
w(n(ae), {
|
|
26075
26075
|
icon: n(d1),
|
|
26076
26076
|
size: 16
|
|
26077
26077
|
}, null, 8, ["icon"])
|
|
@@ -26080,7 +26080,7 @@ const qI = ne({
|
|
|
26080
26080
|
}, 8, ["aria-label"])
|
|
26081
26081
|
]),
|
|
26082
26082
|
default: x(() => [
|
|
26083
|
-
(c(!0), h(X, null,
|
|
26083
|
+
(c(!0), h(X, null, ee(f.value, (F) => (c(), z(n(De), {
|
|
26084
26084
|
key: F.key,
|
|
26085
26085
|
onClick: (O) => S(F)
|
|
26086
26086
|
}, {
|
|
@@ -26094,7 +26094,7 @@ const qI = ne({
|
|
|
26094
26094
|
onClick: T
|
|
26095
26095
|
}, {
|
|
26096
26096
|
icon: x(() => [
|
|
26097
|
-
w(n(
|
|
26097
|
+
w(n(ae), {
|
|
26098
26098
|
icon: n(Ue),
|
|
26099
26099
|
size: 14
|
|
26100
26100
|
}, null, 8, ["icon"])
|
|
@@ -26121,7 +26121,7 @@ const qI = ne({
|
|
|
26121
26121
|
_: 1
|
|
26122
26122
|
})) : H("", !0),
|
|
26123
26123
|
n(o).loading ? (c(), h("div", $q, [
|
|
26124
|
-
(c(), h(X, null,
|
|
26124
|
+
(c(), h(X, null, ee(8, (F) => w(n(Re), {
|
|
26125
26125
|
key: F,
|
|
26126
26126
|
height: "24px"
|
|
26127
26127
|
})), 64))
|
|
@@ -26133,7 +26133,7 @@ const qI = ne({
|
|
|
26133
26133
|
}, {
|
|
26134
26134
|
default: x(() => [
|
|
26135
26135
|
u("h2", Oq, y(n(v)("Основные данные")), 1),
|
|
26136
|
-
(c(!0), h(X, null,
|
|
26136
|
+
(c(!0), h(X, null, ee(r.value, (F, O) => (c(), z(sq, {
|
|
26137
26137
|
key: O,
|
|
26138
26138
|
node: F
|
|
26139
26139
|
}, null, 8, ["node"]))), 128))
|
|
@@ -26162,7 +26162,7 @@ const qI = ne({
|
|
|
26162
26162
|
default: x(() => [
|
|
26163
26163
|
u("h2", Zq, y(n(v)("Метрики")), 1),
|
|
26164
26164
|
u("dl", Wq, [
|
|
26165
|
-
(c(!0), h(X, null,
|
|
26165
|
+
(c(!0), h(X, null, ee(m.value, (F) => (c(), h(X, {
|
|
26166
26166
|
key: F.label
|
|
26167
26167
|
}, [
|
|
26168
26168
|
u("dt", Gq, y(F.label), 1),
|
|
@@ -26186,37 +26186,37 @@ const qI = ne({
|
|
|
26186
26186
|
}, Yq = { min: 0, L: 0, M: 1, Q: 2, H: 3, max: 3 }, io = (a) => new Uint8Array(a), jo = (a) => {
|
|
26187
26187
|
const t = new Error(`lean-qr error ${a}`);
|
|
26188
26188
|
throw t.code = a, t;
|
|
26189
|
-
}, nc = (a) => "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(a), nI = (a) => a.charCodeAt(0),
|
|
26189
|
+
}, nc = (a) => "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(a), nI = (a) => a.charCodeAt(0), rw = (...a) => (t, o) => a.forEach((l) => l(t, o)), dw = (a) => (t) => {
|
|
26190
26190
|
t.eci !== a && (t.push(7, 4), a < 128 ? t.push(a, 8) : a < 16384 ? t.push(32768 | a, 16) : t.push(12582912 | a, 24), t.eci = a);
|
|
26191
|
-
},
|
|
26191
|
+
}, gI = (a) => (t, o) => {
|
|
26192
26192
|
t.push(4, 4), t.push(a.length, 8 + 8 * (o > 9)), a.forEach((l) => t.push(l, 8));
|
|
26193
|
-
}, zo = (a, t, o, l, d = (s, r) => o(s.length, r), i = l ? (s) =>
|
|
26193
|
+
}, zo = (a, t, o, l, d = (s, r) => o(s.length, r), i = l ? (s) => rw(dw(l), a(s)) : a) => (i.test = t, i.l = o, i.est = d, i.eci = l && [l], i), sw = zo((a) => (t, o) => {
|
|
26194
26194
|
t.push(1, 4), t.push(a.length, 10 + 2 * (o > 26) + 2 * (o > 9));
|
|
26195
26195
|
let l = 0;
|
|
26196
26196
|
for (; l < a.length - 2; l += 3) t.push(+a.slice(l, l + 3), 10);
|
|
26197
26197
|
l < a.length - 1 ? t.push(+a.slice(l), 7) : l < a.length && t.push(+a[l], 4);
|
|
26198
|
-
}, (a) => /[0-9]/.test(a), (a, t) => 14 + 2 * (t > 26) + 2 * (t > 9) + 10 * a / 3),
|
|
26198
|
+
}, (a) => /[0-9]/.test(a), (a, t) => 14 + 2 * (t > 26) + 2 * (t > 9) + 10 * a / 3), hw = zo((a) => (t, o) => {
|
|
26199
26199
|
t.push(2, 4), t.push(a.length, 9 + 2 * (o > 26) + 2 * (o > 9));
|
|
26200
26200
|
let l = 0;
|
|
26201
26201
|
for (; l < a.length - 1; l += 2) t.push(45 * nc(a[l]) + nc(a[l + 1]), 11);
|
|
26202
26202
|
l < a.length && t.push(nc(a[l]), 6);
|
|
26203
|
-
}, (a) => nc(a) >= 0, (a, t) => 13 + 2 * (t > 26) + 2 * (t > 9) + 5.5 * a), Lo = zo((a) =>
|
|
26203
|
+
}, (a) => nc(a) >= 0, (a, t) => 13 + 2 * (t > 26) + 2 * (t > 9) + 5.5 * a), Lo = zo((a) => gI([...a].map(nI)), (a) => nI(a) < 128, (a, t) => 12 + 8 * (t > 9) + 8 * a);
|
|
26204
26204
|
Lo._ = !0, Lo.u = !0;
|
|
26205
|
-
const
|
|
26206
|
-
gI._ = !0;
|
|
26207
|
-
const PI = new TextEncoder(), MI = zo((a) => fI(PI.encode(a)), () => 1, 0, 26, (a, t) => 12 + 8 * (t > 9) + 8 * PI.encode(a).length);
|
|
26205
|
+
const MI = zo(Lo, (a) => nI(a) < 256, Lo.l, 3);
|
|
26208
26206
|
MI._ = !0;
|
|
26207
|
+
const FI = new TextEncoder(), II = zo((a) => gI(FI.encode(a)), () => 1, 0, 26, (a, t) => 12 + 8 * (t > 9) + 8 * FI.encode(a).length);
|
|
26208
|
+
II._ = !0;
|
|
26209
26209
|
let oI = () => {
|
|
26210
26210
|
const a = /* @__PURE__ */ new Map(), t = new TextDecoder("sjis"), o = io(2);
|
|
26211
26211
|
for (let l = 0; l < 7973; ++l) o[0] = l / 192 + 129 + 64 * (l > 5951), o[1] = l % 192 + 64, a.set(t.decode(o), l);
|
|
26212
26212
|
return a.delete("�"), oI = () => a, a;
|
|
26213
26213
|
};
|
|
26214
|
-
const
|
|
26214
|
+
const wI = zo((a) => (t, o) => {
|
|
26215
26215
|
t.push(8, 4), t.push(a.length, 8 + 2 * (o > 26) + 2 * (o > 9));
|
|
26216
26216
|
for (const l of a) t.push(oI().get(l), 13);
|
|
26217
26217
|
}, (a) => oI().has(a), (a, t) => 12 + 2 * (t > 26) + 2 * (t > 9) + 13 * a);
|
|
26218
|
-
|
|
26219
|
-
const
|
|
26218
|
+
wI._ = !0;
|
|
26219
|
+
const uw = [sw, hw, Lo, MI, wI, II], Qq = { auto: (a, { modes: t = uw } = {}) => (o, l) => {
|
|
26220
26220
|
const d = t.map((k, g) => {
|
|
26221
26221
|
const b = /* @__PURE__ */ new Map(), C = (I, L) => (b.has(I) || b.set(I, L(I, l)), b.get(I));
|
|
26222
26222
|
return { m: k, h: 1 << g, C: k.est("", l), S: k.l ? (I, L) => C(L - I, k.l) : (I, L) => C(a.slice(I, L), k.est) };
|
|
@@ -26249,7 +26249,7 @@ const hw = [dw, sw, Lo, gI, II, MI], Qq = { auto: (a, { modes: t = hw } = {}) =>
|
|
|
26249
26249
|
const m = [];
|
|
26250
26250
|
for (let k = i.reduce((g, b) => b.v < g.v ? b : g); k.m; k = k.V) m.push(k.m(a.slice(k.$, k.A)));
|
|
26251
26251
|
m.reverse().forEach((k) => k(o, l));
|
|
26252
|
-
}, multi:
|
|
26252
|
+
}, multi: rw, eci: dw, bytes: gI, numeric: sw, alphaNumeric: hw, ascii: Lo, iso8859_1: MI, shift_jis: wI, utf8: II }, eA = () => ({ F: io(2956), I: 0, push(a, t) {
|
|
26253
26253
|
for (let o = t, l = 8 - (7 & this.I); o > 0; o -= l, l = 8) this.F[this.I >> 3] |= a << l >> o, this.I += o < l ? o : l;
|
|
26254
26254
|
} }), X9 = (a, t = a * a, o = io(t)) => ({ size: a, K: o, get: (l, d) => l >= 0 && l < a && !!(1 & o[d * a + l]), toString({ on: l = "##", off: d = " ", lf: i = `
|
|
26255
26255
|
`, pad: s = 4, padX: r = s, padY: p = s } = {}) {
|
|
@@ -26275,16 +26275,16 @@ const hw = [dw, sw, Lo, gI, II, MI], Qq = { auto: (a, { modes: t = hw } = {}) =>
|
|
|
26275
26275
|
return s.width = p.width * d, s.height = p.height * d, r.putImageData(p, 0, 0), r.imageSmoothingEnabled = !1, r.globalCompositeOperation = "copy", r.drawImage(s, 0, 0, p.width, p.height, 0, 0, s.width, s.height), s.toDataURL(l, 1);
|
|
26276
26276
|
} }), K9 = [(a, t) => 1 & (a ^ t), (a, t) => 1 & t, (a) => a % 3, (a, t) => (a + t) % 3, (a, t) => 1 & (a / 3 ^ t >> 1), (a, t) => (a & t & 1) + a * t % 3, (a, t) => (a & t) + a * t % 3 & 1, (a, t) => (a ^ t) + a * t % 3 & 1], A9 = io(511);
|
|
26277
26277
|
for (let a = 0, t = 1; a < 255; t = 2 * t ^ 285 * (t > 127)) A9[A9[t + 255] = a++] = t;
|
|
26278
|
-
const
|
|
26278
|
+
const yw = (a) => A9[a % 255], pw = (a) => A9[a + 255], aA = (a, t) => {
|
|
26279
26279
|
const o = io(a.length + t.length - 1);
|
|
26280
|
-
for (let l = 0; l < a.length; ++l) for (let d = 0; d < t.length; ++d) o[l + d] ^=
|
|
26281
|
-
return o.map(
|
|
26280
|
+
for (let l = 0; l < a.length; ++l) for (let d = 0; d < t.length; ++d) o[l + d] ^= yw(a[l] + t[d]);
|
|
26281
|
+
return o.map(pw);
|
|
26282
26282
|
}, tA = (a, t) => {
|
|
26283
26283
|
const o = io(a.length + t.length - 1);
|
|
26284
26284
|
o.set(a, 0);
|
|
26285
26285
|
for (let l = 0; l < a.length; ++l) if (o[l]) {
|
|
26286
|
-
const d =
|
|
26287
|
-
for (let i = 0; i < t.length; ++i) o[l + i] ^=
|
|
26286
|
+
const d = pw(o[l]);
|
|
26287
|
+
for (let i = 0; i < t.length; ++i) o[l + i] ^= yw(t[i] + d);
|
|
26288
26288
|
}
|
|
26289
26289
|
return o.slice(a.length);
|
|
26290
26290
|
}, cI = [[0], [0, 0]];
|
|
@@ -26303,7 +26303,7 @@ const nA = (a, t) => {
|
|
|
26303
26303
|
for (const m of s) r < m.length && (i[d++] = m[r]);
|
|
26304
26304
|
}
|
|
26305
26305
|
return i;
|
|
26306
|
-
},
|
|
26306
|
+
}, kw = (a, t, o) => {
|
|
26307
26307
|
let l = a <<= o;
|
|
26308
26308
|
for (let d = 134217728; d >>= 1; ) l & d && (l ^= t * (d >> o));
|
|
26309
26309
|
return l | a;
|
|
@@ -26317,7 +26317,7 @@ const nA = (a, t) => {
|
|
|
26317
26317
|
for (let r = s; r > 8; r -= i) d(s, r, 5);
|
|
26318
26318
|
s < a - 7 && d(s, 6, 5);
|
|
26319
26319
|
}
|
|
26320
|
-
if (o > 6) for (let s =
|
|
26320
|
+
if (o > 6) for (let s = kw(o, 7973, 12), r = 1; r < 7; ++r) for (let p = 12; p-- > 9; s >>= 1) t[r * a - p] = 2 | 1 & s;
|
|
26321
26321
|
l(7, 2, 9, 2), l(a - 8, 8, 9, 2);
|
|
26322
26322
|
for (let s = 0; s < a; ++s) t[6 * a + s] = 3 ^ 1 & s;
|
|
26323
26323
|
d(3, 3, 7), d(a - 4, 3, 7);
|
|
@@ -26338,7 +26338,7 @@ const nA = (a, t) => {
|
|
|
26338
26338
|
const p = s * a + r;
|
|
26339
26339
|
t[p] ^= !(o(r, s) || 2 & t[p]);
|
|
26340
26340
|
}
|
|
26341
|
-
let i = 21522 ^
|
|
26341
|
+
let i = 21522 ^ kw((1 ^ d) << 3 | l, 1335, 10);
|
|
26342
26342
|
for (let s = 0; s++ < 8; i >>= 1) t[(s - (s < 7)) * a + 8] = 1 & i, t[9 * a - s] = 1 & i;
|
|
26343
26343
|
for (let s = 8; --s, i; i >>= 1) t[8 * a + s - (s < 7)] = 1 & i, t[(a - s) * a + 8] = 1 & i;
|
|
26344
26344
|
}, rA = ({ size: a, K: t }, o = 0, l = 0) => {
|
|
@@ -26353,11 +26353,11 @@ const nA = (a, t) => {
|
|
|
26353
26353
|
}
|
|
26354
26354
|
}
|
|
26355
26355
|
return o + 10 * (10 * Math.abs(l / (a * a) - 1) | 0);
|
|
26356
|
-
},
|
|
26356
|
+
}, jI = [], iI = (a = jo(1), { minCorrectionLevel: t = 0, maxCorrectionLevel: o = 3, minVersion: l = 1, maxVersion: d = 40, mask: i, trailer: s = 60433, ...r } = {}) => {
|
|
26357
26357
|
o < t && jo(3), d < l && jo(2), typeof a == "string" && (a = Qq.auto(a, r));
|
|
26358
26358
|
for (let p = l, m = 0; p <= d; ++p) {
|
|
26359
|
-
let k =
|
|
26360
|
-
k || (
|
|
26359
|
+
let k = jI[p];
|
|
26360
|
+
k || (jI[p] = k = X9(4 * p + 17), oA(k, p), k.p = cA(k));
|
|
26361
26361
|
const g = Jq(p, k.p.length >> 3);
|
|
26362
26362
|
if (8 * g(t).t < m) continue;
|
|
26363
26363
|
const b = eA();
|
|
@@ -26375,7 +26375,7 @@ const nA = (a, t) => {
|
|
|
26375
26375
|
}
|
|
26376
26376
|
jo(4);
|
|
26377
26377
|
};
|
|
26378
|
-
iI.with = (...a) => (t, o) => iI(t, { modes: [...
|
|
26378
|
+
iI.with = (...a) => (t, o) => iI(t, { modes: [...uw, ...a], ...o });
|
|
26379
26379
|
const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...Object.entries(o).map(([d, i]) => ` ${d}="${`${i}`.replace(/[^ -~]|["&]/g, "")}"`), ">", ...l, `</${t}>`].join(""), hA = (a) => {
|
|
26380
26380
|
const t = /* @__PURE__ */ new Map(), o = [], l = (d) => {
|
|
26381
26381
|
const i = t.get(d);
|
|
@@ -26527,7 +26527,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26527
26527
|
onClick: b
|
|
26528
26528
|
}, {
|
|
26529
26529
|
prepend: x(() => [
|
|
26530
|
-
w(n(
|
|
26530
|
+
w(n(ae), {
|
|
26531
26531
|
icon: n(q2),
|
|
26532
26532
|
size: 14
|
|
26533
26533
|
}, null, 8, ["icon"])
|
|
@@ -26550,7 +26550,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26550
26550
|
class: "admin-2fa__copy",
|
|
26551
26551
|
onClick: f
|
|
26552
26552
|
}, [
|
|
26553
|
-
w(n(
|
|
26553
|
+
w(n(ae), {
|
|
26554
26554
|
icon: n(yo),
|
|
26555
26555
|
size: 12
|
|
26556
26556
|
}, null, 8, ["icon"]),
|
|
@@ -26598,7 +26598,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26598
26598
|
])) : d.value === "confirmed" ? (c(), h("div", CA, [
|
|
26599
26599
|
u("p", _A, y(n(v)("2FA активирована. Сохраните recovery-коды в безопасном месте — они нужны если вы")) + " " + y(n(v)("потеряете доступ к Authenticator-приложению.")), 1),
|
|
26600
26600
|
u("div", SA, [
|
|
26601
|
-
(c(!0), h(X, null,
|
|
26601
|
+
(c(!0), h(X, null, ee(p.value, (P) => (c(), h("code", {
|
|
26602
26602
|
key: P,
|
|
26603
26603
|
class: "admin-2fa__codes-item"
|
|
26604
26604
|
}, y(P), 1))), 128))
|
|
@@ -26608,7 +26608,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26608
26608
|
onClick: S
|
|
26609
26609
|
}, {
|
|
26610
26610
|
prepend: x(() => [
|
|
26611
|
-
w(n(
|
|
26611
|
+
w(n(ae), {
|
|
26612
26612
|
icon: n(yo),
|
|
26613
26613
|
size: 14
|
|
26614
26614
|
}, null, 8, ["icon"])
|
|
@@ -26642,7 +26642,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26642
26642
|
onClick: L
|
|
26643
26643
|
}, {
|
|
26644
26644
|
prepend: x(() => [
|
|
26645
|
-
w(n(
|
|
26645
|
+
w(n(ae), {
|
|
26646
26646
|
icon: n(Mo),
|
|
26647
26647
|
size: 14
|
|
26648
26648
|
}, null, 8, ["icon"])
|
|
@@ -26659,7 +26659,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26659
26659
|
onClick: I
|
|
26660
26660
|
}, {
|
|
26661
26661
|
prepend: x(() => [
|
|
26662
|
-
w(n(
|
|
26662
|
+
w(n(ae), {
|
|
26663
26663
|
icon: n(A2),
|
|
26664
26664
|
size: 14
|
|
26665
26665
|
}, null, 8, ["icon"])
|
|
@@ -26672,7 +26672,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26672
26672
|
]),
|
|
26673
26673
|
g.value ? (c(), h("p", HA, y(g.value), 1)) : H("", !0),
|
|
26674
26674
|
p.value.length > 0 ? (c(), h("div", VA, [
|
|
26675
|
-
(c(!0), h(X, null,
|
|
26675
|
+
(c(!0), h(X, null, ee(p.value, (P) => (c(), h("code", {
|
|
26676
26676
|
key: P,
|
|
26677
26677
|
class: "admin-2fa__codes-item"
|
|
26678
26678
|
}, y(P), 1))), 128))
|
|
@@ -26692,7 +26692,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26692
26692
|
},
|
|
26693
26693
|
emits: ["update:section", "avatar-replace", "two-factor-disable", "two-factor-regenerate", "save"],
|
|
26694
26694
|
setup(a, { emit: t }) {
|
|
26695
|
-
const o = a, l = t, d = Qe(), i =
|
|
26695
|
+
const o = a, l = t, d = Qe(), i = pI(), s = co(), r = [
|
|
26696
26696
|
{ id: "general", label: v("Основное"), icon: "user" },
|
|
26697
26697
|
{ id: "security", label: v("Безопасность"), icon: "shield" },
|
|
26698
26698
|
{ id: "tokens", label: v("API токены"), icon: "key" },
|
|
@@ -26748,7 +26748,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26748
26748
|
]),
|
|
26749
26749
|
u("div", $A, [
|
|
26750
26750
|
u("nav", TA, [
|
|
26751
|
-
(c(), h(X, null,
|
|
26751
|
+
(c(), h(X, null, ee(r, (T) => u("button", {
|
|
26752
26752
|
key: T.id,
|
|
26753
26753
|
type: "button",
|
|
26754
26754
|
class: fe([
|
|
@@ -26842,7 +26842,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26842
26842
|
default: x(() => [
|
|
26843
26843
|
u("header", QA, [
|
|
26844
26844
|
u("h3", ez, y(n(v)("Двухфакторная аутентификация")), 1),
|
|
26845
|
-
w(n(
|
|
26845
|
+
w(n(yI), {
|
|
26846
26846
|
variant: f.value ? "success" : "default"
|
|
26847
26847
|
}, {
|
|
26848
26848
|
default: x(() => [
|
|
@@ -26872,7 +26872,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26872
26872
|
])
|
|
26873
26873
|
]));
|
|
26874
26874
|
}
|
|
26875
|
-
}),
|
|
26875
|
+
}), DI = /* @__PURE__ */ ne({
|
|
26876
26876
|
__name: "StatWidget",
|
|
26877
26877
|
props: {
|
|
26878
26878
|
title: { default: "" },
|
|
@@ -26923,7 +26923,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26923
26923
|
}, iz = {
|
|
26924
26924
|
key: 1,
|
|
26925
26925
|
class: "admin-widget__empty"
|
|
26926
|
-
}, lz = ["viewBox", "height", "aria-label"], rz = ["x", "y", "width", "height", "fill", "data-label", "data-value"],
|
|
26926
|
+
}, lz = ["viewBox", "height", "aria-label"], rz = ["x", "y", "width", "height", "fill", "data-label", "data-value"], mw = /* @__PURE__ */ ne({
|
|
26927
26927
|
__name: "BarChartWidget",
|
|
26928
26928
|
props: {
|
|
26929
26929
|
title: { default: "" },
|
|
@@ -26964,7 +26964,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26964
26964
|
role: "img",
|
|
26965
26965
|
"aria-label": a.title || "Bar chart"
|
|
26966
26966
|
}, [
|
|
26967
|
-
(c(!0), h(X, null,
|
|
26967
|
+
(c(!0), h(X, null, ee(d.value, (r, p) => (c(), h("rect", {
|
|
26968
26968
|
key: p,
|
|
26969
26969
|
x: r.x,
|
|
26970
26970
|
y: a.height - r.heightPct / 100 * a.height,
|
|
@@ -26991,7 +26991,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26991
26991
|
}, uz = {
|
|
26992
26992
|
key: 2,
|
|
26993
26993
|
class: "admin-donut-widget__row"
|
|
26994
|
-
}, yz = ["aria-label"], pz = ["d", "fill"], kz = { class: "admin-donut-widget__legend" }, mz = { class: "admin-donut-widget__label" }, vz = { class: "admin-donut-widget__value" },
|
|
26994
|
+
}, yz = ["aria-label"], pz = ["d", "fill"], kz = { class: "admin-donut-widget__legend" }, mz = { class: "admin-donut-widget__label" }, vz = { class: "admin-donut-widget__value" }, vw = /* @__PURE__ */ ne({
|
|
26995
26995
|
__name: "DonutChartWidget",
|
|
26996
26996
|
props: {
|
|
26997
26997
|
title: { default: "" },
|
|
@@ -27035,7 +27035,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27035
27035
|
role: "img",
|
|
27036
27036
|
"aria-label": a.title
|
|
27037
27037
|
}, [
|
|
27038
|
-
(c(!0), h(X, null,
|
|
27038
|
+
(c(!0), h(X, null, ee(i.value, (p, m) => (c(), h("path", {
|
|
27039
27039
|
key: m,
|
|
27040
27040
|
d: p.path,
|
|
27041
27041
|
fill: p.color
|
|
@@ -27050,7 +27050,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27050
27050
|
}, null, -1))
|
|
27051
27051
|
], 8, yz)),
|
|
27052
27052
|
u("ul", kz, [
|
|
27053
|
-
(c(!0), h(X, null,
|
|
27053
|
+
(c(!0), h(X, null, ee(i.value, (p, m) => (c(), h("li", { key: m }, [
|
|
27054
27054
|
u("span", {
|
|
27055
27055
|
class: "admin-donut-widget__dot",
|
|
27056
27056
|
style: Ve({ background: p.color })
|
|
@@ -27166,18 +27166,18 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27166
27166
|
style: Ve({ "--admin-heatmap-cols": a.cols.length })
|
|
27167
27167
|
}, [
|
|
27168
27168
|
u("div", xz, [
|
|
27169
|
-
(c(!0), h(X, null,
|
|
27169
|
+
(c(!0), h(X, null, ee(a.cols, (r, p) => (c(), h("span", {
|
|
27170
27170
|
key: `c-${p}`,
|
|
27171
27171
|
class: "admin-heatmap__col-label"
|
|
27172
27172
|
}, y(p % 3 === 0 ? r : ""), 1))), 128))
|
|
27173
27173
|
]),
|
|
27174
|
-
(c(!0), h(X, null,
|
|
27174
|
+
(c(!0), h(X, null, ee(a.matrix, (r, p) => (c(), h("div", {
|
|
27175
27175
|
key: `r-${p}`,
|
|
27176
27176
|
class: "admin-heatmap__row"
|
|
27177
27177
|
}, [
|
|
27178
27178
|
u("span", bz, y(a.rows[p] ?? ""), 1),
|
|
27179
27179
|
u("div", Lz, [
|
|
27180
|
-
(c(!0), h(X, null,
|
|
27180
|
+
(c(!0), h(X, null, ee(r, (m, k) => (c(), h("span", {
|
|
27181
27181
|
key: `cell-${p}-${k}`,
|
|
27182
27182
|
class: "admin-heatmap__cell",
|
|
27183
27183
|
style: Ve({ background: a.color, opacity: l(m) }),
|
|
@@ -27230,7 +27230,7 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27230
27230
|
u("h3", Az, y(a.title), 1)
|
|
27231
27231
|
])) : H("", !0),
|
|
27232
27232
|
u("div", zz, [
|
|
27233
|
-
w(n(
|
|
27233
|
+
w(n(ex), {
|
|
27234
27234
|
value: a.value,
|
|
27235
27235
|
min: a.min,
|
|
27236
27236
|
max: a.max,
|
|
@@ -27312,11 +27312,11 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27312
27312
|
color: r.color ?? l[m % l.length]
|
|
27313
27313
|
})) : [];
|
|
27314
27314
|
});
|
|
27315
|
-
return (r, p) => o.value === "doughnut" || o.value === "pie" ? (c(), z(
|
|
27315
|
+
return (r, p) => o.value === "doughnut" || o.value === "pie" ? (c(), z(vw, {
|
|
27316
27316
|
key: 0,
|
|
27317
27317
|
title: a.title,
|
|
27318
27318
|
data: s.value
|
|
27319
|
-
}, null, 8, ["title", "data"])) : o.value === "bar" || o.value === "line" || o.value === "area" ? (c(), z(
|
|
27319
|
+
}, null, 8, ["title", "data"])) : o.value === "bar" || o.value === "line" || o.value === "area" ? (c(), z(mw, {
|
|
27320
27320
|
key: 1,
|
|
27321
27321
|
title: a.title,
|
|
27322
27322
|
data: d.value,
|
|
@@ -27413,15 +27413,15 @@ const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27413
27413
|
function Gz() {
|
|
27414
27414
|
((t) => {
|
|
27415
27415
|
for (const [o, l] of Object.entries(t))
|
|
27416
|
-
|
|
27416
|
+
Xb(o) || Gb(o, l);
|
|
27417
27417
|
})({
|
|
27418
27418
|
// Stat / Stats overview
|
|
27419
|
-
stat:
|
|
27420
|
-
stats:
|
|
27419
|
+
stat: DI,
|
|
27420
|
+
stats: DI,
|
|
27421
27421
|
// Charts: универсальный диспетчер по data.type → bar/donut/...
|
|
27422
27422
|
chart: Dz,
|
|
27423
|
-
"bar-chart":
|
|
27424
|
-
"donut-chart":
|
|
27423
|
+
"bar-chart": mw,
|
|
27424
|
+
"donut-chart": vw,
|
|
27425
27425
|
// Recent list (таблица последних записей)
|
|
27426
27426
|
"recent-table": J9,
|
|
27427
27427
|
recent_list: J9,
|
|
@@ -27438,11 +27438,11 @@ function Gz() {
|
|
|
27438
27438
|
function Nz(a) {
|
|
27439
27439
|
return a.success === !0;
|
|
27440
27440
|
}
|
|
27441
|
-
function
|
|
27441
|
+
function tj(a) {
|
|
27442
27442
|
return a.success === !1;
|
|
27443
27443
|
}
|
|
27444
27444
|
function Xz(a) {
|
|
27445
|
-
const t =
|
|
27445
|
+
const t = ux.create({
|
|
27446
27446
|
baseURL: a.baseURL,
|
|
27447
27447
|
withCredentials: !0,
|
|
27448
27448
|
headers: {
|
|
@@ -27459,7 +27459,7 @@ function Xz(a) {
|
|
|
27459
27459
|
if (i && typeof i == "object" && "success" in i) {
|
|
27460
27460
|
if (Nz(i))
|
|
27461
27461
|
return d.data = i.payload, d;
|
|
27462
|
-
throw
|
|
27462
|
+
throw LI(d.status, i.payload);
|
|
27463
27463
|
}
|
|
27464
27464
|
return d;
|
|
27465
27465
|
},
|
|
@@ -27468,7 +27468,7 @@ function Xz(a) {
|
|
|
27468
27468
|
const i = d.response.status, s = d.response.data?.payload ?? {
|
|
27469
27469
|
errorKey: "unknown",
|
|
27470
27470
|
message: d.message
|
|
27471
|
-
}, r =
|
|
27471
|
+
}, r = LI(i, s);
|
|
27472
27472
|
return r instanceof KI && a.onUnauthenticated?.(), Promise.reject(r);
|
|
27473
27473
|
}
|
|
27474
27474
|
return Promise.reject(new F9(d.message));
|
|
@@ -27668,7 +27668,7 @@ function rH(a) {
|
|
|
27668
27668
|
return typeof a != "string" ? !1 : lH.some((t) => a.startsWith(t));
|
|
27669
27669
|
}
|
|
27670
27670
|
function dH(a) {
|
|
27671
|
-
const t = a.base ?? "/admin", o = a.history ??
|
|
27671
|
+
const t = a.base ?? "/admin", o = a.history ?? UI(t), l = [
|
|
27672
27672
|
{
|
|
27673
27673
|
path: "/login",
|
|
27674
27674
|
name: "admin.login",
|
|
@@ -27714,7 +27714,7 @@ function dH(a) {
|
|
|
27714
27714
|
name: "admin.notFound",
|
|
27715
27715
|
component: a.components.notFound,
|
|
27716
27716
|
meta: { kind: "system", title: "404", requiresAuth: !0 }
|
|
27717
|
-
}, i =
|
|
27717
|
+
}, i = Rw({
|
|
27718
27718
|
history: o,
|
|
27719
27719
|
routes: [...l, ...a.extraRoutes ?? [], d]
|
|
27720
27720
|
});
|
|
@@ -27787,7 +27787,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
27787
27787
|
disabled: a.disabled
|
|
27788
27788
|
}, {
|
|
27789
27789
|
default: x(() => [
|
|
27790
|
-
w(n(
|
|
27790
|
+
w(n(ax), {
|
|
27791
27791
|
"model-value": l.value,
|
|
27792
27792
|
rows: a.rows,
|
|
27793
27793
|
placeholder: a.placeholder ?? void 0,
|
|
@@ -27830,7 +27830,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
27830
27830
|
disabled: a.disabled
|
|
27831
27831
|
}, {
|
|
27832
27832
|
default: x(() => [
|
|
27833
|
-
w(n(
|
|
27833
|
+
w(n(tx), {
|
|
27834
27834
|
"model-value": l.value,
|
|
27835
27835
|
min: a.min ?? void 0,
|
|
27836
27836
|
max: a.max ?? void 0,
|
|
@@ -27911,7 +27911,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
27911
27911
|
disabled: a.disabled
|
|
27912
27912
|
}, {
|
|
27913
27913
|
default: x(() => [
|
|
27914
|
-
w(n(
|
|
27914
|
+
w(n(OI), {
|
|
27915
27915
|
"model-value": l.value,
|
|
27916
27916
|
disabled: a.disabled,
|
|
27917
27917
|
required: a.required,
|
|
@@ -27951,7 +27951,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
27951
27951
|
disabled: a.disabled
|
|
27952
27952
|
}, {
|
|
27953
27953
|
default: x(() => [
|
|
27954
|
-
w(n(
|
|
27954
|
+
w(n(nx), {
|
|
27955
27955
|
"model-value": l.value,
|
|
27956
27956
|
min: a.min ?? void 0,
|
|
27957
27957
|
max: a.max ?? void 0,
|
|
@@ -27994,7 +27994,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
27994
27994
|
const t = a, o = Pe(), l = M(() => {
|
|
27995
27995
|
const W = o.getField(t.name);
|
|
27996
27996
|
return Array.isArray(W) ? W.map((J) => String(J)) : typeof W == "string" && W !== "" ? W.split(",").map((J) => J.trim()).filter(Boolean) : [];
|
|
27997
|
-
}), d = M(() => o.errors[t.name]?.[0]), i = A(""), s = A(!1), r = A(null), p = A(null), m = A(null), { floatingStyle: k, update: g } =
|
|
27997
|
+
}), d = M(() => o.errors[t.name]?.[0]), i = A(""), s = A(!1), r = A(null), p = A(null), m = A(null), { floatingStyle: k, update: g } = ox(p, m, {
|
|
27998
27998
|
placement: "bottom-start",
|
|
27999
27999
|
offset: 4
|
|
28000
28000
|
}), b = A(0);
|
|
@@ -28098,7 +28098,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28098
28098
|
]),
|
|
28099
28099
|
onClick: O
|
|
28100
28100
|
}, [
|
|
28101
|
-
(c(!0), h(X, null,
|
|
28101
|
+
(c(!0), h(X, null, ee(l.value, (R, _) => (c(), h("span", {
|
|
28102
28102
|
key: `${R}-${_}`,
|
|
28103
28103
|
class: "admin-tags__chip"
|
|
28104
28104
|
}, [
|
|
@@ -28110,7 +28110,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28110
28110
|
"aria-label": n(v)("Удалить"),
|
|
28111
28111
|
onClick: me((j) => S(_), ["stop"])
|
|
28112
28112
|
}, [
|
|
28113
|
-
w(n(
|
|
28113
|
+
w(n(ae), {
|
|
28114
28114
|
icon: n(He),
|
|
28115
28115
|
size: 10
|
|
28116
28116
|
}, null, 8, ["icon"])
|
|
@@ -28138,11 +28138,11 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28138
28138
|
role: "listbox",
|
|
28139
28139
|
style: Ve(I.value)
|
|
28140
28140
|
}, [
|
|
28141
|
-
T.value ? (c(!0), h(X, { key: 0 },
|
|
28141
|
+
T.value ? (c(!0), h(X, { key: 0 }, ee(P.value, (R, _) => (c(), h(X, {
|
|
28142
28142
|
key: `g-${_}-${R.label}`
|
|
28143
28143
|
}, [
|
|
28144
28144
|
u("div", kH, y(R.label), 1),
|
|
28145
|
-
(c(!0), h(X, null,
|
|
28145
|
+
(c(!0), h(X, null, ee(R.items, (j) => (c(), h("button", {
|
|
28146
28146
|
key: j,
|
|
28147
28147
|
type: "button",
|
|
28148
28148
|
role: "option",
|
|
@@ -28158,7 +28158,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28158
28158
|
onMousedown: me((q) => G(j), ["prevent"]),
|
|
28159
28159
|
onMouseenter: (q) => V.value = B.value.indexOf(j)
|
|
28160
28160
|
}, y(j), 43, mH))), 128))
|
|
28161
|
-
], 64))), 128)) : (c(!0), h(X, { key: 1 },
|
|
28161
|
+
], 64))), 128)) : (c(!0), h(X, { key: 1 }, ee(B.value, (R, _) => (c(), h("button", {
|
|
28162
28162
|
key: R,
|
|
28163
28163
|
type: "button",
|
|
28164
28164
|
role: "option",
|
|
@@ -28193,7 +28193,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28193
28193
|
}, AH = {
|
|
28194
28194
|
key: 2,
|
|
28195
28195
|
class: "admin-field__help"
|
|
28196
|
-
},
|
|
28196
|
+
}, BI = /* @__PURE__ */ ne({
|
|
28197
28197
|
__name: "TranslatableField",
|
|
28198
28198
|
props: {
|
|
28199
28199
|
name: {},
|
|
@@ -28238,7 +28238,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28238
28238
|
])) : H("", !0),
|
|
28239
28239
|
u("div", xH, [
|
|
28240
28240
|
u("div", bH, [
|
|
28241
|
-
(c(!0), h(X, null,
|
|
28241
|
+
(c(!0), h(X, null, ee(d.value, (b) => (c(), h("button", {
|
|
28242
28242
|
key: b,
|
|
28243
28243
|
type: "button",
|
|
28244
28244
|
role: "tab",
|
|
@@ -28463,7 +28463,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28463
28463
|
ref: p,
|
|
28464
28464
|
class: "admin-field__control admin-wysiwyg-wrap"
|
|
28465
28465
|
}, [
|
|
28466
|
-
w(n(
|
|
28466
|
+
w(n(yx), {
|
|
28467
28467
|
"model-value": l.value,
|
|
28468
28468
|
placeholder: a.placeholder ?? void 0,
|
|
28469
28469
|
readonly: a.disabled,
|
|
@@ -28482,7 +28482,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28482
28482
|
class: "admin-wysiwyg__file-input",
|
|
28483
28483
|
onChange: g
|
|
28484
28484
|
}, null, 544),
|
|
28485
|
-
I.value ? (c(), h(X, { key: 0 },
|
|
28485
|
+
I.value ? (c(), h(X, { key: 0 }, ee(["nw", "ne", "sw", "se"], (j) => u("div", {
|
|
28486
28486
|
key: j,
|
|
28487
28487
|
class: fe(["admin-wysiwyg-img__handle", `admin-wysiwyg-img__handle--${j}`]),
|
|
28488
28488
|
style: Ve(J(j, I.value)),
|
|
@@ -28586,7 +28586,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28586
28586
|
onClick: b
|
|
28587
28587
|
}, {
|
|
28588
28588
|
default: x(() => [
|
|
28589
|
-
w(n(
|
|
28589
|
+
w(n(ae), { icon: n(He) }, null, 8, ["icon"]),
|
|
28590
28590
|
I[2] || (I[2] = D(" Удалить ", -1))
|
|
28591
28591
|
]),
|
|
28592
28592
|
_: 1
|
|
@@ -28599,7 +28599,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28599
28599
|
onDragleave: I[1] || (I[1] = (L) => r.value = !1),
|
|
28600
28600
|
onDrop: k
|
|
28601
28601
|
}, [
|
|
28602
|
-
w(n(
|
|
28602
|
+
w(n(ae), {
|
|
28603
28603
|
icon: n(oo),
|
|
28604
28604
|
size: 24
|
|
28605
28605
|
}, null, 8, ["icon"]),
|
|
@@ -28618,7 +28618,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28618
28618
|
d.value ? (c(), h("p", XH, y(d.value), 1)) : H("", !0)
|
|
28619
28619
|
]));
|
|
28620
28620
|
}
|
|
28621
|
-
}),
|
|
28621
|
+
}), RI = /* @__PURE__ */ a1(KH, [["__scopeId", "data-v-ec4a41a3"]]), JH = { class: "admin-image-cropper" }, YH = {
|
|
28622
28622
|
key: 0,
|
|
28623
28623
|
class: "admin-image-cropper__label"
|
|
28624
28624
|
}, QH = {
|
|
@@ -28796,7 +28796,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28796
28796
|
onDragleave: _[1] || (_[1] = (j) => s.value = !1),
|
|
28797
28797
|
onDrop: f
|
|
28798
28798
|
}, [
|
|
28799
|
-
w(n(
|
|
28799
|
+
w(n(ae), {
|
|
28800
28800
|
icon: n(to),
|
|
28801
28801
|
size: 28
|
|
28802
28802
|
}, null, 8, ["icon"]),
|
|
@@ -28854,7 +28854,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28854
28854
|
onClick: O
|
|
28855
28855
|
}, {
|
|
28856
28856
|
default: x(() => [
|
|
28857
|
-
w(n(
|
|
28857
|
+
w(n(ae), { icon: n(i1) }, null, 8, ["icon"]),
|
|
28858
28858
|
D(" " + y(r.value ? n(v)("Загрузка…") : n(v)("Применить")), 1)
|
|
28859
28859
|
]),
|
|
28860
28860
|
_: 1
|
|
@@ -28866,7 +28866,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28866
28866
|
onClick: G
|
|
28867
28867
|
}, {
|
|
28868
28868
|
default: x(() => [
|
|
28869
|
-
w(n(
|
|
28869
|
+
w(n(ae), { icon: n(He) }, null, 8, ["icon"]),
|
|
28870
28870
|
_[7] || (_[7] = D(" Отмена ", -1))
|
|
28871
28871
|
]),
|
|
28872
28872
|
_: 1
|
|
@@ -28888,7 +28888,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28888
28888
|
onClick: W
|
|
28889
28889
|
}, {
|
|
28890
28890
|
default: x(() => [
|
|
28891
|
-
w(n(
|
|
28891
|
+
w(n(ae), { icon: n(C2) }, null, 8, ["icon"]),
|
|
28892
28892
|
_[8] || (_[8] = D(" Заменить ", -1))
|
|
28893
28893
|
]),
|
|
28894
28894
|
_: 1
|
|
@@ -28899,7 +28899,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28899
28899
|
onClick: J
|
|
28900
28900
|
}, {
|
|
28901
28901
|
default: x(() => [
|
|
28902
|
-
w(n(
|
|
28902
|
+
w(n(ae), { icon: n(He) }, null, 8, ["icon"]),
|
|
28903
28903
|
_[9] || (_[9] = D(" Удалить ", -1))
|
|
28904
28904
|
]),
|
|
28905
28905
|
_: 1
|
|
@@ -28980,7 +28980,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28980
28980
|
u("span", null, y(n(v)(a.valueLabel)), 1),
|
|
28981
28981
|
g[0] || (g[0] = u("span", null, null, -1))
|
|
28982
28982
|
]),
|
|
28983
|
-
(c(!0), h(X, null,
|
|
28983
|
+
(c(!0), h(X, null, ee(d.value, (b, C) => (c(), h("div", {
|
|
28984
28984
|
key: C,
|
|
28985
28985
|
class: "admin-keyvalue__row"
|
|
28986
28986
|
}, [
|
|
@@ -29005,7 +29005,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29005
29005
|
onClick: (I) => r(C)
|
|
29006
29006
|
}, {
|
|
29007
29007
|
default: x(() => [
|
|
29008
|
-
w(n(
|
|
29008
|
+
w(n(ae), {
|
|
29009
29009
|
icon: n(He),
|
|
29010
29010
|
size: 14
|
|
29011
29011
|
}, null, 8, ["icon"])
|
|
@@ -29017,7 +29017,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29017
29017
|
key: 0,
|
|
29018
29018
|
id: m.value
|
|
29019
29019
|
}, [
|
|
29020
|
-
(c(!0), h(X, null,
|
|
29020
|
+
(c(!0), h(X, null, ee(a.allowedKeys, (b) => (c(), h("option", {
|
|
29021
29021
|
key: b,
|
|
29022
29022
|
value: b
|
|
29023
29023
|
}, null, 8, bV))), 128))
|
|
@@ -29031,7 +29031,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29031
29031
|
onClick: s
|
|
29032
29032
|
}, {
|
|
29033
29033
|
prepend: x(() => [
|
|
29034
|
-
w(n(
|
|
29034
|
+
w(n(ae), {
|
|
29035
29035
|
icon: n(Te),
|
|
29036
29036
|
size: 14
|
|
29037
29037
|
}, null, 8, ["icon"])
|
|
@@ -29052,19 +29052,19 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29052
29052
|
},
|
|
29053
29053
|
emits: ["update:modelValue"],
|
|
29054
29054
|
setup(a, { emit: t }) {
|
|
29055
|
-
const o = a, l = t, d =
|
|
29055
|
+
const o = a, l = t, d = TI({ ...o.modelValue });
|
|
29056
29056
|
return V9(d), Ie(
|
|
29057
29057
|
d,
|
|
29058
29058
|
() => l("update:modelValue", { ...d }),
|
|
29059
29059
|
{ deep: !0 }
|
|
29060
29060
|
), (i, s) => (c(), h("div", qV, [
|
|
29061
|
-
(c(!0), h(X, null,
|
|
29061
|
+
(c(!0), h(X, null, ee(a.fields, (r) => (c(), z(vI, {
|
|
29062
29062
|
key: r.name,
|
|
29063
29063
|
node: r
|
|
29064
29064
|
}, null, 8, ["node"]))), 128))
|
|
29065
29065
|
]));
|
|
29066
29066
|
}
|
|
29067
|
-
}),
|
|
29067
|
+
}), fw = /* @__PURE__ */ a1(AV, [["__scopeId", "data-v-fdba98be"]]), zV = {
|
|
29068
29068
|
key: 0,
|
|
29069
29069
|
class: "uid-form-field__label"
|
|
29070
29070
|
}, HV = {
|
|
@@ -29137,7 +29137,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29137
29137
|
D(y(a.label), 1),
|
|
29138
29138
|
a.required ? (c(), h("span", HV, "*")) : H("", !0)
|
|
29139
29139
|
])) : H("", !0),
|
|
29140
|
-
(c(!0), h(X, null,
|
|
29140
|
+
(c(!0), h(X, null, ee(d.value, (L, f) => (c(), z(n(we), {
|
|
29141
29141
|
key: f,
|
|
29142
29142
|
padding: "md",
|
|
29143
29143
|
class: "admin-repeater__item"
|
|
@@ -29155,7 +29155,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29155
29155
|
onClick: (S) => g(f, -1)
|
|
29156
29156
|
}, {
|
|
29157
29157
|
default: x(() => [
|
|
29158
|
-
w(n(
|
|
29158
|
+
w(n(ae), {
|
|
29159
29159
|
icon: n(uo),
|
|
29160
29160
|
size: 14
|
|
29161
29161
|
}, null, 8, ["icon"])
|
|
@@ -29171,7 +29171,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29171
29171
|
onClick: (S) => g(f, 1)
|
|
29172
29172
|
}, {
|
|
29173
29173
|
default: x(() => [
|
|
29174
|
-
w(n(
|
|
29174
|
+
w(n(ae), {
|
|
29175
29175
|
icon: n(h1),
|
|
29176
29176
|
size: 14
|
|
29177
29177
|
}, null, 8, ["icon"])
|
|
@@ -29186,7 +29186,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29186
29186
|
onClick: (S) => k(f)
|
|
29187
29187
|
}, {
|
|
29188
29188
|
default: x(() => [
|
|
29189
|
-
w(n(
|
|
29189
|
+
w(n(ae), {
|
|
29190
29190
|
icon: n(He),
|
|
29191
29191
|
size: 14
|
|
29192
29192
|
}, null, 8, ["icon"])
|
|
@@ -29195,7 +29195,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29195
29195
|
}, 8, ["aria-label", "onClick"])) : H("", !0)
|
|
29196
29196
|
])
|
|
29197
29197
|
]),
|
|
29198
|
-
w(
|
|
29198
|
+
w(fw, {
|
|
29199
29199
|
fields: a.fields,
|
|
29200
29200
|
"model-value": L,
|
|
29201
29201
|
"onUpdate:modelValue": (S) => s(f, S)
|
|
@@ -29211,7 +29211,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29211
29211
|
onClick: p
|
|
29212
29212
|
}, {
|
|
29213
29213
|
prepend: x(() => [
|
|
29214
|
-
w(n(
|
|
29214
|
+
w(n(ae), {
|
|
29215
29215
|
icon: n(Te),
|
|
29216
29216
|
size: 14
|
|
29217
29217
|
}, null, 8, ["icon"])
|
|
@@ -29296,7 +29296,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29296
29296
|
D(y(a.label), 1),
|
|
29297
29297
|
a.required ? (c(), h("span", TV, "*")) : H("", !0)
|
|
29298
29298
|
])) : H("", !0),
|
|
29299
|
-
(c(!0), h(X, null,
|
|
29299
|
+
(c(!0), h(X, null, ee(d.value, (f, S) => (c(), z(n(we), {
|
|
29300
29300
|
key: S,
|
|
29301
29301
|
padding: "md",
|
|
29302
29302
|
class: "admin-builder__block"
|
|
@@ -29314,7 +29314,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29314
29314
|
onClick: (Z) => k(S, -1)
|
|
29315
29315
|
}, {
|
|
29316
29316
|
default: x(() => [
|
|
29317
|
-
w(n(
|
|
29317
|
+
w(n(ae), {
|
|
29318
29318
|
icon: n(uo),
|
|
29319
29319
|
size: 14
|
|
29320
29320
|
}, null, 8, ["icon"])
|
|
@@ -29330,7 +29330,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29330
29330
|
onClick: (Z) => k(S, 1)
|
|
29331
29331
|
}, {
|
|
29332
29332
|
default: x(() => [
|
|
29333
|
-
w(n(
|
|
29333
|
+
w(n(ae), {
|
|
29334
29334
|
icon: n(h1),
|
|
29335
29335
|
size: 14
|
|
29336
29336
|
}, null, 8, ["icon"])
|
|
@@ -29344,7 +29344,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29344
29344
|
onClick: (Z) => m(S)
|
|
29345
29345
|
}, {
|
|
29346
29346
|
default: x(() => [
|
|
29347
|
-
w(n(
|
|
29347
|
+
w(n(ae), {
|
|
29348
29348
|
icon: n(He),
|
|
29349
29349
|
size: 14
|
|
29350
29350
|
}, null, 8, ["icon"])
|
|
@@ -29353,7 +29353,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29353
29353
|
}, 8, ["aria-label", "onClick"])
|
|
29354
29354
|
])
|
|
29355
29355
|
]),
|
|
29356
|
-
b(f.type) ? (c(), z(
|
|
29356
|
+
b(f.type) ? (c(), z(fw, {
|
|
29357
29357
|
key: 0,
|
|
29358
29358
|
fields: b(f.type).fields,
|
|
29359
29359
|
"model-value": f.data,
|
|
@@ -29370,7 +29370,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29370
29370
|
class: "admin-builder__add"
|
|
29371
29371
|
}, {
|
|
29372
29372
|
prepend: x(() => [
|
|
29373
|
-
w(n(
|
|
29373
|
+
w(n(ae), {
|
|
29374
29374
|
icon: n(Te),
|
|
29375
29375
|
size: 14
|
|
29376
29376
|
}, null, 8, ["icon"])
|
|
@@ -29382,7 +29382,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29382
29382
|
})
|
|
29383
29383
|
]),
|
|
29384
29384
|
default: x(() => [
|
|
29385
|
-
(c(!0), h(X, null,
|
|
29385
|
+
(c(!0), h(X, null, ee(s.value, (f) => (c(), z(n(De), {
|
|
29386
29386
|
key: f.type,
|
|
29387
29387
|
onClick: (S) => p(f.type)
|
|
29388
29388
|
}, {
|
|
@@ -29545,12 +29545,12 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29545
29545
|
const i = d.span;
|
|
29546
29546
|
return typeof i == "number" && i > 0 ? Math.min(i, t.cols) : o.value;
|
|
29547
29547
|
}
|
|
29548
|
-
return (d, i) => (c(), z(n(
|
|
29548
|
+
return (d, i) => (c(), z(n(uI), {
|
|
29549
29549
|
cols: a.cols,
|
|
29550
29550
|
gap: a.gap
|
|
29551
29551
|
}, {
|
|
29552
29552
|
default: x(() => [
|
|
29553
|
-
(c(!0), h(X, null,
|
|
29553
|
+
(c(!0), h(X, null, ee(a.items, (s, r) => (c(), h("div", {
|
|
29554
29554
|
key: r,
|
|
29555
29555
|
class: "admin-columns__item",
|
|
29556
29556
|
style: Ve({ gridColumn: `span ${l(s)} / span ${l(s)}` })
|
|
@@ -29588,7 +29588,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29588
29588
|
a.description ? (c(), h("p", dP, y(a.description), 1)) : H("", !0)
|
|
29589
29589
|
])) : H("", !0),
|
|
29590
29590
|
u("div", sP, [
|
|
29591
|
-
(c(!0), h(X, null,
|
|
29591
|
+
(c(!0), h(X, null, ee(a.items, (l, d) => (c(), z(bo, {
|
|
29592
29592
|
key: d,
|
|
29593
29593
|
node: l
|
|
29594
29594
|
}, null, 8, ["node"]))), 128))
|
|
@@ -29618,7 +29618,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29618
29618
|
"onUpdate:modelValue": s
|
|
29619
29619
|
}, {
|
|
29620
29620
|
list: x(() => [
|
|
29621
|
-
(c(!0), h(X, null,
|
|
29621
|
+
(c(!0), h(X, null, ee(a.items, (m, k) => (c(), z(n(lc), {
|
|
29622
29622
|
key: d(m, k),
|
|
29623
29623
|
value: d(m, k)
|
|
29624
29624
|
}, {
|
|
@@ -29629,12 +29629,12 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29629
29629
|
}, 1032, ["value"]))), 128))
|
|
29630
29630
|
]),
|
|
29631
29631
|
default: x(() => [
|
|
29632
|
-
(c(!0), h(X, null,
|
|
29632
|
+
(c(!0), h(X, null, ee(a.items, (m, k) => (c(), z(n(ZI), {
|
|
29633
29633
|
key: `panel-${d(m, k)}`,
|
|
29634
29634
|
value: d(m, k)
|
|
29635
29635
|
}, {
|
|
29636
29636
|
default: x(() => [
|
|
29637
|
-
(c(!0), h(X, null,
|
|
29637
|
+
(c(!0), h(X, null, ee(m.items, (g, b) => (c(), z(bo, {
|
|
29638
29638
|
key: b,
|
|
29639
29639
|
node: g
|
|
29640
29640
|
}, null, 8, ["node"]))), 128))
|
|
@@ -29658,7 +29658,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29658
29658
|
features: { default: () => ({ create: !1, delete: !1, bulkDelete: !1 }) }
|
|
29659
29659
|
},
|
|
29660
29660
|
setup(a) {
|
|
29661
|
-
const t = a, o = Ee(), l =
|
|
29661
|
+
const t = a, o = Ee(), l = fI(), d = M(() => o.getResource(t.resource)), i = A([]), s = A(!1), r = A(null), p = A(/* @__PURE__ */ new Set()), m = A(null), k = M(() => {
|
|
29662
29662
|
const J = l.state[t.parent_field];
|
|
29663
29663
|
return J ?? null;
|
|
29664
29664
|
}), g = M(() => (d.value?.columns ?? []).filter((R) => {
|
|
@@ -29763,7 +29763,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29763
29763
|
onClick: F
|
|
29764
29764
|
}, {
|
|
29765
29765
|
default: x(() => [
|
|
29766
|
-
w(n(
|
|
29766
|
+
w(n(ae), { icon: n(Te) }, null, 8, ["icon"]),
|
|
29767
29767
|
R[0] || (R[0] = D(" Добавить ", -1))
|
|
29768
29768
|
]),
|
|
29769
29769
|
_: 1
|
|
@@ -29775,7 +29775,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29775
29775
|
onClick: B
|
|
29776
29776
|
}, {
|
|
29777
29777
|
default: x(() => [
|
|
29778
|
-
w(n(
|
|
29778
|
+
w(n(ae), { icon: n(Ue) }, null, 8, ["icon"]),
|
|
29779
29779
|
D(" Удалить выбранные (" + y(p.value.size) + ") ", 1)
|
|
29780
29780
|
]),
|
|
29781
29781
|
_: 1
|
|
@@ -29798,11 +29798,11 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29798
29798
|
"row-key": "id",
|
|
29799
29799
|
onSelectRow: V,
|
|
29800
29800
|
onSelectAll: T
|
|
29801
|
-
},
|
|
29802
|
-
|
|
29801
|
+
}, $I({ _: 2 }, [
|
|
29802
|
+
ee(b.value, (_) => ({
|
|
29803
29803
|
name: _.key,
|
|
29804
29804
|
fn: x((j) => [
|
|
29805
|
-
U(j) && f(_.key) ? (c(), z(
|
|
29805
|
+
U(j) && f(_.key) ? (c(), z(lw, {
|
|
29806
29806
|
key: 0,
|
|
29807
29807
|
"resource-slug": a.resource,
|
|
29808
29808
|
"row-id": Z(U(j)),
|
|
@@ -29833,7 +29833,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29833
29833
|
"aria-label": n(v)("Удалить"),
|
|
29834
29834
|
onClick: (j) => U(_) && P(U(_))
|
|
29835
29835
|
}, [
|
|
29836
|
-
w(n(
|
|
29836
|
+
w(n(ae), {
|
|
29837
29837
|
icon: n(Ue),
|
|
29838
29838
|
size: 14
|
|
29839
29839
|
}, null, 8, ["icon"])
|
|
@@ -29844,7 +29844,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29844
29844
|
]), 1032, ["columns", "data", "selectable", "selection"])),
|
|
29845
29845
|
m.value !== null ? (c(), h("div", mP, [
|
|
29846
29846
|
u("div", vP, [
|
|
29847
|
-
(c(!0), h(X, null,
|
|
29847
|
+
(c(!0), h(X, null, ee(b.value, (_) => (c(), h("div", {
|
|
29848
29848
|
key: _.key,
|
|
29849
29849
|
class: "admin-embedded-table__draft-cell"
|
|
29850
29850
|
}, [
|
|
@@ -29856,7 +29856,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29856
29856
|
onChange: (j) => te(_.key, j.target.value)
|
|
29857
29857
|
}, [
|
|
29858
29858
|
R[1] || (R[1] = u("option", { value: "" }, null, -1)),
|
|
29859
|
-
(c(!0), h(X, null,
|
|
29859
|
+
(c(!0), h(X, null, ee(f(_.key).options, (j, q) => (c(), h("option", {
|
|
29860
29860
|
key: q,
|
|
29861
29861
|
value: q
|
|
29862
29862
|
}, y(j), 9, MP))), 128))
|
|
@@ -29876,7 +29876,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29876
29876
|
onClick: G
|
|
29877
29877
|
}, {
|
|
29878
29878
|
default: x(() => [
|
|
29879
|
-
w(n(
|
|
29879
|
+
w(n(ae), { icon: n(i1) }, null, 8, ["icon"]),
|
|
29880
29880
|
R[2] || (R[2] = D(" Создать ", -1))
|
|
29881
29881
|
]),
|
|
29882
29882
|
_: 1
|
|
@@ -29887,7 +29887,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29887
29887
|
onClick: O
|
|
29888
29888
|
}, {
|
|
29889
29889
|
default: x(() => [
|
|
29890
|
-
w(n(
|
|
29890
|
+
w(n(ae), { icon: n(He) }, null, 8, ["icon"]),
|
|
29891
29891
|
R[3] || (R[3] = D(" Отмена ", -1))
|
|
29892
29892
|
]),
|
|
29893
29893
|
_: 1
|
|
@@ -29896,7 +29896,37 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29896
29896
|
])) : H("", !0)
|
|
29897
29897
|
]));
|
|
29898
29898
|
}
|
|
29899
|
-
}), bP = /* @__PURE__ */ a1(xP, [["__scopeId", "data-v-17c526a7"]])
|
|
29899
|
+
}), bP = /* @__PURE__ */ a1(xP, [["__scopeId", "data-v-17c526a7"]]), LP = /* @__PURE__ */ ne({
|
|
29900
|
+
__name: "DashboardLayout",
|
|
29901
|
+
props: {
|
|
29902
|
+
items: { default: () => [] },
|
|
29903
|
+
gridColumns: { default: 12 },
|
|
29904
|
+
gap: { default: "var(--uid-space-md)" }
|
|
29905
|
+
},
|
|
29906
|
+
setup(a) {
|
|
29907
|
+
const t = a;
|
|
29908
|
+
function o(l) {
|
|
29909
|
+
const d = l.size ?? l.span, i = Number(d), s = Number.isFinite(i) && i >= 1 ? i : t.gridColumns;
|
|
29910
|
+
return Math.min(s, t.gridColumns);
|
|
29911
|
+
}
|
|
29912
|
+
return (l, d) => (c(), z(n(uI), {
|
|
29913
|
+
cols: a.gridColumns,
|
|
29914
|
+
"col-gap": a.gap,
|
|
29915
|
+
"row-gap": "var(--uid-space-lg)"
|
|
29916
|
+
}, {
|
|
29917
|
+
default: x(() => [
|
|
29918
|
+
(c(!0), h(X, null, ee(a.items, (i, s) => (c(), h("div", {
|
|
29919
|
+
key: s,
|
|
29920
|
+
class: "admin-dashboard-layout__cell",
|
|
29921
|
+
style: Ve({ gridColumn: `span ${o(i)}` })
|
|
29922
|
+
}, [
|
|
29923
|
+
w(aw, { node: i }, null, 8, ["node"])
|
|
29924
|
+
], 4))), 128))
|
|
29925
|
+
]),
|
|
29926
|
+
_: 1
|
|
29927
|
+
}, 8, ["cols", "col-gap"]));
|
|
29928
|
+
}
|
|
29929
|
+
});
|
|
29900
29930
|
function Fo(a) {
|
|
29901
29931
|
return ne({
|
|
29902
29932
|
name: `TextField${a.charAt(0).toUpperCase()}${a.slice(1)}`,
|
|
@@ -29907,14 +29937,14 @@ function Fo(a) {
|
|
|
29907
29937
|
}
|
|
29908
29938
|
});
|
|
29909
29939
|
}
|
|
29910
|
-
function
|
|
29940
|
+
function CP(a) {
|
|
29911
29941
|
for (const [t, o] of Object.entries(a.fields ?? {}))
|
|
29912
29942
|
xC(t) || wC(t, o);
|
|
29913
29943
|
for (const [t, o] of Object.entries(a.layouts ?? {}))
|
|
29914
29944
|
LC(t) || bC(t, o);
|
|
29915
29945
|
}
|
|
29916
|
-
function
|
|
29917
|
-
|
|
29946
|
+
function _P() {
|
|
29947
|
+
CP({
|
|
29918
29948
|
fields: {
|
|
29919
29949
|
// Backend Field-классы из dskripchenko/laravel-admin отдают эти fieldType()
|
|
29920
29950
|
// строки. Соответствие см. core/src/Field/{Input,TextArea,Select,...}.php.
|
|
@@ -29945,8 +29975,8 @@ function CP() {
|
|
|
29945
29975
|
tags: MH,
|
|
29946
29976
|
// Translatable: backend Field\TranslatableInput → fieldType()='translatable'.
|
|
29947
29977
|
// Хранит value как Record<locale, string>; UI показывает табы по локалям.
|
|
29948
|
-
translatable:
|
|
29949
|
-
"translatable-text":
|
|
29978
|
+
translatable: BI,
|
|
29979
|
+
"translatable-text": BI,
|
|
29950
29980
|
// Backend fieldType() отдаёт snake_case — регистрируем именно его;
|
|
29951
29981
|
// dash-варианты оставлены как исторические алиасы для host-кода.
|
|
29952
29982
|
morph_switcher: n1,
|
|
@@ -29969,8 +29999,8 @@ function CP() {
|
|
|
29969
29999
|
"time-picker": D1,
|
|
29970
30000
|
color: m1,
|
|
29971
30001
|
"color-picker": m1,
|
|
29972
|
-
file:
|
|
29973
|
-
image:
|
|
30002
|
+
file: RI,
|
|
30003
|
+
image: RI,
|
|
29974
30004
|
image_cropper: fV,
|
|
29975
30005
|
// Составные поля (backlog ROADMAP): рендерились UnknownField.
|
|
29976
30006
|
key_value: SV,
|
|
@@ -29989,6 +30019,8 @@ function CP() {
|
|
|
29989
30019
|
group: aI,
|
|
29990
30020
|
step: Po,
|
|
29991
30021
|
wizard: Po,
|
|
30022
|
+
// Widgets on an ordinary screen: `Layout\Dashboard::make([...])`.
|
|
30023
|
+
dashboard: LP,
|
|
29992
30024
|
"admin.resource-table": bP
|
|
29993
30025
|
}
|
|
29994
30026
|
});
|
|
@@ -30015,10 +30047,10 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30015
30047
|
class: fe(["admin-infolist-text", a.mono ? "admin-infolist-text--mono" : ""])
|
|
30016
30048
|
}, y(l.value), 3));
|
|
30017
30049
|
}
|
|
30018
|
-
}),
|
|
30050
|
+
}), SP = {
|
|
30019
30051
|
key: 1,
|
|
30020
30052
|
class: "admin-infolist-text"
|
|
30021
|
-
},
|
|
30053
|
+
}, qP = /* @__PURE__ */ ne({
|
|
30022
30054
|
__name: "BadgeEntry",
|
|
30023
30055
|
props: {
|
|
30024
30056
|
name: { default: "" },
|
|
@@ -30037,7 +30069,7 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30037
30069
|
...t.map,
|
|
30038
30070
|
...t.colors
|
|
30039
30071
|
})), i = M(() => t.variant ? t.variant : d.value[l.value] ?? "default"), s = M(() => t.labels[l.value] ?? l.value);
|
|
30040
|
-
return (r, p) => l.value ? (c(), z(n(
|
|
30072
|
+
return (r, p) => l.value ? (c(), z(n(yI), {
|
|
30041
30073
|
key: 0,
|
|
30042
30074
|
variant: i.value
|
|
30043
30075
|
}, {
|
|
@@ -30045,9 +30077,9 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30045
30077
|
D(y(s.value), 1)
|
|
30046
30078
|
]),
|
|
30047
30079
|
_: 1
|
|
30048
|
-
}, 8, ["variant"])) : (c(), h("span",
|
|
30080
|
+
}, 8, ["variant"])) : (c(), h("span", SP, "—"));
|
|
30049
30081
|
}
|
|
30050
|
-
}),
|
|
30082
|
+
}), AP = { key: 1 }, zP = /* @__PURE__ */ ne({
|
|
30051
30083
|
__name: "IconEntry",
|
|
30052
30084
|
props: {
|
|
30053
30085
|
name: { default: "" },
|
|
@@ -30068,21 +30100,21 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30068
30100
|
}
|
|
30069
30101
|
const i = M(() => {
|
|
30070
30102
|
const r = d(l.value ? t.trueIcon : t.falseIcon);
|
|
30071
|
-
return
|
|
30103
|
+
return mx[r];
|
|
30072
30104
|
}), s = M(() => l.value ? t.trueLabel : t.falseLabel);
|
|
30073
30105
|
return (r, p) => (c(), h("span", {
|
|
30074
30106
|
class: fe(["admin-infolist-icon", l.value ? "admin-infolist-icon--on" : "admin-infolist-icon--off"])
|
|
30075
30107
|
}, [
|
|
30076
|
-
i.value ? (c(), z(n(
|
|
30108
|
+
i.value ? (c(), z(n(ae), {
|
|
30077
30109
|
key: 0,
|
|
30078
30110
|
icon: i.value,
|
|
30079
30111
|
size: 14,
|
|
30080
30112
|
class: "admin-infolist-icon__glyph"
|
|
30081
30113
|
}, null, 8, ["icon"])) : H("", !0),
|
|
30082
|
-
s.value ? (c(), h("span",
|
|
30114
|
+
s.value ? (c(), h("span", AP, y(s.value), 1)) : H("", !0)
|
|
30083
30115
|
], 2));
|
|
30084
30116
|
}
|
|
30085
|
-
}),
|
|
30117
|
+
}), HP = {
|
|
30086
30118
|
key: 1,
|
|
30087
30119
|
class: "admin-infolist-text"
|
|
30088
30120
|
}, eI = /* @__PURE__ */ ne({
|
|
@@ -30100,13 +30132,13 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30100
30132
|
function d(i) {
|
|
30101
30133
|
return i == null ? "—" : typeof i == "boolean" ? i ? v("Да") : v("Нет") : i === 0 ? v("Нет") : i === 1 ? v("Да") : typeof i == "object" ? JSON.stringify(i) : String(i);
|
|
30102
30134
|
}
|
|
30103
|
-
return (i, s) => l.value.length > 0 ? (c(), z(n(
|
|
30135
|
+
return (i, s) => l.value.length > 0 ? (c(), z(n(cx), {
|
|
30104
30136
|
key: 0,
|
|
30105
30137
|
direction: "vertical",
|
|
30106
30138
|
columns: 1
|
|
30107
30139
|
}, {
|
|
30108
30140
|
default: x(() => [
|
|
30109
|
-
(c(!0), h(X, null,
|
|
30141
|
+
(c(!0), h(X, null, ee(l.value, ([r, p]) => (c(), z(n(ix), {
|
|
30110
30142
|
key: r,
|
|
30111
30143
|
label: r
|
|
30112
30144
|
}, {
|
|
@@ -30117,24 +30149,24 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30117
30149
|
}, 1032, ["label"]))), 128))
|
|
30118
30150
|
]),
|
|
30119
30151
|
_: 1
|
|
30120
|
-
})) : (c(), h("span",
|
|
30152
|
+
})) : (c(), h("span", HP, "—"));
|
|
30121
30153
|
}
|
|
30122
|
-
}),
|
|
30154
|
+
}), VP = { class: "admin-repeatable" }, PP = {
|
|
30123
30155
|
key: 0,
|
|
30124
30156
|
class: "admin-repeatable__lbl"
|
|
30125
|
-
},
|
|
30157
|
+
}, FP = {
|
|
30126
30158
|
key: 1,
|
|
30127
30159
|
class: "admin-repeatable__empty"
|
|
30128
|
-
},
|
|
30160
|
+
}, jP = {
|
|
30129
30161
|
key: 2,
|
|
30130
30162
|
class: "admin-repeatable__tbl"
|
|
30131
|
-
},
|
|
30163
|
+
}, DP = { class: "admin-repeatable__idx" }, BP = {
|
|
30132
30164
|
key: 3,
|
|
30133
30165
|
class: "admin-repeatable__cards"
|
|
30134
|
-
},
|
|
30166
|
+
}, RP = { class: "admin-repeatable__card-hd" }, $P = { class: "admin-repeatable__dl" }, TP = {
|
|
30135
30167
|
key: 4,
|
|
30136
30168
|
class: "admin-repeatable__inline"
|
|
30137
|
-
},
|
|
30169
|
+
}, UP = /* @__PURE__ */ ne({
|
|
30138
30170
|
__name: "RepeatableEntry",
|
|
30139
30171
|
props: {
|
|
30140
30172
|
name: { default: "" },
|
|
@@ -30172,35 +30204,35 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30172
30204
|
name: r.name
|
|
30173
30205
|
};
|
|
30174
30206
|
}
|
|
30175
|
-
return (r, p) => (c(), h("div",
|
|
30176
|
-
a.label ? (c(), h("span",
|
|
30177
|
-
l.value.length === 0 ? (c(), h("p",
|
|
30207
|
+
return (r, p) => (c(), h("div", VP, [
|
|
30208
|
+
a.label ? (c(), h("span", PP, y(a.label), 1)) : H("", !0),
|
|
30209
|
+
l.value.length === 0 ? (c(), h("p", FP, y(a.placeholder), 1)) : a.layout === "columns" ? (c(), h("table", jP, [
|
|
30178
30210
|
u("thead", null, [
|
|
30179
30211
|
u("tr", null, [
|
|
30180
30212
|
p[0] || (p[0] = u("th", { class: "admin-repeatable__idx" }, "#", -1)),
|
|
30181
|
-
(c(!0), h(X, null,
|
|
30213
|
+
(c(!0), h(X, null, ee(a.entries, (m) => (c(), h("th", {
|
|
30182
30214
|
key: m.name
|
|
30183
30215
|
}, y(d(m)), 1))), 128))
|
|
30184
30216
|
])
|
|
30185
30217
|
]),
|
|
30186
30218
|
u("tbody", null, [
|
|
30187
|
-
(c(!0), h(X, null,
|
|
30188
|
-
u("td",
|
|
30189
|
-
(c(!0), h(X, null,
|
|
30219
|
+
(c(!0), h(X, null, ee(l.value, (m, k) => (c(), h("tr", { key: k }, [
|
|
30220
|
+
u("td", DP, y(k + 1), 1),
|
|
30221
|
+
(c(!0), h(X, null, ee(a.entries, (g) => (c(), h("td", {
|
|
30190
30222
|
key: g.name
|
|
30191
30223
|
}, [
|
|
30192
30224
|
(c(), z($e(i(g.type) || "span"), Qn({ ref_for: !0 }, s(g, m)), null, 16))
|
|
30193
30225
|
]))), 128))
|
|
30194
30226
|
]))), 128))
|
|
30195
30227
|
])
|
|
30196
|
-
])) : a.layout === "rows" ? (c(), h("div",
|
|
30197
|
-
(c(!0), h(X, null,
|
|
30228
|
+
])) : a.layout === "rows" ? (c(), h("div", BP, [
|
|
30229
|
+
(c(!0), h(X, null, ee(l.value, (m, k) => (c(), h("article", {
|
|
30198
30230
|
key: k,
|
|
30199
30231
|
class: "admin-repeatable__card"
|
|
30200
30232
|
}, [
|
|
30201
|
-
u("header",
|
|
30202
|
-
u("dl",
|
|
30203
|
-
(c(!0), h(X, null,
|
|
30233
|
+
u("header", RP, "#" + y(k + 1), 1),
|
|
30234
|
+
u("dl", $P, [
|
|
30235
|
+
(c(!0), h(X, null, ee(a.entries, (g) => (c(), h(X, {
|
|
30204
30236
|
key: g.name
|
|
30205
30237
|
}, [
|
|
30206
30238
|
u("dt", null, y(d(g)), 1),
|
|
@@ -30210,12 +30242,12 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30210
30242
|
], 64))), 128))
|
|
30211
30243
|
])
|
|
30212
30244
|
]))), 128))
|
|
30213
|
-
])) : (c(), h("div",
|
|
30214
|
-
(c(!0), h(X, null,
|
|
30245
|
+
])) : (c(), h("div", TP, [
|
|
30246
|
+
(c(!0), h(X, null, ee(l.value, (m, k) => (c(), h("span", {
|
|
30215
30247
|
key: k,
|
|
30216
30248
|
class: "admin-repeatable__chip"
|
|
30217
30249
|
}, [
|
|
30218
|
-
(c(!0), h(X, null,
|
|
30250
|
+
(c(!0), h(X, null, ee(a.entries, (g) => (c(), z($e(i(g.type) || "span"), Qn({
|
|
30219
30251
|
key: g.name,
|
|
30220
30252
|
ref_for: !0
|
|
30221
30253
|
}, s(g, m)), null, 16))), 128))
|
|
@@ -30224,17 +30256,17 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30224
30256
|
]));
|
|
30225
30257
|
}
|
|
30226
30258
|
});
|
|
30227
|
-
function
|
|
30259
|
+
function OP() {
|
|
30228
30260
|
KS({
|
|
30229
30261
|
// Дефолтные типы infolist (BadgeEntry::make() и т.п.).
|
|
30230
30262
|
text: ge,
|
|
30231
|
-
badge:
|
|
30232
|
-
icon:
|
|
30263
|
+
badge: qP,
|
|
30264
|
+
icon: zP,
|
|
30233
30265
|
keyvalue: eI,
|
|
30234
30266
|
key_value: eI,
|
|
30235
30267
|
"key-value": eI,
|
|
30236
30268
|
// Repeatable: коллекция объектов с nested-entries (таблица/cards/inline).
|
|
30237
|
-
repeatable:
|
|
30269
|
+
repeatable: UP,
|
|
30238
30270
|
// Маппинг от backend Field::fieldType() → TextEntry для view-режима.
|
|
30239
30271
|
// Host'ы могут перебить registerInfolistEntry('wysiwyg', WysiwygEntry).
|
|
30240
30272
|
input: ge,
|
|
@@ -30274,19 +30306,19 @@ function UP() {
|
|
|
30274
30306
|
"color-picker": ge
|
|
30275
30307
|
});
|
|
30276
30308
|
}
|
|
30277
|
-
function
|
|
30278
|
-
const o = t.pages ?? {}, l = t.base ??
|
|
30309
|
+
function nj(a, t = {}) {
|
|
30310
|
+
const o = t.pages ?? {}, l = t.base ?? EP(a.baseUrl) ?? "/admin", d = Xz({
|
|
30279
30311
|
baseURL: a.apiUrl,
|
|
30280
30312
|
csrfToken: a.csrf
|
|
30281
30313
|
});
|
|
30282
30314
|
GI(d);
|
|
30283
|
-
const i =
|
|
30315
|
+
const i = Dw(Wb), s = Bw();
|
|
30284
30316
|
i.use(s);
|
|
30285
30317
|
const r = a.brand ?? {};
|
|
30286
|
-
i.provide(YI, r),
|
|
30318
|
+
i.provide(YI, r), ZP(r.favicon), Qe().hydrate(a), co().hydrate(a), pI().hydrate(a), P9().hydrate(a), W2().hydrate(a), _P(), Gz(), OP();
|
|
30287
30319
|
const p = dH({
|
|
30288
30320
|
base: l,
|
|
30289
|
-
history: t.router?.history ??
|
|
30321
|
+
history: t.router?.history ?? UI(l),
|
|
30290
30322
|
components: {
|
|
30291
30323
|
login: o.login ?? KC,
|
|
30292
30324
|
home: o.home ?? dC,
|
|
@@ -30296,10 +30328,10 @@ function tj(a, t = {}) {
|
|
|
30296
30328
|
forgotPassword: o.forgotPassword ?? c_,
|
|
30297
30329
|
resetPassword: o.resetPassword ?? k_,
|
|
30298
30330
|
resourceIndex: o.resourceIndex ?? RS,
|
|
30299
|
-
resourceCreate: o.resourceCreate ??
|
|
30300
|
-
resourceEdit: o.resourceEdit ??
|
|
30331
|
+
resourceCreate: o.resourceCreate ?? PI,
|
|
30332
|
+
resourceEdit: o.resourceEdit ?? PI,
|
|
30301
30333
|
resourceView: o.resourceView ?? Xq,
|
|
30302
|
-
dashboard: o.dashboard ??
|
|
30334
|
+
dashboard: o.dashboard ?? tw,
|
|
30303
30335
|
settings: o.settings ?? MC,
|
|
30304
30336
|
screen: o.screen ?? VC
|
|
30305
30337
|
},
|
|
@@ -30308,7 +30340,7 @@ function tj(a, t = {}) {
|
|
|
30308
30340
|
titleGuard: t.router?.titleGuard
|
|
30309
30341
|
});
|
|
30310
30342
|
i.use(p);
|
|
30311
|
-
const m =
|
|
30343
|
+
const m = kI();
|
|
30312
30344
|
if (p.beforeEach((k, g, b) => {
|
|
30313
30345
|
k.fullPath !== g.fullPath && m.start(), b();
|
|
30314
30346
|
}), p.afterEach(() => {
|
|
@@ -30355,7 +30387,7 @@ function tj(a, t = {}) {
|
|
|
30355
30387
|
}
|
|
30356
30388
|
return t.onAppCreated?.(i), { app: i, router: p, client: d };
|
|
30357
30389
|
}
|
|
30358
|
-
function
|
|
30390
|
+
function EP(a) {
|
|
30359
30391
|
if (!a) return null;
|
|
30360
30392
|
try {
|
|
30361
30393
|
return new URL(a).pathname || "/admin";
|
|
@@ -30363,23 +30395,23 @@ function OP(a) {
|
|
|
30363
30395
|
return a.startsWith("/") ? a : null;
|
|
30364
30396
|
}
|
|
30365
30397
|
}
|
|
30366
|
-
function
|
|
30398
|
+
function ZP(a) {
|
|
30367
30399
|
if (typeof document > "u" || !a) return;
|
|
30368
30400
|
let t = document.querySelector('link[rel~="icon"]');
|
|
30369
30401
|
t === null && (t = document.createElement("link"), t.rel = "icon", document.head.appendChild(t)), t.href = a;
|
|
30370
30402
|
}
|
|
30371
|
-
const
|
|
30403
|
+
const WP = { class: "admin-status-page" }, GP = { class: "admin-status-page__title" }, NP = { class: "admin-status-page__hint" }, oj = /* @__PURE__ */ ne({
|
|
30372
30404
|
__name: "UnknownScreenPage",
|
|
30373
30405
|
setup(a) {
|
|
30374
30406
|
const t = l1(), o = M(() => String(t.params.slug ?? "")), l = M(() => String(t.meta?.title ?? o.value));
|
|
30375
|
-
return (d, i) => (c(), h("div",
|
|
30407
|
+
return (d, i) => (c(), h("div", WP, [
|
|
30376
30408
|
w(n(we), {
|
|
30377
30409
|
padding: "lg",
|
|
30378
30410
|
class: "admin-status-page__card"
|
|
30379
30411
|
}, {
|
|
30380
30412
|
default: x(() => [
|
|
30381
|
-
u("h1",
|
|
30382
|
-
u("p",
|
|
30413
|
+
u("h1", GP, y(l.value), 1),
|
|
30414
|
+
u("p", NP, [
|
|
30383
30415
|
D(" Это заглушка для screen «" + y(o.value) + "». Передайте свой компонент через ", 1),
|
|
30384
30416
|
i[0] || (i[0] = u("code", null, "createAdminApp(" + y("{") + " pages: " + y("{") + " screen: MyScreen " + y("}") + " " + y("}") + ")", -1)),
|
|
30385
30417
|
i[1] || (i[1] = D(". ", -1))
|
|
@@ -30390,8 +30422,8 @@ const ZP = { class: "admin-status-page" }, WP = { class: "admin-status-page__tit
|
|
|
30390
30422
|
]));
|
|
30391
30423
|
}
|
|
30392
30424
|
});
|
|
30393
|
-
async function
|
|
30394
|
-
const t =
|
|
30425
|
+
async function cj(a = {}) {
|
|
30426
|
+
const t = XP();
|
|
30395
30427
|
if (t)
|
|
30396
30428
|
return t;
|
|
30397
30429
|
if (a.client)
|
|
@@ -30405,31 +30437,31 @@ async function oj(a = {}) {
|
|
|
30405
30437
|
}
|
|
30406
30438
|
return null;
|
|
30407
30439
|
}
|
|
30408
|
-
function
|
|
30440
|
+
function XP() {
|
|
30409
30441
|
return typeof window > "u" ? null : window.__ADMIN_BOOTSTRAP__ ?? null;
|
|
30410
30442
|
}
|
|
30411
|
-
function
|
|
30443
|
+
function ij() {
|
|
30412
30444
|
return typeof document > "u" ? null : document.querySelector('meta[name="csrf-token"]')?.getAttribute("content") ?? null;
|
|
30413
30445
|
}
|
|
30414
|
-
const
|
|
30446
|
+
const KP = { class: "admin-notifs__hd" }, JP = { class: "admin-notifs__title" }, YP = {
|
|
30415
30447
|
key: 0,
|
|
30416
30448
|
class: "admin-notifs__count"
|
|
30417
|
-
},
|
|
30449
|
+
}, QP = { class: "admin-notifs__list" }, eF = {
|
|
30418
30450
|
key: 0,
|
|
30419
30451
|
class: "admin-notifs__empty"
|
|
30420
|
-
},
|
|
30452
|
+
}, aF = {
|
|
30421
30453
|
key: 1,
|
|
30422
30454
|
class: "admin-notifs__empty"
|
|
30423
|
-
},
|
|
30455
|
+
}, tF = ["onClick"], nF = ["data-kind"], oF = { class: "admin-notifs__body" }, cF = { class: "admin-notifs__row1" }, iF = {
|
|
30424
30456
|
key: 0,
|
|
30425
30457
|
class: "admin-notifs__title-strong"
|
|
30426
|
-
},
|
|
30458
|
+
}, lF = {
|
|
30427
30459
|
key: 1,
|
|
30428
30460
|
class: "admin-notifs__title-soft"
|
|
30429
|
-
},
|
|
30461
|
+
}, rF = { class: "admin-notifs__time" }, dF = {
|
|
30430
30462
|
key: 0,
|
|
30431
30463
|
class: "admin-notifs__text"
|
|
30432
|
-
},
|
|
30464
|
+
}, sF = ["aria-label", "onClick"], lj = /* @__PURE__ */ ne({
|
|
30433
30465
|
__name: "NotificationsDrawer",
|
|
30434
30466
|
props: {
|
|
30435
30467
|
open: { type: Boolean }
|
|
@@ -30485,7 +30517,7 @@ const XP = { class: "admin-notifs__hd" }, KP = { class: "admin-notifs__title" },
|
|
|
30485
30517
|
const V = Math.floor(U / 24);
|
|
30486
30518
|
return V < 7 ? `${V} д назад` : f.toLocaleDateString("ru-RU");
|
|
30487
30519
|
}
|
|
30488
|
-
return (L, f) => (c(), z(n(
|
|
30520
|
+
return (L, f) => (c(), z(n(lx), {
|
|
30489
30521
|
"model-value": a.open,
|
|
30490
30522
|
side: "right",
|
|
30491
30523
|
width: "400px",
|
|
@@ -30493,10 +30525,10 @@ const XP = { class: "admin-notifs__hd" }, KP = { class: "admin-notifs__title" },
|
|
|
30493
30525
|
"onUpdate:modelValue": i
|
|
30494
30526
|
}, {
|
|
30495
30527
|
header: x(() => [
|
|
30496
|
-
u("div",
|
|
30497
|
-
u("h2",
|
|
30528
|
+
u("div", KP, [
|
|
30529
|
+
u("h2", JP, [
|
|
30498
30530
|
D(y(n(v)("Уведомления")) + " ", 1),
|
|
30499
|
-
n(d).unreadCount > 0 ? (c(), h("span",
|
|
30531
|
+
n(d).unreadCount > 0 ? (c(), h("span", YP, " (" + y(n(d).unreadCount) + ") ", 1)) : H("", !0)
|
|
30500
30532
|
]),
|
|
30501
30533
|
n(d).unreadCount > 0 ? (c(), z(n(oe), {
|
|
30502
30534
|
key: 0,
|
|
@@ -30540,14 +30572,14 @@ const XP = { class: "admin-notifs__hd" }, KP = { class: "admin-notifs__title" },
|
|
|
30540
30572
|
})
|
|
30541
30573
|
]),
|
|
30542
30574
|
default: x(() => [
|
|
30543
|
-
(c(), h(X, null,
|
|
30575
|
+
(c(), h(X, null, ee(["all", "unread", "read"], (S) => w(n(ZI), {
|
|
30544
30576
|
key: S,
|
|
30545
30577
|
value: S
|
|
30546
30578
|
}, {
|
|
30547
30579
|
default: x(() => [
|
|
30548
|
-
u("ul",
|
|
30549
|
-
n(d).loading ? (c(), h("li",
|
|
30550
|
-
(c(!0), h(X, null,
|
|
30580
|
+
u("ul", QP, [
|
|
30581
|
+
n(d).loading ? (c(), h("li", eF, y(n(v)("Загрузка…")), 1)) : n(d).items.length === 0 ? (c(), h("li", aF, y(n(v)("Нет уведомлений")), 1)) : H("", !0),
|
|
30582
|
+
(c(!0), h(X, null, ee(n(d).items, (Z) => (c(), h("li", {
|
|
30551
30583
|
key: Z.id,
|
|
30552
30584
|
class: fe([
|
|
30553
30585
|
"admin-notifs__item",
|
|
@@ -30559,21 +30591,21 @@ const XP = { class: "admin-notifs__hd" }, KP = { class: "admin-notifs__title" },
|
|
|
30559
30591
|
u("span", {
|
|
30560
30592
|
class: "admin-notifs__icon",
|
|
30561
30593
|
"data-kind": g(Z)
|
|
30562
|
-
}, null, 8,
|
|
30563
|
-
u("div",
|
|
30564
|
-
u("div",
|
|
30565
|
-
Z.read_at ? (c(), h("span",
|
|
30566
|
-
u("span",
|
|
30594
|
+
}, null, 8, nF),
|
|
30595
|
+
u("div", oF, [
|
|
30596
|
+
u("div", cF, [
|
|
30597
|
+
Z.read_at ? (c(), h("span", lF, y(b(Z)), 1)) : (c(), h("strong", iF, y(b(Z)), 1)),
|
|
30598
|
+
u("span", rF, y(I(Z.created_at)), 1)
|
|
30567
30599
|
]),
|
|
30568
|
-
C(Z) ? (c(), h("p",
|
|
30600
|
+
C(Z) ? (c(), h("p", dF, y(C(Z)), 1)) : H("", !0)
|
|
30569
30601
|
]),
|
|
30570
30602
|
u("button", {
|
|
30571
30603
|
type: "button",
|
|
30572
30604
|
class: "admin-notifs__close",
|
|
30573
30605
|
"aria-label": n(v)("Удалить"),
|
|
30574
30606
|
onClick: (U) => k(Z, U)
|
|
30575
|
-
}, " × ", 8,
|
|
30576
|
-
], 10,
|
|
30607
|
+
}, " × ", 8, sF)
|
|
30608
|
+
], 10, tF))), 128))
|
|
30577
30609
|
])
|
|
30578
30610
|
]),
|
|
30579
30611
|
_: 1
|
|
@@ -30585,22 +30617,22 @@ const XP = { class: "admin-notifs__hd" }, KP = { class: "admin-notifs__title" },
|
|
|
30585
30617
|
_: 1
|
|
30586
30618
|
}, 8, ["model-value", "title"]));
|
|
30587
30619
|
}
|
|
30588
|
-
}),
|
|
30620
|
+
}), hF = { class: "admin-page admin-import-wizard" }, uF = { class: "admin-page__hd" }, yF = { class: "admin-page__title-wrap" }, pF = { class: "admin-page__title" }, kF = { class: "admin-page__actions" }, mF = { class: "admin-import-wizard__card-hd" }, vF = { class: "admin-import-wizard__card-hd" }, fF = {
|
|
30589
30621
|
key: 0,
|
|
30590
30622
|
class: "admin-import-wizard__empty"
|
|
30591
|
-
},
|
|
30623
|
+
}, gF = {
|
|
30592
30624
|
key: 1,
|
|
30593
30625
|
class: "admin-import-wizard__mapping"
|
|
30594
|
-
},
|
|
30626
|
+
}, MF = { class: "admin-import-wizard__map-source" }, IF = {
|
|
30595
30627
|
key: 0,
|
|
30596
30628
|
class: "admin-import-wizard__map-sample"
|
|
30597
|
-
},
|
|
30629
|
+
}, wF = { class: "admin-import-wizard__card-hd" }, xF = {
|
|
30598
30630
|
key: 2,
|
|
30599
30631
|
class: "admin-import-wizard__empty"
|
|
30600
|
-
},
|
|
30632
|
+
}, bF = { class: "admin-import-wizard__card-hd" }, LF = {
|
|
30601
30633
|
key: 0,
|
|
30602
30634
|
class: "admin-import-wizard__empty"
|
|
30603
|
-
},
|
|
30635
|
+
}, CF = { class: "admin-import-wizard__kpi" }, _F = { class: "admin-import-wizard__nav" }, rj = /* @__PURE__ */ ne({
|
|
30604
30636
|
__name: "ImportWizardPage",
|
|
30605
30637
|
props: {
|
|
30606
30638
|
title: { default: "Импорт" },
|
|
@@ -30660,12 +30692,12 @@ const XP = { class: "admin-notifs__hd" }, KP = { class: "admin-notifs__title" },
|
|
|
30660
30692
|
function Z() {
|
|
30661
30693
|
l("cancel");
|
|
30662
30694
|
}
|
|
30663
|
-
return (U, V) => (c(), h("section",
|
|
30664
|
-
u("header",
|
|
30665
|
-
u("div",
|
|
30666
|
-
u("h1",
|
|
30695
|
+
return (U, V) => (c(), h("section", hF, [
|
|
30696
|
+
u("header", uF, [
|
|
30697
|
+
u("div", yF, [
|
|
30698
|
+
u("h1", pF, y(n(v)(a.title)), 1)
|
|
30667
30699
|
]),
|
|
30668
|
-
u("div",
|
|
30700
|
+
u("div", kF, [
|
|
30669
30701
|
w(n(oe), {
|
|
30670
30702
|
variant: "ghost",
|
|
30671
30703
|
onClick: Z
|
|
@@ -30677,7 +30709,7 @@ const XP = { class: "admin-notifs__hd" }, KP = { class: "admin-notifs__title" },
|
|
|
30677
30709
|
})
|
|
30678
30710
|
])
|
|
30679
30711
|
]),
|
|
30680
|
-
w(n(
|
|
30712
|
+
w(n(rx), {
|
|
30681
30713
|
steps: d,
|
|
30682
30714
|
current: s.value
|
|
30683
30715
|
}, null, 8, ["current"]),
|
|
@@ -30687,11 +30719,11 @@ const XP = { class: "admin-notifs__hd" }, KP = { class: "admin-notifs__title" },
|
|
|
30687
30719
|
class: "admin-import-wizard__card"
|
|
30688
30720
|
}, {
|
|
30689
30721
|
default: x(() => [
|
|
30690
|
-
u("header",
|
|
30722
|
+
u("header", mF, [
|
|
30691
30723
|
u("h3", null, y(n(v)("1. Загрузите файл")), 1),
|
|
30692
30724
|
u("p", null, y(n(v)("CSV / TSV / XLSX, до 50 MB")), 1)
|
|
30693
30725
|
]),
|
|
30694
|
-
w(n(
|
|
30726
|
+
w(n(dx), {
|
|
30695
30727
|
"model-value": p.value,
|
|
30696
30728
|
accept: ".csv,.tsv,.xlsx",
|
|
30697
30729
|
"max-size": 50 * 1024 * 1024,
|
|
@@ -30708,18 +30740,18 @@ const XP = { class: "admin-notifs__hd" }, KP = { class: "admin-notifs__title" },
|
|
|
30708
30740
|
class: "admin-import-wizard__card"
|
|
30709
30741
|
}, {
|
|
30710
30742
|
default: x(() => [
|
|
30711
|
-
u("header",
|
|
30743
|
+
u("header", vF, [
|
|
30712
30744
|
u("h3", null, y(n(v)("2. Сопоставьте колонки")), 1),
|
|
30713
30745
|
u("p", null, y(n(v)("Выберите поле ресурса для каждой колонки файла")), 1)
|
|
30714
30746
|
]),
|
|
30715
|
-
a.headers.length === 0 ? (c(), h("div",
|
|
30716
|
-
(c(!0), h(X, null,
|
|
30747
|
+
a.headers.length === 0 ? (c(), h("div", fF, y(n(v)("Нет данных — host ещё не отдал headers. Загрузите файл сначала.")), 1)) : (c(), h("div", gF, [
|
|
30748
|
+
(c(!0), h(X, null, ee(a.headers, (T) => (c(), h("div", {
|
|
30717
30749
|
key: T.key,
|
|
30718
30750
|
class: "admin-import-wizard__map-row"
|
|
30719
30751
|
}, [
|
|
30720
|
-
u("div",
|
|
30752
|
+
u("div", MF, [
|
|
30721
30753
|
u("strong", null, y(T.label), 1),
|
|
30722
|
-
T.sample ? (c(), h("span",
|
|
30754
|
+
T.sample ? (c(), h("span", IF, " «" + y(T.sample) + "» ", 1)) : H("", !0)
|
|
30723
30755
|
]),
|
|
30724
30756
|
V[2] || (V[2] = u("span", { class: "admin-import-wizard__map-arrow" }, "→", -1)),
|
|
30725
30757
|
w(n(S9), {
|
|
@@ -30738,7 +30770,7 @@ const XP = { class: "admin-notifs__hd" }, KP = { class: "admin-notifs__title" },
|
|
|
30738
30770
|
class: "admin-import-wizard__card"
|
|
30739
30771
|
}, {
|
|
30740
30772
|
default: x(() => [
|
|
30741
|
-
u("header",
|
|
30773
|
+
u("header", wF, [
|
|
30742
30774
|
u("h3", null, y(n(v)("3. Предпросмотр")), 1),
|
|
30743
30775
|
u("p", null, "Первые " + y(a.preview.length) + " строк перед импортом", 1)
|
|
30744
30776
|
]),
|
|
@@ -30756,7 +30788,7 @@ const XP = { class: "admin-notifs__hd" }, KP = { class: "admin-notifs__title" },
|
|
|
30756
30788
|
key: 1,
|
|
30757
30789
|
columns: a.previewColumns,
|
|
30758
30790
|
data: a.preview
|
|
30759
|
-
}, null, 8, ["columns", "data"])) : (c(), h("div",
|
|
30791
|
+
}, null, 8, ["columns", "data"])) : (c(), h("div", xF, y(n(v)("Host не передал previewColumns/preview.")), 1))
|
|
30760
30792
|
]),
|
|
30761
30793
|
_: 1
|
|
30762
30794
|
})) : (c(), z(n(we), {
|
|
@@ -30765,16 +30797,16 @@ const XP = { class: "admin-notifs__hd" }, KP = { class: "admin-notifs__title" },
|
|
|
30765
30797
|
class: "admin-import-wizard__card"
|
|
30766
30798
|
}, {
|
|
30767
30799
|
default: x(() => [
|
|
30768
|
-
u("header",
|
|
30800
|
+
u("header", bF, [
|
|
30769
30801
|
u("h3", null, y(n(v)("4. Импорт")), 1)
|
|
30770
30802
|
]),
|
|
30771
30803
|
a.progress ? (c(), h(X, { key: 1 }, [
|
|
30772
|
-
a.progress.total > 0 ? (c(), z(n(
|
|
30804
|
+
a.progress.total > 0 ? (c(), z(n(sx), {
|
|
30773
30805
|
key: 0,
|
|
30774
30806
|
"model-value": a.progress.created + a.progress.updated + a.progress.errors,
|
|
30775
30807
|
max: a.progress.total
|
|
30776
30808
|
}, null, 8, ["model-value", "max"])) : H("", !0),
|
|
30777
|
-
u("div",
|
|
30809
|
+
u("div", CF, [
|
|
30778
30810
|
w(n(ic), {
|
|
30779
30811
|
title: n(v)("Создано"),
|
|
30780
30812
|
value: a.progress.created,
|
|
@@ -30791,11 +30823,11 @@ const XP = { class: "admin-notifs__hd" }, KP = { class: "admin-notifs__title" },
|
|
|
30791
30823
|
tone: "danger"
|
|
30792
30824
|
}, null, 8, ["title", "value"])
|
|
30793
30825
|
])
|
|
30794
|
-
], 64)) : (c(), h("div",
|
|
30826
|
+
], 64)) : (c(), h("div", LF, y(n(v)("Запускается импорт…")), 1))
|
|
30795
30827
|
]),
|
|
30796
30828
|
_: 1
|
|
30797
30829
|
})),
|
|
30798
|
-
u("footer",
|
|
30830
|
+
u("footer", _F, [
|
|
30799
30831
|
L.value ? (c(), z(n(oe), {
|
|
30800
30832
|
key: 0,
|
|
30801
30833
|
variant: "ghost",
|
|
@@ -30840,7 +30872,7 @@ const XP = { class: "admin-notifs__hd" }, KP = { class: "admin-notifs__title" },
|
|
|
30840
30872
|
])
|
|
30841
30873
|
]));
|
|
30842
30874
|
}
|
|
30843
|
-
}),
|
|
30875
|
+
}), SF = { class: "admin-page admin-field-gallery" }, qF = { class: "admin-gallery__group-title" }, AF = { class: "admin-gallery__grid" }, zF = { class: "admin-gallery__card-hd" }, HF = { class: "admin-gallery__card-title" }, VF = { class: "admin-gallery__card-type" }, PF = { class: "admin-gallery__card-desc" }, FF = { class: "admin-gallery__card-demo" }, dj = /* @__PURE__ */ ne({
|
|
30844
30876
|
__name: "FieldGalleryPage",
|
|
30845
30877
|
setup(a) {
|
|
30846
30878
|
const t = [
|
|
@@ -30904,35 +30936,35 @@ const XP = { class: "admin-notifs__hd" }, KP = { class: "admin-notifs__title" },
|
|
|
30904
30936
|
node: { type: "date", name: "demo_date", label: "Дата публикации", inputType: "date" },
|
|
30905
30937
|
initial: { demo_date: "2026-05-01" }
|
|
30906
30938
|
}
|
|
30907
|
-
], o = t.reduce((d, i) => (d[i.group] || (d[i.group] = []), d[i.group].push(i), d), {}), l =
|
|
30939
|
+
], o = t.reduce((d, i) => (d[i.group] || (d[i.group] = []), d[i.group].push(i), d), {}), l = TI(
|
|
30908
30940
|
t.reduce((d, i) => Object.assign(d, i.initial), {})
|
|
30909
30941
|
);
|
|
30910
|
-
return V9(l), (d, i) => (c(), h("section",
|
|
30942
|
+
return V9(l), (d, i) => (c(), h("section", SF, [
|
|
30911
30943
|
i[0] || (i[0] = u("header", { class: "admin-page__hd" }, [
|
|
30912
30944
|
u("div", { class: "admin-page__title-wrap" }, [
|
|
30913
30945
|
u("h1", { class: "admin-page__title" }, "Field Gallery"),
|
|
30914
30946
|
u("div", { class: "admin-page__count" }, " Каталог встроенных field-компонентов library + примеры использования ")
|
|
30915
30947
|
])
|
|
30916
30948
|
], -1)),
|
|
30917
|
-
(c(!0), h(X, null,
|
|
30949
|
+
(c(!0), h(X, null, ee(n(o), (s, r) => (c(), h("section", {
|
|
30918
30950
|
key: r,
|
|
30919
30951
|
class: "admin-gallery__group"
|
|
30920
30952
|
}, [
|
|
30921
|
-
u("h2",
|
|
30922
|
-
u("div",
|
|
30923
|
-
(c(!0), h(X, null,
|
|
30953
|
+
u("h2", qF, y(r), 1),
|
|
30954
|
+
u("div", AF, [
|
|
30955
|
+
(c(!0), h(X, null, ee(s, (p) => (c(), z(n(we), {
|
|
30924
30956
|
key: p.type + p.title,
|
|
30925
30957
|
padding: "md",
|
|
30926
30958
|
class: "admin-gallery__card"
|
|
30927
30959
|
}, {
|
|
30928
30960
|
default: x(() => [
|
|
30929
|
-
u("header",
|
|
30930
|
-
u("h3",
|
|
30931
|
-
u("code",
|
|
30961
|
+
u("header", zF, [
|
|
30962
|
+
u("h3", HF, y(p.title), 1),
|
|
30963
|
+
u("code", VF, "type: " + y(p.type), 1)
|
|
30932
30964
|
]),
|
|
30933
|
-
u("p",
|
|
30934
|
-
u("div",
|
|
30935
|
-
w(
|
|
30965
|
+
u("p", PF, y(p.description), 1),
|
|
30966
|
+
u("div", FF, [
|
|
30967
|
+
w(vI, {
|
|
30936
30968
|
node: p.node
|
|
30937
30969
|
}, null, 8, ["node"])
|
|
30938
30970
|
])
|
|
@@ -30945,29 +30977,29 @@ const XP = { class: "admin-notifs__hd" }, KP = { class: "admin-notifs__title" },
|
|
|
30945
30977
|
}
|
|
30946
30978
|
});
|
|
30947
30979
|
export {
|
|
30948
|
-
|
|
30949
|
-
|
|
30950
|
-
|
|
30951
|
-
|
|
30980
|
+
Wb as AdminApp,
|
|
30981
|
+
pb as AdminShell,
|
|
30982
|
+
Yx as AdminSidebar,
|
|
30983
|
+
Hx as AdminTopBar,
|
|
30952
30984
|
We as ApiError,
|
|
30953
30985
|
YI as BRAND_KEY,
|
|
30954
|
-
|
|
30955
|
-
|
|
30986
|
+
qP as BadgeEntry,
|
|
30987
|
+
mw as BarChartWidget,
|
|
30956
30988
|
cc as CheckboxField,
|
|
30957
30989
|
iP as ColumnsLayout,
|
|
30958
|
-
|
|
30990
|
+
tw as DashboardPage,
|
|
30959
30991
|
D1 as DateField,
|
|
30960
|
-
|
|
30961
|
-
|
|
30962
|
-
|
|
30963
|
-
|
|
30992
|
+
vw as DonutChartWidget,
|
|
30993
|
+
dj as FieldGalleryPage,
|
|
30994
|
+
vI as FieldRenderer,
|
|
30995
|
+
bx as ForbiddenError,
|
|
30964
30996
|
uC as ForbiddenPage,
|
|
30965
30997
|
Hz as GaugeWidget,
|
|
30966
|
-
|
|
30998
|
+
rb as GlobalSearch,
|
|
30967
30999
|
Sz as HeatmapWidget,
|
|
30968
31000
|
dC as HomePage,
|
|
30969
|
-
|
|
30970
|
-
|
|
31001
|
+
zP as IconEntry,
|
|
31002
|
+
rj as ImportWizardPage,
|
|
30971
31003
|
sq as InfolistRenderer,
|
|
30972
31004
|
eI as KeyValueEntry,
|
|
30973
31005
|
bo as LayoutRenderer,
|
|
@@ -30976,14 +31008,14 @@ export {
|
|
|
30976
31008
|
KC as LoginPage,
|
|
30977
31009
|
jz as MarkdownWidget,
|
|
30978
31010
|
F9 as NetworkError,
|
|
30979
|
-
|
|
31011
|
+
Lx as NotFoundError,
|
|
30980
31012
|
kC as NotFoundPage,
|
|
30981
|
-
|
|
30982
|
-
|
|
31013
|
+
xx as NotificationBell,
|
|
31014
|
+
lj as NotificationsDrawer,
|
|
30983
31015
|
Q9 as NumberField,
|
|
30984
31016
|
tz as ProfilePage,
|
|
30985
31017
|
J9 as RecentTableWidget,
|
|
30986
|
-
|
|
31018
|
+
PI as ResourceFormPage,
|
|
30987
31019
|
RS as ResourceIndexPage,
|
|
30988
31020
|
Xq as ResourceViewPage,
|
|
30989
31021
|
aI as RowsLayout,
|
|
@@ -30991,7 +31023,7 @@ export {
|
|
|
30991
31023
|
Po as SectionLayout,
|
|
30992
31024
|
n1 as SelectField,
|
|
30993
31025
|
MC as SettingsPage,
|
|
30994
|
-
|
|
31026
|
+
DI as StatWidget,
|
|
30995
31027
|
hP as TabsLayout,
|
|
30996
31028
|
Y9 as TextAreaField,
|
|
30997
31029
|
ge as TextEntry,
|
|
@@ -31000,56 +31032,56 @@ export {
|
|
|
31000
31032
|
TC as TwoFactorForm,
|
|
31001
31033
|
KI as UnauthenticatedError,
|
|
31002
31034
|
JS as UnknownEntry,
|
|
31003
|
-
|
|
31004
|
-
|
|
31035
|
+
cw as UnknownField,
|
|
31036
|
+
oj as UnknownScreenPage,
|
|
31005
31037
|
ew as UnknownWidget,
|
|
31006
|
-
|
|
31038
|
+
_x as UserMenu,
|
|
31007
31039
|
G2 as ValidationError,
|
|
31008
|
-
|
|
31040
|
+
aw as WidgetRenderer,
|
|
31009
31041
|
oH as buildRoutesFromManifest,
|
|
31010
|
-
|
|
31011
|
-
|
|
31012
|
-
|
|
31013
|
-
|
|
31014
|
-
|
|
31042
|
+
vx as clearAdminClient,
|
|
31043
|
+
aj as clearInfolistRegistry,
|
|
31044
|
+
KF as clearRegistry,
|
|
31045
|
+
ZF as clearWidgetRegistry,
|
|
31046
|
+
nj as createAdminApp,
|
|
31015
31047
|
Xz as createAdminClient,
|
|
31016
31048
|
dH as createAdminRouter,
|
|
31017
31049
|
cH as createAuthGuard,
|
|
31018
31050
|
iH as createTitleGuard,
|
|
31019
31051
|
Me as getAdminClient,
|
|
31020
|
-
|
|
31052
|
+
ow as getField,
|
|
31021
31053
|
tI as getInfolistEntry,
|
|
31022
|
-
|
|
31023
|
-
|
|
31024
|
-
|
|
31054
|
+
CI as getLayout,
|
|
31055
|
+
Nb as getWidget,
|
|
31056
|
+
fx as hasAdminClient,
|
|
31025
31057
|
xC as hasField,
|
|
31026
|
-
|
|
31058
|
+
QF as hasInfolistEntry,
|
|
31027
31059
|
LC as hasLayout,
|
|
31028
|
-
|
|
31029
|
-
|
|
31060
|
+
Xb as hasWidget,
|
|
31061
|
+
tj as isError,
|
|
31030
31062
|
Nz as isSuccess,
|
|
31031
|
-
|
|
31032
|
-
|
|
31033
|
-
|
|
31034
|
-
|
|
31035
|
-
|
|
31063
|
+
NF as listFields,
|
|
31064
|
+
ej as listInfolistEntries,
|
|
31065
|
+
XF as listLayouts,
|
|
31066
|
+
Kb as listWidgets,
|
|
31067
|
+
cj as loadBootstrap,
|
|
31036
31068
|
V9 as provideFormState,
|
|
31037
|
-
|
|
31038
|
-
|
|
31039
|
-
|
|
31040
|
-
|
|
31041
|
-
|
|
31069
|
+
nw as provideRecord,
|
|
31070
|
+
ij as readCsrfFromMeta,
|
|
31071
|
+
XP as readInlineBootstrap,
|
|
31072
|
+
_P as registerBuiltinComponents,
|
|
31073
|
+
OP as registerBuiltinInfolistEntries,
|
|
31042
31074
|
Gz as registerBuiltinWidgets,
|
|
31043
|
-
|
|
31075
|
+
JF as registerComponents,
|
|
31044
31076
|
wC as registerField,
|
|
31045
31077
|
KS as registerInfolistEntries,
|
|
31046
|
-
|
|
31078
|
+
YF as registerInfolistEntry,
|
|
31047
31079
|
bC as registerLayout,
|
|
31048
|
-
|
|
31049
|
-
|
|
31080
|
+
Gb as registerWidget,
|
|
31081
|
+
WF as registerWidgets,
|
|
31050
31082
|
GI as setAdminClient,
|
|
31051
|
-
|
|
31052
|
-
|
|
31083
|
+
LI as toApiError,
|
|
31084
|
+
hx as tryUseFormState,
|
|
31053
31085
|
N2 as tryUseRecord,
|
|
31054
31086
|
Qe as useAuthStore,
|
|
31055
31087
|
B9 as useBrand,
|
|
@@ -31058,9 +31090,9 @@ export {
|
|
|
31058
31090
|
Ee as useManifestStore,
|
|
31059
31091
|
j9 as useMenuStore,
|
|
31060
31092
|
P9 as useNotificationsStore,
|
|
31061
|
-
|
|
31062
|
-
|
|
31063
|
-
|
|
31064
|
-
|
|
31093
|
+
GF as useRecord,
|
|
31094
|
+
fI as useResourceFormStore,
|
|
31095
|
+
iw as useResourceIndexStore,
|
|
31096
|
+
pI as useThemeStore
|
|
31065
31097
|
};
|
|
31066
31098
|
//# sourceMappingURL=index.mjs.map
|