@dskripchenko/laravel-admin 1.19.1 → 1.19.3
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/components/auth/LoginForm.stories.d.ts +8 -0
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +899 -898
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +6 -2
package/dist/index.mjs
CHANGED
|
@@ -20767,7 +20767,7 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20767
20767
|
a.value = 0;
|
|
20768
20768
|
}
|
|
20769
20769
|
return { pending: a, isLoading: t, start: o, end: l, reset: r };
|
|
20770
|
-
}), fb = /* @__PURE__ */ ne({
|
|
20770
|
+
}), fb = ["aria-label"], gb = /* @__PURE__ */ ne({
|
|
20771
20771
|
__name: "AdminLoadingBar",
|
|
20772
20772
|
setup(a) {
|
|
20773
20773
|
const t = pI(), o = A(!1);
|
|
@@ -20788,41 +20788,42 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20788
20788
|
return (i, s) => (c(), h("div", {
|
|
20789
20789
|
class: fe(r.value),
|
|
20790
20790
|
role: "progressbar",
|
|
20791
|
-
"aria-busy": "true"
|
|
20792
|
-
|
|
20791
|
+
"aria-busy": "true",
|
|
20792
|
+
"aria-label": n(v)("Загрузка")
|
|
20793
|
+
}, null, 10, fb));
|
|
20793
20794
|
}
|
|
20794
|
-
}),
|
|
20795
|
+
}), Mb = {
|
|
20795
20796
|
key: 0,
|
|
20796
20797
|
class: "admin-notif-drawer",
|
|
20797
20798
|
role: "dialog",
|
|
20798
20799
|
"aria-modal": "true",
|
|
20799
20800
|
"aria-labelledby": "admin-notif-drawer-title"
|
|
20800
|
-
},
|
|
20801
|
+
}, Ib = { class: "admin-notif-drawer__panel" }, wb = { class: "admin-notif-drawer__hd" }, xb = {
|
|
20801
20802
|
id: "admin-notif-drawer-title",
|
|
20802
20803
|
class: "admin-notif-drawer__title"
|
|
20803
|
-
},
|
|
20804
|
+
}, bb = {
|
|
20804
20805
|
key: 0,
|
|
20805
20806
|
class: "admin-notif-drawer__unread-badge"
|
|
20806
|
-
},
|
|
20807
|
+
}, Lb = { class: "admin-notif-drawer__hd-actions" }, Cb = ["aria-label"], _b = {
|
|
20807
20808
|
class: "admin-notif-drawer__tabs",
|
|
20808
20809
|
role: "tablist"
|
|
20809
|
-
},
|
|
20810
|
+
}, Sb = ["aria-selected", "onClick"], qb = { class: "admin-notif-drawer__tab-count" }, Ab = { class: "admin-notif-drawer__body" }, zb = {
|
|
20810
20811
|
key: 0,
|
|
20811
20812
|
class: "admin-notif-drawer__empty"
|
|
20812
|
-
},
|
|
20813
|
+
}, Hb = {
|
|
20813
20814
|
key: 1,
|
|
20814
20815
|
class: "admin-notif-drawer__empty"
|
|
20815
|
-
},
|
|
20816
|
+
}, Vb = {
|
|
20816
20817
|
key: 2,
|
|
20817
20818
|
class: "admin-notif-drawer__list"
|
|
20818
|
-
},
|
|
20819
|
+
}, Pb = ["onClick"], Fb = ["data-variant"], jb = { class: "admin-notif-drawer__content" }, Db = { class: "admin-notif-drawer__row" }, Bb = { class: "admin-notif-drawer__item-title" }, Rb = { class: "admin-notif-drawer__item-time" }, $b = {
|
|
20819
20820
|
key: 0,
|
|
20820
20821
|
class: "admin-notif-drawer__item-description"
|
|
20821
|
-
},
|
|
20822
|
+
}, Tb = {
|
|
20822
20823
|
key: 0,
|
|
20823
20824
|
class: "admin-notif-drawer__unread-dot",
|
|
20824
20825
|
"aria-hidden": "true"
|
|
20825
|
-
},
|
|
20826
|
+
}, Ub = ["aria-label", "onClick"], Ob = /* @__PURE__ */ ne({
|
|
20826
20827
|
__name: "NotificationsDrawer",
|
|
20827
20828
|
setup(a) {
|
|
20828
20829
|
const t = V9(), o = I(() => t.isOpen), l = [
|
|
@@ -20886,18 +20887,18 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20886
20887
|
}), (C, f) => (c(), z(lI, { to: "body" }, [
|
|
20887
20888
|
w(C9, { name: "admin-notif-drawer" }, {
|
|
20888
20889
|
default: x(() => [
|
|
20889
|
-
o.value ? (c(), h("div",
|
|
20890
|
+
o.value ? (c(), h("div", Mb, [
|
|
20890
20891
|
u("div", {
|
|
20891
20892
|
class: "admin-notif-drawer__backdrop",
|
|
20892
20893
|
onClick: p
|
|
20893
20894
|
}),
|
|
20894
|
-
u("aside",
|
|
20895
|
-
u("header",
|
|
20896
|
-
u("h2",
|
|
20895
|
+
u("aside", Ib, [
|
|
20896
|
+
u("header", wb, [
|
|
20897
|
+
u("h2", xb, [
|
|
20897
20898
|
D(y(n(v)("Уведомления")) + " ", 1),
|
|
20898
|
-
n(t).unreadCount > 0 ? (c(), h("span",
|
|
20899
|
+
n(t).unreadCount > 0 ? (c(), h("span", bb, y(n(t).unreadCount), 1)) : H("", !0)
|
|
20899
20900
|
]),
|
|
20900
|
-
u("div",
|
|
20901
|
+
u("div", Lb, [
|
|
20901
20902
|
n(t).unreadCount > 0 ? (c(), h("button", {
|
|
20902
20903
|
key: 0,
|
|
20903
20904
|
type: "button",
|
|
@@ -20920,10 +20921,10 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20920
20921
|
icon: n(He),
|
|
20921
20922
|
size: 16
|
|
20922
20923
|
}, null, 8, ["icon"])
|
|
20923
|
-
], 8,
|
|
20924
|
+
], 8, Cb)
|
|
20924
20925
|
])
|
|
20925
20926
|
]),
|
|
20926
|
-
u("nav",
|
|
20927
|
+
u("nav", _b, [
|
|
20927
20928
|
(c(), h(X, null, ae(l, (q) => u("button", {
|
|
20928
20929
|
key: q.key,
|
|
20929
20930
|
type: "button",
|
|
@@ -20938,11 +20939,11 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20938
20939
|
onClick: (W) => r(q.key)
|
|
20939
20940
|
}, [
|
|
20940
20941
|
D(y(q.label) + " ", 1),
|
|
20941
|
-
u("span",
|
|
20942
|
-
], 10,
|
|
20942
|
+
u("span", qb, y(L.value[q.key]), 1)
|
|
20943
|
+
], 10, Sb)), 64))
|
|
20943
20944
|
]),
|
|
20944
|
-
u("div",
|
|
20945
|
-
n(t).loading && n(t).items.length === 0 ? (c(), h("div",
|
|
20945
|
+
u("div", Ab, [
|
|
20946
|
+
n(t).loading && n(t).items.length === 0 ? (c(), h("div", zb, y(n(v)("Загрузка…")), 1)) : n(t).items.length === 0 ? (c(), h("div", Hb, y(n(v)("Нет уведомлений")), 1)) : (c(), h("ol", Vb, [
|
|
20946
20947
|
(c(!0), h(X, null, ae(n(t).items, (q) => (c(), h("li", {
|
|
20947
20948
|
key: q.id,
|
|
20948
20949
|
class: fe([
|
|
@@ -20960,15 +20961,15 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20960
20961
|
icon: m(q),
|
|
20961
20962
|
size: 14
|
|
20962
20963
|
}, null, 8, ["icon"])
|
|
20963
|
-
], 8,
|
|
20964
|
-
u("div",
|
|
20965
|
-
u("div",
|
|
20966
|
-
u("span",
|
|
20967
|
-
u("span",
|
|
20964
|
+
], 8, Fb),
|
|
20965
|
+
u("div", jb, [
|
|
20966
|
+
u("div", Db, [
|
|
20967
|
+
u("span", Bb, y(b(q).title), 1),
|
|
20968
|
+
u("span", Rb, y(g(q.created_at)), 1)
|
|
20968
20969
|
]),
|
|
20969
|
-
b(q).description ? (c(), h("div",
|
|
20970
|
+
b(q).description ? (c(), h("div", $b, y(b(q).description), 1)) : H("", !0)
|
|
20970
20971
|
]),
|
|
20971
|
-
q.read_at === null ? (c(), h("span",
|
|
20972
|
+
q.read_at === null ? (c(), h("span", Tb)) : H("", !0),
|
|
20972
20973
|
u("button", {
|
|
20973
20974
|
type: "button",
|
|
20974
20975
|
class: "admin-notif-drawer__item-delete",
|
|
@@ -20979,8 +20980,8 @@ const Px = ["data-depth"], Fx = ["aria-expanded", "title"], jx = { class: "uid-s
|
|
|
20979
20980
|
icon: n(He),
|
|
20980
20981
|
size: 12
|
|
20981
20982
|
}, null, 8, ["icon"])
|
|
20982
|
-
], 8,
|
|
20983
|
-
], 10,
|
|
20983
|
+
], 8, Ub)
|
|
20984
|
+
], 10, Pb))), 128))
|
|
20984
20985
|
]))
|
|
20985
20986
|
])
|
|
20986
20987
|
])
|
|
@@ -21011,7 +21012,7 @@ const pe = {
|
|
|
21011
21012
|
function D9() {
|
|
21012
21013
|
return rI(YI, {});
|
|
21013
21014
|
}
|
|
21014
|
-
const
|
|
21015
|
+
const Eb = { class: "admin-page-host" }, Zb = /* @__PURE__ */ ne({
|
|
21015
21016
|
__name: "AdminApp",
|
|
21016
21017
|
setup(a) {
|
|
21017
21018
|
const t = l1(), o = Qe(), l = D9(), r = W2();
|
|
@@ -21036,7 +21037,7 @@ const Ob = { class: "admin-page-host" }, Eb = /* @__PURE__ */ ne({
|
|
|
21036
21037
|
return (b, L) => {
|
|
21037
21038
|
const M = z9("router-view");
|
|
21038
21039
|
return c(), h(X, null, [
|
|
21039
|
-
w(
|
|
21040
|
+
w(gb),
|
|
21040
21041
|
d.value ? (c(), z(yb, {
|
|
21041
21042
|
key: 0,
|
|
21042
21043
|
impersonation: i.value,
|
|
@@ -21044,7 +21045,7 @@ const Ob = { class: "admin-page-host" }, Eb = /* @__PURE__ */ ne({
|
|
|
21044
21045
|
onExitImpersonation: s
|
|
21045
21046
|
}, {
|
|
21046
21047
|
default: x(() => [
|
|
21047
|
-
u("div",
|
|
21048
|
+
u("div", Eb, [
|
|
21048
21049
|
w(M, null, {
|
|
21049
21050
|
default: x(({ Component: C }) => [
|
|
21050
21051
|
w(C9, { name: g.value }, {
|
|
@@ -21070,7 +21071,7 @@ const Ob = { class: "admin-page-host" }, Eb = /* @__PURE__ */ ne({
|
|
|
21070
21071
|
]),
|
|
21071
21072
|
_: 1
|
|
21072
21073
|
})),
|
|
21073
|
-
w(
|
|
21074
|
+
w(Ob),
|
|
21074
21075
|
w(n(Xw))
|
|
21075
21076
|
], 64);
|
|
21076
21077
|
};
|
|
@@ -21218,7 +21219,7 @@ function B9() {
|
|
|
21218
21219
|
}
|
|
21219
21220
|
};
|
|
21220
21221
|
}
|
|
21221
|
-
const Co = B9(),
|
|
21222
|
+
const Co = B9(), Wb = Co.register, Gb = Co.get, Nb = Co.has, Xb = Co.list, EF = Co.clear, ZF = Co.registerBundle, ew = /* @__PURE__ */ ne({
|
|
21222
21223
|
__name: "UnknownWidget",
|
|
21223
21224
|
props: {
|
|
21224
21225
|
type: {}
|
|
@@ -21236,13 +21237,13 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21236
21237
|
_: 1
|
|
21237
21238
|
}));
|
|
21238
21239
|
}
|
|
21239
|
-
}),
|
|
21240
|
+
}), Kb = /* @__PURE__ */ ne({
|
|
21240
21241
|
__name: "WidgetRenderer",
|
|
21241
21242
|
props: {
|
|
21242
21243
|
node: {}
|
|
21243
21244
|
},
|
|
21244
21245
|
setup(a) {
|
|
21245
|
-
const t = a, o = I(() =>
|
|
21246
|
+
const t = a, o = I(() => Gb(t.node.type)), l = I(() => {
|
|
21246
21247
|
const {
|
|
21247
21248
|
type: r,
|
|
21248
21249
|
span: i,
|
|
@@ -21263,7 +21264,7 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21263
21264
|
type: a.node.type
|
|
21264
21265
|
}, null, 8, ["type"]));
|
|
21265
21266
|
}
|
|
21266
|
-
}),
|
|
21267
|
+
}), Jb = ["aria-label"], Yb = ["aria-label", "title"], Qb = ["aria-label", "title"], eL = ["aria-label", "title"], aL = /* @__PURE__ */ ne({
|
|
21267
21268
|
__name: "WidgetActionsOverlay",
|
|
21268
21269
|
emits: ["configure", "remove"],
|
|
21269
21270
|
setup(a) {
|
|
@@ -21283,7 +21284,7 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21283
21284
|
icon: n(mo),
|
|
21284
21285
|
size: 14
|
|
21285
21286
|
}, null, 8, ["icon"])
|
|
21286
|
-
], 8,
|
|
21287
|
+
], 8, Yb),
|
|
21287
21288
|
u("button", {
|
|
21288
21289
|
type: "button",
|
|
21289
21290
|
class: "admin-widget-actions__btn",
|
|
@@ -21295,7 +21296,7 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21295
21296
|
icon: n(Mo),
|
|
21296
21297
|
size: 14
|
|
21297
21298
|
}, null, 8, ["icon"])
|
|
21298
|
-
], 8,
|
|
21299
|
+
], 8, Qb),
|
|
21299
21300
|
u("button", {
|
|
21300
21301
|
type: "button",
|
|
21301
21302
|
class: "admin-widget-actions__btn admin-widget-actions__btn--danger",
|
|
@@ -21307,49 +21308,49 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21307
21308
|
icon: n(He),
|
|
21308
21309
|
size: 14
|
|
21309
21310
|
}, null, 8, ["icon"])
|
|
21310
|
-
], 8,
|
|
21311
|
-
], 8,
|
|
21311
|
+
], 8, eL)
|
|
21312
|
+
], 8, Jb));
|
|
21312
21313
|
}
|
|
21313
|
-
}),
|
|
21314
|
+
}), tL = {
|
|
21314
21315
|
key: 0,
|
|
21315
21316
|
class: "admin-dialog-root",
|
|
21316
21317
|
role: "dialog",
|
|
21317
21318
|
"aria-modal": "true",
|
|
21318
21319
|
"aria-labelledby": "widget-config-title"
|
|
21319
|
-
},
|
|
21320
|
+
}, nL = { class: "admin-dialog" }, oL = { class: "admin-dialog__hd" }, cL = {
|
|
21320
21321
|
id: "widget-config-title",
|
|
21321
21322
|
class: "admin-dialog__title"
|
|
21322
|
-
},
|
|
21323
|
+
}, iL = ["aria-label"], lL = { class: "admin-dialog__body" }, rL = {
|
|
21323
21324
|
key: 0,
|
|
21324
21325
|
class: "admin-dialog__field"
|
|
21325
|
-
},
|
|
21326
|
+
}, dL = { class: "admin-dialog__label" }, sL = {
|
|
21326
21327
|
key: 0,
|
|
21327
21328
|
class: "admin-dialog__empty"
|
|
21328
|
-
},
|
|
21329
|
+
}, hL = {
|
|
21329
21330
|
key: 1,
|
|
21330
21331
|
class: "admin-dialog__restore-list"
|
|
21331
|
-
},
|
|
21332
|
+
}, uL = ["data-testid", "onClick"], yL = { class: "admin-dialog__type-name" }, pL = { class: "admin-dialog__type-help" }, kL = {
|
|
21332
21333
|
key: 1,
|
|
21333
21334
|
class: "admin-dialog__field"
|
|
21334
|
-
},
|
|
21335
|
+
}, mL = {
|
|
21335
21336
|
key: 0,
|
|
21336
21337
|
class: "admin-dialog__empty"
|
|
21337
|
-
},
|
|
21338
|
+
}, vL = {
|
|
21338
21339
|
key: 1,
|
|
21339
21340
|
class: "admin-dialog__type-grid"
|
|
21340
|
-
},
|
|
21341
|
+
}, fL = ["onClick"], gL = { class: "admin-dialog__type-name" }, ML = { class: "admin-dialog__type-help" }, IL = {
|
|
21341
21342
|
key: 2,
|
|
21342
21343
|
class: "admin-dialog__field"
|
|
21343
|
-
},
|
|
21344
|
+
}, wL = { class: "admin-dialog__label" }, xL = { class: "admin-dialog__readonly" }, bL = { class: "admin-dialog__field" }, LL = { class: "admin-dialog__field" }, CL = { class: "admin-dialog__label" }, _L = {
|
|
21344
21345
|
key: 3,
|
|
21345
21346
|
class: "admin-dialog__field"
|
|
21346
|
-
},
|
|
21347
|
+
}, SL = { class: "admin-dialog__label" }, qL = { class: "admin-dialog__field" }, AL = { class: "admin-dialog__label" }, zL = { class: "admin-dialog__field" }, HL = { class: "admin-dialog__label" }, VL = {
|
|
21347
21348
|
key: 5,
|
|
21348
21349
|
class: "admin-dialog__field"
|
|
21349
|
-
},
|
|
21350
|
+
}, PL = { class: "admin-dialog__label" }, FL = { class: "admin-dialog__field" }, jL = { class: "admin-dialog__label" }, DL = { class: "admin-dialog__field" }, BL = { class: "admin-dialog__label" }, RL = { class: "admin-dialog__field" }, $L = { class: "admin-dialog__field" }, TL = { class: "admin-dialog__ft" }, UL = {
|
|
21350
21351
|
key: 0,
|
|
21351
21352
|
class: "admin-dialog__hint"
|
|
21352
|
-
},
|
|
21353
|
+
}, OL = /* @__PURE__ */ ne({
|
|
21353
21354
|
__name: "WidgetConfigDialog",
|
|
21354
21355
|
props: {
|
|
21355
21356
|
open: { type: Boolean },
|
|
@@ -21364,7 +21365,7 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21364
21365
|
function r(B) {
|
|
21365
21366
|
l("restore", B), l("close");
|
|
21366
21367
|
}
|
|
21367
|
-
const i = I(() =>
|
|
21368
|
+
const i = I(() => Xb()), s = A(""), d = A(""), p = A("6"), m = A(`# Новая заметка
|
|
21368
21369
|
|
|
21369
21370
|
Текст…`), k = A("LABEL"), g = A("0"), b = A("50"), L = A(v("Янв, Фев, Мар, Апр")), M = A("10, 20, 15, 30"), C = A(""), f = A("5");
|
|
21370
21371
|
Me(
|
|
@@ -21445,14 +21446,14 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21445
21446
|
return (B, F) => (c(), z(lI, { to: "body" }, [
|
|
21446
21447
|
w(C9, { name: "admin-dialog" }, {
|
|
21447
21448
|
default: x(() => [
|
|
21448
|
-
a.open ? (c(), h("div",
|
|
21449
|
+
a.open ? (c(), h("div", tL, [
|
|
21449
21450
|
u("div", {
|
|
21450
21451
|
class: "admin-dialog-root__backdrop",
|
|
21451
21452
|
onClick: P
|
|
21452
21453
|
}),
|
|
21453
|
-
u("div",
|
|
21454
|
-
u("header",
|
|
21455
|
-
u("h2",
|
|
21454
|
+
u("div", nL, [
|
|
21455
|
+
u("header", oL, [
|
|
21456
|
+
u("h2", cL, y(a.mode === "add" ? n(v)("Добавить виджет") : n(v)("Настроить виджет")), 1),
|
|
21456
21457
|
u("button", {
|
|
21457
21458
|
type: "button",
|
|
21458
21459
|
class: "admin-dialog__close",
|
|
@@ -21463,12 +21464,12 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21463
21464
|
icon: n(He),
|
|
21464
21465
|
size: 16
|
|
21465
21466
|
}, null, 8, ["icon"])
|
|
21466
|
-
], 8,
|
|
21467
|
+
], 8, iL)
|
|
21467
21468
|
]),
|
|
21468
|
-
u("div",
|
|
21469
|
-
a.mode === "add" ? (c(), h("div",
|
|
21470
|
-
u("label",
|
|
21471
|
-
a.restorable.length === 0 ? (c(), h("p",
|
|
21469
|
+
u("div", lL, [
|
|
21470
|
+
a.mode === "add" ? (c(), h("div", rL, [
|
|
21471
|
+
u("label", dL, y(n(v)("Скрытые виджеты")), 1),
|
|
21472
|
+
a.restorable.length === 0 ? (c(), h("p", sL, y(n(v)("Нечего добавлять — все виджеты дашборда уже показаны.")), 1)) : (c(), h("div", hL, [
|
|
21472
21473
|
(c(!0), h(X, null, ae(a.restorable, (O) => (c(), h("button", {
|
|
21473
21474
|
key: O.slug,
|
|
21474
21475
|
type: "button",
|
|
@@ -21476,17 +21477,17 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21476
21477
|
"data-testid": `restore-widget-${O.slug}`,
|
|
21477
21478
|
onClick: (G) => r(O.slug)
|
|
21478
21479
|
}, [
|
|
21479
|
-
u("span",
|
|
21480
|
-
u("span",
|
|
21481
|
-
], 8,
|
|
21480
|
+
u("span", yL, y(O.title), 1),
|
|
21481
|
+
u("span", pL, y(n(v)("Вернуть на дашборд")), 1)
|
|
21482
|
+
], 8, uL))), 128))
|
|
21482
21483
|
]))
|
|
21483
21484
|
])) : H("", !0),
|
|
21484
|
-
a.mode === "add" ? (c(), h("div",
|
|
21485
|
+
a.mode === "add" ? (c(), h("div", kL, [
|
|
21485
21486
|
F[10] || (F[10] = u("label", { class: "admin-dialog__label" }, [
|
|
21486
21487
|
D(" Тип виджета "),
|
|
21487
21488
|
u("span", { class: "admin-dialog__required" }, "*")
|
|
21488
21489
|
], -1)),
|
|
21489
|
-
i.value.length === 0 ? (c(), h("p",
|
|
21490
|
+
i.value.length === 0 ? (c(), h("p", mL, y(n(v)("Нет виджетов для добавления — все доступные типы уже на дашборде")) + " " + y(n(v)("или ни один не зарегистрирован.")), 1)) : (c(), h("div", vL, [
|
|
21490
21491
|
(c(!0), h(X, null, ae(i.value, (O) => (c(), h("button", {
|
|
21491
21492
|
key: O,
|
|
21492
21493
|
type: "button",
|
|
@@ -21496,15 +21497,15 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21496
21497
|
]),
|
|
21497
21498
|
onClick: (G) => s.value = O
|
|
21498
21499
|
}, [
|
|
21499
|
-
u("span",
|
|
21500
|
-
u("span",
|
|
21501
|
-
], 10,
|
|
21500
|
+
u("span", gL, y(W[O] ?? O), 1),
|
|
21501
|
+
u("span", ML, y(O), 1)
|
|
21502
|
+
], 10, fL))), 128))
|
|
21502
21503
|
]))
|
|
21503
|
-
])) : (c(), h("div",
|
|
21504
|
-
u("label",
|
|
21505
|
-
u("div",
|
|
21504
|
+
])) : (c(), h("div", IL, [
|
|
21505
|
+
u("label", wL, y(n(v)("Тип")), 1),
|
|
21506
|
+
u("div", xL, y(s.value || "unknown"), 1)
|
|
21506
21507
|
])),
|
|
21507
|
-
u("div",
|
|
21508
|
+
u("div", bL, [
|
|
21508
21509
|
F[11] || (F[11] = u("label", { class: "admin-dialog__label" }, [
|
|
21509
21510
|
D(" Заголовок "),
|
|
21510
21511
|
u("span", { class: "admin-dialog__required" }, "*")
|
|
@@ -21515,16 +21516,16 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21515
21516
|
placeholder: n(v)("Название виджета")
|
|
21516
21517
|
}, null, 8, ["modelValue", "placeholder"])
|
|
21517
21518
|
]),
|
|
21518
|
-
u("div",
|
|
21519
|
-
u("label",
|
|
21519
|
+
u("div", LL, [
|
|
21520
|
+
u("label", CL, y(n(v)("Ширина (1..12)")), 1),
|
|
21520
21521
|
w(n(Le), {
|
|
21521
21522
|
modelValue: p.value,
|
|
21522
21523
|
"onUpdate:modelValue": F[1] || (F[1] = (O) => p.value = O),
|
|
21523
21524
|
type: "number"
|
|
21524
21525
|
}, null, 8, ["modelValue"])
|
|
21525
21526
|
]),
|
|
21526
|
-
U(s.value) === "markdown" ? (c(), h("div",
|
|
21527
|
-
u("label",
|
|
21527
|
+
U(s.value) === "markdown" ? (c(), h("div", _L, [
|
|
21528
|
+
u("label", SL, y(n(v)("Markdown содержимое")), 1),
|
|
21528
21529
|
s1(u("textarea", {
|
|
21529
21530
|
"onUpdate:modelValue": F[2] || (F[2] = (O) => m.value = O),
|
|
21530
21531
|
class: "admin-dialog__textarea",
|
|
@@ -21533,38 +21534,38 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21533
21534
|
[q1, m.value]
|
|
21534
21535
|
])
|
|
21535
21536
|
])) : U(s.value) === "stat" ? (c(), h(X, { key: 4 }, [
|
|
21536
|
-
u("div",
|
|
21537
|
-
u("label",
|
|
21537
|
+
u("div", qL, [
|
|
21538
|
+
u("label", AL, y(n(v)("Метка")), 1),
|
|
21538
21539
|
w(n(Le), {
|
|
21539
21540
|
modelValue: k.value,
|
|
21540
21541
|
"onUpdate:modelValue": F[3] || (F[3] = (O) => k.value = O)
|
|
21541
21542
|
}, null, 8, ["modelValue"])
|
|
21542
21543
|
]),
|
|
21543
|
-
u("div",
|
|
21544
|
-
u("label",
|
|
21544
|
+
u("div", zL, [
|
|
21545
|
+
u("label", HL, y(n(v)("Значение")), 1),
|
|
21545
21546
|
w(n(Le), {
|
|
21546
21547
|
modelValue: g.value,
|
|
21547
21548
|
"onUpdate:modelValue": F[4] || (F[4] = (O) => g.value = O)
|
|
21548
21549
|
}, null, 8, ["modelValue"])
|
|
21549
21550
|
])
|
|
21550
|
-
], 64)) : U(s.value) === "gauge" ? (c(), h("div",
|
|
21551
|
-
u("label",
|
|
21551
|
+
], 64)) : U(s.value) === "gauge" ? (c(), h("div", VL, [
|
|
21552
|
+
u("label", PL, y(n(v)("Значение (0..100)")), 1),
|
|
21552
21553
|
w(n(Le), {
|
|
21553
21554
|
modelValue: b.value,
|
|
21554
21555
|
"onUpdate:modelValue": F[5] || (F[5] = (O) => b.value = O),
|
|
21555
21556
|
type: "number"
|
|
21556
21557
|
}, null, 8, ["modelValue"])
|
|
21557
21558
|
])) : U(s.value) === "chart" ? (c(), h(X, { key: 6 }, [
|
|
21558
|
-
u("div",
|
|
21559
|
-
u("label",
|
|
21559
|
+
u("div", FL, [
|
|
21560
|
+
u("label", jL, y(n(v)("Метки (через запятую)")), 1),
|
|
21560
21561
|
w(n(Le), {
|
|
21561
21562
|
modelValue: L.value,
|
|
21562
21563
|
"onUpdate:modelValue": F[6] || (F[6] = (O) => L.value = O),
|
|
21563
21564
|
placeholder: n(v)("Янв, Фев, Мар")
|
|
21564
21565
|
}, null, 8, ["modelValue", "placeholder"])
|
|
21565
21566
|
]),
|
|
21566
|
-
u("div",
|
|
21567
|
-
u("label",
|
|
21567
|
+
u("div", DL, [
|
|
21568
|
+
u("label", BL, y(n(v)("Значения (через запятую)")), 1),
|
|
21568
21569
|
w(n(Le), {
|
|
21569
21570
|
modelValue: M.value,
|
|
21570
21571
|
"onUpdate:modelValue": F[7] || (F[7] = (O) => M.value = O),
|
|
@@ -21572,7 +21573,7 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21572
21573
|
}, null, 8, ["modelValue"])
|
|
21573
21574
|
])
|
|
21574
21575
|
], 64)) : U(s.value) === "recent" ? (c(), h(X, { key: 7 }, [
|
|
21575
|
-
u("div",
|
|
21576
|
+
u("div", RL, [
|
|
21576
21577
|
F[12] || (F[12] = u("label", { class: "admin-dialog__label" }, "Resource slug", -1)),
|
|
21577
21578
|
w(n(Le), {
|
|
21578
21579
|
modelValue: C.value,
|
|
@@ -21580,7 +21581,7 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21580
21581
|
placeholder: "articles"
|
|
21581
21582
|
}, null, 8, ["modelValue"])
|
|
21582
21583
|
]),
|
|
21583
|
-
u("div",
|
|
21584
|
+
u("div", $L, [
|
|
21584
21585
|
F[13] || (F[13] = u("label", { class: "admin-dialog__label" }, "Limit", -1)),
|
|
21585
21586
|
w(n(Le), {
|
|
21586
21587
|
modelValue: f.value,
|
|
@@ -21590,8 +21591,8 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21590
21591
|
])
|
|
21591
21592
|
], 64)) : H("", !0)
|
|
21592
21593
|
]),
|
|
21593
|
-
u("footer",
|
|
21594
|
-
q.value ? H("", !0) : (c(), h("span",
|
|
21594
|
+
u("footer", TL, [
|
|
21595
|
+
q.value ? H("", !0) : (c(), h("span", UL, [...F[14] || (F[14] = [
|
|
21595
21596
|
D(" Заполните ", -1),
|
|
21596
21597
|
u("span", { class: "admin-dialog__required" }, "*", -1),
|
|
21597
21598
|
D("-поля ", -1)
|
|
@@ -21624,10 +21625,10 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21624
21625
|
})
|
|
21625
21626
|
]));
|
|
21626
21627
|
}
|
|
21627
|
-
}),
|
|
21628
|
+
}), EL = { class: "admin-page admin-dashboard" }, ZL = { class: "admin-page__hd" }, WL = { class: "admin-page__title-wrap" }, GL = { class: "admin-page__title" }, NL = {
|
|
21628
21629
|
key: 0,
|
|
21629
21630
|
class: "admin-page__count"
|
|
21630
|
-
},
|
|
21631
|
+
}, XL = { class: "admin-page__actions" }, KL = ["draggable", "onDragstart", "onDragover", "onDrop"], JL = ["aria-label", "onMousedown"], YL = 140, QL = 16, aw = /* @__PURE__ */ ne({
|
|
21631
21632
|
__name: "DashboardPage",
|
|
21632
21633
|
props: {
|
|
21633
21634
|
slug: { default: void 0 },
|
|
@@ -21897,7 +21898,7 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21897
21898
|
}
|
|
21898
21899
|
function V1(Y) {
|
|
21899
21900
|
if (!Ne.value) return;
|
|
21900
|
-
const ie = p1 / 12, le = Math.round((Y.clientX - Ne.value.startX) / ie), re = Math.max(1, Math.min(12, Ne.value.startSpan + le)), ve =
|
|
21901
|
+
const ie = p1 / 12, le = Math.round((Y.clientX - Ne.value.startX) / ie), re = Math.max(1, Math.min(12, Ne.value.startSpan + le)), ve = YL + QL, be = Math.round((Y.clientY - Ne.value.startY) / ve), Be = Math.max(1, Math.min(6, Ne.value.startRowSpan + be)), P1 = i.draft.find((Z9) => Z9.slug === Ne.value.slug);
|
|
21901
21902
|
if (!P1) return;
|
|
21902
21903
|
const E9 = P1.config?.rowSpan, r1 = {};
|
|
21903
21904
|
P1.size !== re && (r1.size = re), E9 !== Be && (r1.config = { ...P1.config ?? {}, rowSpan: Be }), Object.keys(r1).length > 0 && i.updateWidget(Ne.value.slug, r1);
|
|
@@ -21922,13 +21923,13 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
21922
21923
|
}, ie = new Blob([JSON.stringify(Y, null, 2)], { type: "application/json" }), le = URL.createObjectURL(ie), re = document.createElement("a");
|
|
21923
21924
|
re.href = le, re.download = `dashboard-${m.value ?? "export"}-${U.value}.json`, document.body.appendChild(re), re.click(), re.remove(), URL.revokeObjectURL(le);
|
|
21924
21925
|
}
|
|
21925
|
-
return (Y, ie) => (c(), h("section",
|
|
21926
|
-
u("header",
|
|
21927
|
-
u("div",
|
|
21928
|
-
u("h1",
|
|
21929
|
-
M.value ? (c(), h("div",
|
|
21926
|
+
return (Y, ie) => (c(), h("section", EL, [
|
|
21927
|
+
u("header", ZL, [
|
|
21928
|
+
u("div", WL, [
|
|
21929
|
+
u("h1", GL, y(L.value), 1),
|
|
21930
|
+
M.value ? (c(), h("div", NL, y(M.value), 1)) : H("", !0)
|
|
21930
21931
|
]),
|
|
21931
|
-
u("div",
|
|
21932
|
+
u("div", XL, [
|
|
21932
21933
|
ze(Y.$slots, "actions"),
|
|
21933
21934
|
w(n(je), null, {
|
|
21934
21935
|
trigger: x(() => [
|
|
@@ -22085,10 +22086,10 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
22085
22086
|
onDrop: (ve) => U9(re, ve),
|
|
22086
22087
|
onDragend: $9
|
|
22087
22088
|
}, [
|
|
22088
|
-
w(
|
|
22089
|
+
w(Kb, {
|
|
22089
22090
|
node: le.node
|
|
22090
22091
|
}, null, 8, ["node"]),
|
|
22091
|
-
n(i).editMode ? (c(), z(
|
|
22092
|
+
n(i).editMode ? (c(), z(aL, {
|
|
22092
22093
|
key: 0,
|
|
22093
22094
|
onConfigure: (ve) => xe(le.layoutSlug),
|
|
22094
22095
|
onRemove: (ve) => de(le.layoutSlug)
|
|
@@ -22098,10 +22099,10 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
22098
22099
|
class: "admin-dashboard__resize",
|
|
22099
22100
|
"aria-label": d("Изменить размер"),
|
|
22100
22101
|
onMousedown: (ve) => t1(ve, le.layoutSlug, f(le.node), q(le.layoutSlug, le.node))
|
|
22101
|
-
}, null, 40,
|
|
22102
|
-
], 46,
|
|
22102
|
+
}, null, 40, JL)) : H("", !0)
|
|
22103
|
+
], 46, KL))), 128))
|
|
22103
22104
|
], 2),
|
|
22104
|
-
w(
|
|
22105
|
+
w(OL, {
|
|
22105
22106
|
open: Z.value !== null,
|
|
22106
22107
|
mode: Z.value ?? "add",
|
|
22107
22108
|
item: J.value,
|
|
@@ -22114,13 +22115,13 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
22114
22115
|
}, null, 8, ["open", "mode", "item", "initial-title", "restorable"])
|
|
22115
22116
|
]));
|
|
22116
22117
|
}
|
|
22117
|
-
}),
|
|
22118
|
+
}), eC = {
|
|
22118
22119
|
key: 1,
|
|
22119
22120
|
class: "admin-home"
|
|
22120
|
-
},
|
|
22121
|
+
}, aC = { class: "admin-home__title" }, tC = { class: "admin-home__lead" }, nC = {
|
|
22121
22122
|
key: 0,
|
|
22122
22123
|
class: "admin-home__resources"
|
|
22123
|
-
},
|
|
22124
|
+
}, oC = { class: "admin-home__heading" }, cC = { class: "admin-home__grid" }, iC = ["onClick"], lC = { class: "admin-home__card-label" }, rC = { class: "admin-home__card-slug" }, dC = /* @__PURE__ */ ne({
|
|
22124
22125
|
__name: "HomePage",
|
|
22125
22126
|
setup(a) {
|
|
22126
22127
|
const t = Ee(), o = Qe(), l = Ze(), r = I(() => o.user?.name ?? ""), i = I(() => t.manifest?.resources ?? []), s = I(
|
|
@@ -22137,20 +22138,20 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
22137
22138
|
), (m, k) => d.value ? (c(), z(aw, {
|
|
22138
22139
|
key: 0,
|
|
22139
22140
|
slug: d.value
|
|
22140
|
-
}, null, 8, ["slug"])) : (c(), h("div",
|
|
22141
|
+
}, null, 8, ["slug"])) : (c(), h("div", eC, [
|
|
22141
22142
|
w(n(we), {
|
|
22142
22143
|
padding: "lg",
|
|
22143
22144
|
class: "admin-home__hero"
|
|
22144
22145
|
}, {
|
|
22145
22146
|
default: x(() => [
|
|
22146
|
-
u("h1",
|
|
22147
|
-
u("p",
|
|
22147
|
+
u("h1", aC, "Добро пожаловать" + y(r.value ? ", " + r.value : ""), 1),
|
|
22148
|
+
u("p", tC, y(n(v)("Админ-панель готова. Зарегистрируйте DashboardScreen чтобы увидеть widget-grid здесь,")) + " " + y(n(v)("либо переходите к ресурсам ниже.")), 1)
|
|
22148
22149
|
]),
|
|
22149
22150
|
_: 1
|
|
22150
22151
|
}),
|
|
22151
|
-
i.value.length ? (c(), h("section",
|
|
22152
|
-
u("h2",
|
|
22153
|
-
u("ul",
|
|
22152
|
+
i.value.length ? (c(), h("section", nC, [
|
|
22153
|
+
u("h2", oC, y(n(v)("Ресурсы")), 1),
|
|
22154
|
+
u("ul", cC, [
|
|
22154
22155
|
(c(!0), h(X, null, ae(i.value, (g) => (c(), h("li", {
|
|
22155
22156
|
key: g.slug
|
|
22156
22157
|
}, [
|
|
@@ -22159,26 +22160,26 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
22159
22160
|
class: "admin-home__card",
|
|
22160
22161
|
onClick: (b) => n(l).push({ name: `admin.resource.${g.slug}.index` })
|
|
22161
22162
|
}, [
|
|
22162
|
-
u("span",
|
|
22163
|
-
u("span",
|
|
22164
|
-
], 8,
|
|
22163
|
+
u("span", lC, y(g.label), 1),
|
|
22164
|
+
u("span", rC, y(g.slug), 1)
|
|
22165
|
+
], 8, iC)
|
|
22165
22166
|
]))), 128))
|
|
22166
22167
|
])
|
|
22167
22168
|
])) : H("", !0)
|
|
22168
22169
|
]));
|
|
22169
22170
|
}
|
|
22170
|
-
}),
|
|
22171
|
+
}), sC = { class: "admin-status-page" }, hC = { class: "admin-status-page__message" }, uC = /* @__PURE__ */ ne({
|
|
22171
22172
|
__name: "ForbiddenPage",
|
|
22172
22173
|
setup(a) {
|
|
22173
22174
|
const t = Ze();
|
|
22174
|
-
return (o, l) => (c(), h("div",
|
|
22175
|
+
return (o, l) => (c(), h("div", sC, [
|
|
22175
22176
|
w(n(we), {
|
|
22176
22177
|
padding: "lg",
|
|
22177
22178
|
class: "admin-status-page__card"
|
|
22178
22179
|
}, {
|
|
22179
22180
|
default: x(() => [
|
|
22180
22181
|
l[1] || (l[1] = u("h1", { class: "admin-status-page__code" }, "403", -1)),
|
|
22181
|
-
u("p",
|
|
22182
|
+
u("p", hC, y(n(v)("Доступ запрещён.")), 1),
|
|
22182
22183
|
w(n(oe), {
|
|
22183
22184
|
variant: "ghost",
|
|
22184
22185
|
onClick: l[0] || (l[0] = (r) => n(t).replace({ name: "admin.home" }))
|
|
@@ -22193,18 +22194,18 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
22193
22194
|
})
|
|
22194
22195
|
]));
|
|
22195
22196
|
}
|
|
22196
|
-
}),
|
|
22197
|
+
}), yC = { class: "admin-status-page" }, pC = { class: "admin-status-page__message" }, kC = /* @__PURE__ */ ne({
|
|
22197
22198
|
__name: "NotFoundPage",
|
|
22198
22199
|
setup(a) {
|
|
22199
22200
|
const t = Ze();
|
|
22200
|
-
return (o, l) => (c(), h("div",
|
|
22201
|
+
return (o, l) => (c(), h("div", yC, [
|
|
22201
22202
|
w(n(we), {
|
|
22202
22203
|
padding: "lg",
|
|
22203
22204
|
class: "admin-status-page__card"
|
|
22204
22205
|
}, {
|
|
22205
22206
|
default: x(() => [
|
|
22206
22207
|
l[1] || (l[1] = u("h1", { class: "admin-status-page__code" }, "404", -1)),
|
|
22207
|
-
u("p",
|
|
22208
|
+
u("p", pC, y(n(v)("Страница не найдена.")), 1),
|
|
22208
22209
|
w(n(oe), {
|
|
22209
22210
|
variant: "ghost",
|
|
22210
22211
|
onClick: l[0] || (l[0] = (r) => n(t).replace({ name: "admin.home" }))
|
|
@@ -22219,27 +22220,27 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
22219
22220
|
})
|
|
22220
22221
|
]));
|
|
22221
22222
|
}
|
|
22222
|
-
}),
|
|
22223
|
+
}), mC = { class: "admin-settings-page" }, vC = { class: "admin-settings-page__title" }, fC = {
|
|
22223
22224
|
key: 0,
|
|
22224
22225
|
class: "admin-settings-page__hint"
|
|
22225
|
-
},
|
|
22226
|
+
}, gC = {
|
|
22226
22227
|
key: 1,
|
|
22227
22228
|
class: "admin-settings-page__debug"
|
|
22228
|
-
},
|
|
22229
|
+
}, MC = /* @__PURE__ */ ne({
|
|
22229
22230
|
__name: "SettingsPage",
|
|
22230
22231
|
setup(a) {
|
|
22231
22232
|
const t = l1(), o = Ee(), l = I(() => String(t.params.slug ?? "")), r = I(() => o.manifest?.settings?.find((i) => i.slug === l.value) ?? null);
|
|
22232
|
-
return (i, s) => (c(), h("div",
|
|
22233
|
+
return (i, s) => (c(), h("div", mC, [
|
|
22233
22234
|
w(n(we), { padding: "lg" }, {
|
|
22234
22235
|
default: x(() => [
|
|
22235
|
-
u("h1",
|
|
22236
|
-
r.value ? (c(), h("pre",
|
|
22236
|
+
u("h1", vC, y(r.value?.label ?? l.value), 1),
|
|
22237
|
+
r.value ? (c(), h("pre", gC, y(JSON.stringify(r.value.fields, null, 2)), 1)) : (c(), h("p", fC, " Settings «" + y(l.value) + "» не найдено в manifest'е. ", 1))
|
|
22237
22238
|
]),
|
|
22238
22239
|
_: 1
|
|
22239
22240
|
})
|
|
22240
22241
|
]));
|
|
22241
22242
|
}
|
|
22242
|
-
}),
|
|
22243
|
+
}), IC = e1("admin-screen", () => {
|
|
22243
22244
|
const a = A(null), t = A(""), o = A(null), l = A([]), r = A([]), i = A([]), s = A(null), d = A({}), p = A({}), m = A({}), k = A(!1), g = A(!1), b = A(null), L = A(null), M = I(() => b.value !== null);
|
|
22244
22245
|
function C(F, O) {
|
|
22245
22246
|
for (const G of Object.keys(F)) delete F[G];
|
|
@@ -22337,7 +22338,7 @@ const Co = B9(), Zb = Co.register, Wb = Co.get, Gb = Co.has, Nb = Co.list, OF =
|
|
|
22337
22338
|
function tw(a) {
|
|
22338
22339
|
Vw(kI, a);
|
|
22339
22340
|
}
|
|
22340
|
-
function
|
|
22341
|
+
function WF() {
|
|
22341
22342
|
const a = rI(kI);
|
|
22342
22343
|
if (!a)
|
|
22343
22344
|
throw new Error("useRecord() called outside of provideRecord() scope");
|
|
@@ -22346,11 +22347,11 @@ function ZF() {
|
|
|
22346
22347
|
function N2() {
|
|
22347
22348
|
return rI(kI, null);
|
|
22348
22349
|
}
|
|
22349
|
-
const _o = B9(), So = B9(),
|
|
22350
|
-
function
|
|
22350
|
+
const _o = B9(), So = B9(), wC = _o.register, nw = _o.get, xC = _o.has, GF = _o.list, bC = So.register, LI = So.get, LC = So.has, NF = So.list;
|
|
22351
|
+
function XF() {
|
|
22351
22352
|
_o.clear(), So.clear();
|
|
22352
22353
|
}
|
|
22353
|
-
function
|
|
22354
|
+
function KF(a) {
|
|
22354
22355
|
a.fields && _o.registerBundle(a.fields), a.layouts && So.registerBundle(a.layouts);
|
|
22355
22356
|
}
|
|
22356
22357
|
const ow = /* @__PURE__ */ ne({
|
|
@@ -22435,22 +22436,22 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22435
22436
|
name: a.node.name
|
|
22436
22437
|
}, null, 8, ["type", "name"]));
|
|
22437
22438
|
}
|
|
22438
|
-
}),
|
|
22439
|
+
}), CC = { class: "admin-page admin-screen-page" }, _C = { class: "admin-page__hd" }, SC = { class: "admin-page__title-wrap" }, qC = { class: "admin-page__title" }, AC = {
|
|
22439
22440
|
key: 0,
|
|
22440
22441
|
class: "admin-screen-page__description"
|
|
22441
|
-
},
|
|
22442
|
+
}, zC = {
|
|
22442
22443
|
key: 0,
|
|
22443
22444
|
class: "admin-page__actions"
|
|
22444
|
-
},
|
|
22445
|
+
}, HC = {
|
|
22445
22446
|
key: 2,
|
|
22446
22447
|
class: "admin-screen-page__loading"
|
|
22447
|
-
},
|
|
22448
|
+
}, VC = /* @__PURE__ */ ne({
|
|
22448
22449
|
__name: "ScreenPage",
|
|
22449
22450
|
props: {
|
|
22450
22451
|
slug: { default: null }
|
|
22451
22452
|
},
|
|
22452
22453
|
setup(a) {
|
|
22453
|
-
const t = a, o = l1(), l =
|
|
22454
|
+
const t = a, o = l1(), l = IC(), r = I(() => t.slug ? t.slug : String(o.params.slug ?? o.meta?.slug ?? "")), i = H9(l.state, l.errors);
|
|
22454
22455
|
tw(l.state), Me(
|
|
22455
22456
|
() => l.errors,
|
|
22456
22457
|
(k) => {
|
|
@@ -22482,13 +22483,13 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22482
22483
|
function m(k) {
|
|
22483
22484
|
return k.destructive ? "danger" : k.primary ? "primary" : "secondary";
|
|
22484
22485
|
}
|
|
22485
|
-
return (k, g) => (c(), h("section",
|
|
22486
|
-
u("header",
|
|
22487
|
-
u("div",
|
|
22488
|
-
u("h1",
|
|
22489
|
-
n(l).description ? (c(), h("p",
|
|
22486
|
+
return (k, g) => (c(), h("section", CC, [
|
|
22487
|
+
u("header", _C, [
|
|
22488
|
+
u("div", SC, [
|
|
22489
|
+
u("h1", qC, y(n(l).name || r.value), 1),
|
|
22490
|
+
n(l).description ? (c(), h("p", AC, y(n(l).description), 1)) : H("", !0)
|
|
22490
22491
|
]),
|
|
22491
|
-
n(l).commandBar.length > 0 ? (c(), h("div",
|
|
22492
|
+
n(l).commandBar.length > 0 ? (c(), h("div", zC, [
|
|
22492
22493
|
(c(!0), h(X, null, ae(n(l).commandBar, (b) => (c(), z(n(oe), {
|
|
22493
22494
|
key: b.name,
|
|
22494
22495
|
variant: m(b),
|
|
@@ -22525,7 +22526,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22525
22526
|
]),
|
|
22526
22527
|
_: 1
|
|
22527
22528
|
})) : H("", !0),
|
|
22528
|
-
n(l).loading ? (c(), h("div",
|
|
22529
|
+
n(l).loading ? (c(), h("div", HC, [
|
|
22529
22530
|
(c(), h(X, null, ae(4, (b) => w(n(Re), {
|
|
22530
22531
|
key: b,
|
|
22531
22532
|
height: "40px"
|
|
@@ -22545,10 +22546,10 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22545
22546
|
})) : H("", !0)
|
|
22546
22547
|
]));
|
|
22547
22548
|
}
|
|
22548
|
-
}),
|
|
22549
|
+
}), PC = { class: "admin-auth-card__row" }, FC = ["href"], jC = {
|
|
22549
22550
|
key: 1,
|
|
22550
22551
|
style: { "text-align": "center", "font-size": "var(--uid-font-size-xs)", color: "var(--uid-text-secondary)", "padding-top": "4px" }
|
|
22551
|
-
},
|
|
22552
|
+
}, DC = ["href"], BC = /* @__PURE__ */ ne({
|
|
22552
22553
|
__name: "LoginForm",
|
|
22553
22554
|
props: {
|
|
22554
22555
|
forgotUrl: { default: null },
|
|
@@ -22616,7 +22617,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22616
22617
|
name: "password",
|
|
22617
22618
|
"data-testid": "login-password"
|
|
22618
22619
|
}, null, 8, ["modelValue", "label", "disabled", "error"]),
|
|
22619
|
-
u("div",
|
|
22620
|
+
u("div", PC, [
|
|
22620
22621
|
w(n(UI), {
|
|
22621
22622
|
modelValue: s.value,
|
|
22622
22623
|
"onUpdate:modelValue": M[2] || (M[2] = (C) => s.value = C),
|
|
@@ -22627,7 +22628,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22627
22628
|
key: 0,
|
|
22628
22629
|
href: a.forgotUrl,
|
|
22629
22630
|
class: "admin-auth-card__link"
|
|
22630
|
-
}, y(n(v)("Забыли пароль?")), 9,
|
|
22631
|
+
}, y(n(v)("Забыли пароль?")), 9, FC)) : H("", !0)
|
|
22631
22632
|
]),
|
|
22632
22633
|
w(n(oe), {
|
|
22633
22634
|
type: "submit",
|
|
@@ -22642,16 +22643,16 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22642
22643
|
]),
|
|
22643
22644
|
_: 1
|
|
22644
22645
|
}, 8, ["loading", "disabled"]),
|
|
22645
|
-
a.ssoLinkLabel && a.ssoUrl ? (c(), h("div",
|
|
22646
|
+
a.ssoLinkLabel && a.ssoUrl ? (c(), h("div", jC, [
|
|
22646
22647
|
D(y(n(v)("или войдите через")) + " ", 1),
|
|
22647
22648
|
u("a", {
|
|
22648
22649
|
href: a.ssoUrl,
|
|
22649
22650
|
class: "admin-auth-card__link"
|
|
22650
|
-
}, y(a.ssoLinkLabel), 9,
|
|
22651
|
+
}, y(a.ssoLinkLabel), 9, DC)
|
|
22651
22652
|
])) : H("", !0)
|
|
22652
22653
|
], 32));
|
|
22653
22654
|
}
|
|
22654
|
-
}),
|
|
22655
|
+
}), RC = ["value", "disabled", "aria-label", "onInput", "onKeydown"], $C = { class: "admin-auth-card__row" }, TC = /* @__PURE__ */ ne({
|
|
22655
22656
|
__name: "TwoFactorForm",
|
|
22656
22657
|
emits: ["success", "cancel"],
|
|
22657
22658
|
setup(a, { emit: t }) {
|
|
@@ -22746,7 +22747,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22746
22747
|
"aria-label": `Цифра ${B + 1}`,
|
|
22747
22748
|
onInput: (F) => M(B, F),
|
|
22748
22749
|
onKeydown: (F) => C(B, F)
|
|
22749
|
-
}, null, 40,
|
|
22750
|
+
}, null, 40, RC))), 128))
|
|
22750
22751
|
], 32)) : (c(), z(n(Le), {
|
|
22751
22752
|
key: 3,
|
|
22752
22753
|
modelValue: s.value,
|
|
@@ -22769,7 +22770,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22769
22770
|
]),
|
|
22770
22771
|
_: 1
|
|
22771
22772
|
}, 8, ["loading", "disabled"]),
|
|
22772
|
-
u("div",
|
|
22773
|
+
u("div", $C, [
|
|
22773
22774
|
u("button", {
|
|
22774
22775
|
type: "button",
|
|
22775
22776
|
class: "admin-auth-card__link",
|
|
@@ -22789,13 +22790,13 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22789
22790
|
])
|
|
22790
22791
|
], 32));
|
|
22791
22792
|
}
|
|
22792
|
-
}),
|
|
22793
|
+
}), UC = { class: "admin-auth-page" }, OC = {
|
|
22793
22794
|
key: 0,
|
|
22794
22795
|
class: "admin-auth-page__corner"
|
|
22795
|
-
},
|
|
22796
|
+
}, EC = { class: "admin-auth-card__hd" }, ZC = ["src", "alt"], WC = {
|
|
22796
22797
|
key: 1,
|
|
22797
22798
|
"aria-hidden": "true"
|
|
22798
|
-
},
|
|
22799
|
+
}, GC = { key: 2 }, NC = { class: "admin-auth-card__title" }, XC = { class: "admin-auth-card__sub" }, KC = /* @__PURE__ */ ne({
|
|
22799
22800
|
__name: "LoginPage",
|
|
22800
22801
|
props: {
|
|
22801
22802
|
brandName: { default: void 0 },
|
|
@@ -22825,8 +22826,8 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22825
22826
|
}
|
|
22826
22827
|
), Oe(() => {
|
|
22827
22828
|
o.isAuthenticated && m();
|
|
22828
|
-
}), (k, g) => (c(), h("div",
|
|
22829
|
-
a.showCornerActions ? (c(), h("div",
|
|
22829
|
+
}), (k, g) => (c(), h("div", UC, [
|
|
22830
|
+
a.showCornerActions ? (c(), h("div", OC, [
|
|
22830
22831
|
w(NI),
|
|
22831
22832
|
w(XI)
|
|
22832
22833
|
])) : H("", !0),
|
|
@@ -22835,7 +22836,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22835
22836
|
padding: "none"
|
|
22836
22837
|
}, {
|
|
22837
22838
|
default: x(() => [
|
|
22838
|
-
u("div",
|
|
22839
|
+
u("div", EC, [
|
|
22839
22840
|
u("div", {
|
|
22840
22841
|
class: fe(["admin-auth-card__logo", n(o).isChallengePending ? "admin-auth-card__logo--accent" : ""])
|
|
22841
22842
|
}, [
|
|
@@ -22843,19 +22844,19 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22843
22844
|
key: 0,
|
|
22844
22845
|
src: d.value,
|
|
22845
22846
|
alt: s.value
|
|
22846
|
-
}, null, 8,
|
|
22847
|
+
}, null, 8, ZC)) : n(o).isChallengePending ? (c(), h("span", WC, "🛡")) : p.value ? (c(), h("span", GC, y(p.value), 1)) : (c(), z(j9, {
|
|
22847
22848
|
key: 3,
|
|
22848
22849
|
size: 40
|
|
22849
22850
|
}))
|
|
22850
22851
|
], 2),
|
|
22851
|
-
u("div",
|
|
22852
|
+
u("div", NC, [
|
|
22852
22853
|
n(o).isChallengePending ? (c(), h(X, { key: 0 }, [
|
|
22853
22854
|
D(y(n(v)("Двухфакторная проверка")), 1)
|
|
22854
22855
|
], 64)) : (c(), h(X, { key: 1 }, [
|
|
22855
22856
|
D(y(s.value), 1)
|
|
22856
22857
|
], 64))
|
|
22857
22858
|
]),
|
|
22858
|
-
u("div",
|
|
22859
|
+
u("div", XC, [
|
|
22859
22860
|
n(o).isChallengePending ? (c(), h(X, { key: 0 }, [
|
|
22860
22861
|
D(y(n(v)("Введите 6-значный код из приложения-аутентификатора")), 1)
|
|
22861
22862
|
], 64)) : (c(), h(X, { key: 1 }, [
|
|
@@ -22863,13 +22864,13 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22863
22864
|
], 64))
|
|
22864
22865
|
])
|
|
22865
22866
|
]),
|
|
22866
|
-
n(o).isChallengePending ? (c(), z(
|
|
22867
|
+
n(o).isChallengePending ? (c(), z(TC, {
|
|
22867
22868
|
key: 0,
|
|
22868
22869
|
onSuccess: g[0] || (g[0] = () => {
|
|
22869
22870
|
}),
|
|
22870
22871
|
onCancel: g[1] || (g[1] = () => {
|
|
22871
22872
|
})
|
|
22872
|
-
})) : (c(), z(
|
|
22873
|
+
})) : (c(), z(BC, {
|
|
22873
22874
|
key: 1,
|
|
22874
22875
|
"forgot-url": a.forgotUrl,
|
|
22875
22876
|
"sso-link-label": a.ssoLinkLabel,
|
|
@@ -22882,7 +22883,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22882
22883
|
}, 8, ["class"])
|
|
22883
22884
|
]));
|
|
22884
22885
|
}
|
|
22885
|
-
}),
|
|
22886
|
+
}), JC = { class: "admin-auth-page" }, YC = { class: "admin-auth-card__hd" }, QC = { class: "admin-auth-card__logo" }, e_ = ["src", "alt"], a_ = { key: 1 }, t_ = { class: "admin-auth-card__title" }, n_ = { class: "admin-auth-card__sub" }, o_ = { class: "admin-auth-card__body" }, c_ = /* @__PURE__ */ ne({
|
|
22886
22887
|
__name: "ForgotPasswordPage",
|
|
22887
22888
|
props: {
|
|
22888
22889
|
brandName: { default: "Laravel Admin" },
|
|
@@ -22905,27 +22906,27 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22905
22906
|
i.value = !1;
|
|
22906
22907
|
}
|
|
22907
22908
|
}
|
|
22908
|
-
return (d, p) => (c(), h("div",
|
|
22909
|
+
return (d, p) => (c(), h("div", JC, [
|
|
22909
22910
|
w(n(we), {
|
|
22910
22911
|
padding: "none",
|
|
22911
22912
|
class: "admin-auth-card"
|
|
22912
22913
|
}, {
|
|
22913
22914
|
default: x(() => [
|
|
22914
|
-
u("div",
|
|
22915
|
-
u("div",
|
|
22915
|
+
u("div", YC, [
|
|
22916
|
+
u("div", QC, [
|
|
22916
22917
|
n(t).logo ? (c(), h("img", {
|
|
22917
22918
|
key: 0,
|
|
22918
22919
|
src: n(t).logo,
|
|
22919
22920
|
alt: n(t).name ?? "Logo"
|
|
22920
|
-
}, null, 8,
|
|
22921
|
+
}, null, 8, e_)) : n(t).mark ? (c(), h("span", a_, y(n(t).mark), 1)) : (c(), z(j9, {
|
|
22921
22922
|
key: 2,
|
|
22922
22923
|
size: 40
|
|
22923
22924
|
}))
|
|
22924
22925
|
]),
|
|
22925
|
-
u("div",
|
|
22926
|
-
u("div",
|
|
22926
|
+
u("div", t_, y(n(v)("Восстановление пароля")), 1),
|
|
22927
|
+
u("div", n_, y(r.value ? n(v)("Если такой email зарегистрирован — мы отправили письмо со ссылкой на сброс.") : n(v)("Введите email — отправим ссылку для сброса пароля.")), 1)
|
|
22927
22928
|
]),
|
|
22928
|
-
u("div",
|
|
22929
|
+
u("div", o_, [
|
|
22929
22930
|
r.value ? H("", !0) : (c(), h("form", {
|
|
22930
22931
|
key: 0,
|
|
22931
22932
|
onSubmit: me(s, ["prevent"])
|
|
@@ -22972,10 +22973,10 @@ const ow = /* @__PURE__ */ ne({
|
|
|
22972
22973
|
})
|
|
22973
22974
|
]));
|
|
22974
22975
|
}
|
|
22975
|
-
}),
|
|
22976
|
+
}), i_ = { class: "admin-auth-page" }, l_ = { class: "admin-auth-card__hd" }, r_ = { class: "admin-auth-card__logo" }, d_ = ["src", "alt"], s_ = { key: 1 }, h_ = { class: "admin-auth-card__title" }, u_ = { class: "admin-auth-card__sub" }, y_ = { class: "admin-auth-card__body" }, p_ = {
|
|
22976
22977
|
key: 0,
|
|
22977
22978
|
class: "admin-auth-card__error"
|
|
22978
|
-
},
|
|
22979
|
+
}, k_ = /* @__PURE__ */ ne({
|
|
22979
22980
|
__name: "ResetPasswordPage",
|
|
22980
22981
|
props: {
|
|
22981
22982
|
loginRouteName: { default: "admin.login" }
|
|
@@ -23006,27 +23007,27 @@ const ow = /* @__PURE__ */ ne({
|
|
|
23006
23007
|
m.value = !1;
|
|
23007
23008
|
}
|
|
23008
23009
|
}
|
|
23009
|
-
return (b, L) => (c(), h("div",
|
|
23010
|
+
return (b, L) => (c(), h("div", i_, [
|
|
23010
23011
|
w(n(we), {
|
|
23011
23012
|
padding: "none",
|
|
23012
23013
|
class: "admin-auth-card"
|
|
23013
23014
|
}, {
|
|
23014
23015
|
default: x(() => [
|
|
23015
|
-
u("div",
|
|
23016
|
-
u("div",
|
|
23016
|
+
u("div", l_, [
|
|
23017
|
+
u("div", r_, [
|
|
23017
23018
|
n(t).logo ? (c(), h("img", {
|
|
23018
23019
|
key: 0,
|
|
23019
23020
|
src: n(t).logo,
|
|
23020
23021
|
alt: n(t).name ?? "Logo"
|
|
23021
|
-
}, null, 8,
|
|
23022
|
+
}, null, 8, d_)) : n(t).mark ? (c(), h("span", s_, y(n(t).mark), 1)) : (c(), z(j9, {
|
|
23022
23023
|
key: 2,
|
|
23023
23024
|
size: 40
|
|
23024
23025
|
}))
|
|
23025
23026
|
]),
|
|
23026
|
-
u("div",
|
|
23027
|
-
u("div",
|
|
23027
|
+
u("div", h_, y(n(v)("Новый пароль")), 1),
|
|
23028
|
+
u("div", u_, y(n(v)("Задайте новый пароль для своего аккаунта.")), 1)
|
|
23028
23029
|
]),
|
|
23029
|
-
u("div",
|
|
23030
|
+
u("div", y_, [
|
|
23030
23031
|
u("form", {
|
|
23031
23032
|
onSubmit: me(g, ["prevent"])
|
|
23032
23033
|
}, [
|
|
@@ -23053,7 +23054,7 @@ const ow = /* @__PURE__ */ ne({
|
|
|
23053
23054
|
autocomplete: "new-password",
|
|
23054
23055
|
required: ""
|
|
23055
23056
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
23056
|
-
k.value ? (c(), h("p",
|
|
23057
|
+
k.value ? (c(), h("p", p_, y(k.value), 1)) : H("", !0),
|
|
23057
23058
|
w(n(oe), {
|
|
23058
23059
|
type: "submit",
|
|
23059
23060
|
variant: "primary",
|
|
@@ -23191,25 +23192,25 @@ const ow = /* @__PURE__ */ ne({
|
|
|
23191
23192
|
isSelected: j,
|
|
23192
23193
|
rowId: W
|
|
23193
23194
|
};
|
|
23194
|
-
}),
|
|
23195
|
+
}), m_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23195
23196
|
__proto__: null,
|
|
23196
23197
|
useResourceIndexStore: cw
|
|
23197
|
-
}, Symbol.toStringTag, { value: "Module" })), _I = "d.m.Y H:i:s",
|
|
23198
|
+
}, Symbol.toStringTag, { value: "Module" })), _I = "d.m.Y H:i:s", v_ = "d.m.Y", f_ = /^\d{4}-\d{2}-\d{2}[T\s]\d{2}:\d{2}/;
|
|
23198
23199
|
function R9(a, t, o = {}) {
|
|
23199
23200
|
if (a == null) return "";
|
|
23200
|
-
if (!t && typeof a == "string" &&
|
|
23201
|
+
if (!t && typeof a == "string" && f_.test(a))
|
|
23201
23202
|
return N9(a, _I);
|
|
23202
23203
|
switch (t) {
|
|
23203
23204
|
case "date":
|
|
23204
|
-
return N9(String(a), o.format ??
|
|
23205
|
+
return N9(String(a), o.format ?? v_);
|
|
23205
23206
|
case "datetime":
|
|
23206
23207
|
return N9(String(a), o.format ?? _I);
|
|
23207
23208
|
case "money":
|
|
23208
|
-
return
|
|
23209
|
+
return g_(a, o.currency ?? "RUB", o.decimals ?? 2);
|
|
23209
23210
|
case "boolean":
|
|
23210
|
-
return
|
|
23211
|
+
return M_(a, v(o.trueLabel ?? "Да"), v(o.falseLabel ?? "Нет"));
|
|
23211
23212
|
case "bytes":
|
|
23212
|
-
return
|
|
23213
|
+
return I_(a);
|
|
23213
23214
|
case "json":
|
|
23214
23215
|
return SI(a);
|
|
23215
23216
|
default:
|
|
@@ -23251,14 +23252,14 @@ function N9(a, t) {
|
|
|
23251
23252
|
}
|
|
23252
23253
|
return i;
|
|
23253
23254
|
}
|
|
23254
|
-
function
|
|
23255
|
+
function g_(a, t, o) {
|
|
23255
23256
|
const l = typeof a == "number" ? a : Number(a);
|
|
23256
23257
|
return isNaN(l) ? String(a) : `${l.toFixed(o)} ${t}`;
|
|
23257
23258
|
}
|
|
23258
|
-
function
|
|
23259
|
+
function M_(a, t, o) {
|
|
23259
23260
|
return a === !0 || a === 1 || a === "1" || a === "true" ? t : o;
|
|
23260
23261
|
}
|
|
23261
|
-
function
|
|
23262
|
+
function I_(a) {
|
|
23262
23263
|
const t = typeof a == "number" ? a : Number(a);
|
|
23263
23264
|
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`;
|
|
23264
23265
|
}
|
|
@@ -23371,31 +23372,31 @@ const qI = ne({
|
|
|
23371
23372
|
});
|
|
23372
23373
|
};
|
|
23373
23374
|
}
|
|
23374
|
-
}),
|
|
23375
|
+
}), w_ = { class: "admin-toolbar" }, x_ = { class: "admin-toolbar__row admin-toolbar__row--filters" }, b_ = { class: "admin-toolbar__search" }, L_ = ["placeholder"], C_ = {
|
|
23375
23376
|
key: 0,
|
|
23376
23377
|
class: "admin-toolbar__divider"
|
|
23377
|
-
},
|
|
23378
|
+
}, __ = {
|
|
23378
23379
|
type: "button",
|
|
23379
23380
|
class: "admin-toolbar__chip admin-toolbar__chip--active"
|
|
23380
|
-
},
|
|
23381
|
+
}, S_ = { class: "admin-toolbar__chip-text" }, q_ = ["aria-label", "onClick", "onKeydown"], A_ = { class: "admin-toolbar__popover-actions" }, z_ = {
|
|
23381
23382
|
type: "button",
|
|
23382
23383
|
class: "admin-toolbar__chip"
|
|
23383
|
-
},
|
|
23384
|
+
}, H_ = { class: "admin-toolbar__chip-text" }, V_ = { class: "admin-toolbar__popover-actions" }, P_ = {
|
|
23384
23385
|
type: "button",
|
|
23385
23386
|
class: "admin-toolbar__chip"
|
|
23386
|
-
},
|
|
23387
|
+
}, F_ = ["onClick"], j_ = {
|
|
23387
23388
|
key: 3,
|
|
23388
23389
|
class: "admin-toolbar__spacer admin-toolbar__spacer--actions"
|
|
23389
|
-
},
|
|
23390
|
+
}, D_ = {
|
|
23390
23391
|
type: "button",
|
|
23391
23392
|
class: "admin-toolbar__chip"
|
|
23392
|
-
},
|
|
23393
|
+
}, B_ = { class: "admin-toolbar__chip-text" }, R_ = ["onClick"], $_ = {
|
|
23393
23394
|
type: "button",
|
|
23394
23395
|
class: "admin-toolbar__chip"
|
|
23395
|
-
},
|
|
23396
|
+
}, T_ = { class: "admin-toolbar__chip-text" }, U_ = ["checked", "onChange"], O_ = {
|
|
23396
23397
|
type: "button",
|
|
23397
23398
|
class: "admin-toolbar__chip"
|
|
23398
|
-
},
|
|
23399
|
+
}, E_ = { class: "admin-toolbar__chip-text" }, Z_ = ["placeholder"], W_ = { class: "admin-toolbar__popover-actions" }, AI = 4, G_ = /* @__PURE__ */ ne({
|
|
23399
23400
|
__name: "AdminFilterToolbar",
|
|
23400
23401
|
props: {
|
|
23401
23402
|
search: {},
|
|
@@ -23508,9 +23509,9 @@ const qI = ne({
|
|
|
23508
23509
|
function R(_) {
|
|
23509
23510
|
return S9(_) ?? null;
|
|
23510
23511
|
}
|
|
23511
|
-
return (_, j) => (c(), h("div",
|
|
23512
|
-
u("div",
|
|
23513
|
-
u("label",
|
|
23512
|
+
return (_, j) => (c(), h("div", w_, [
|
|
23513
|
+
u("div", x_, [
|
|
23514
|
+
u("label", b_, [
|
|
23514
23515
|
w(n(ee), {
|
|
23515
23516
|
icon: n(z1),
|
|
23516
23517
|
size: 14,
|
|
@@ -23523,22 +23524,22 @@ const qI = ne({
|
|
|
23523
23524
|
class: "admin-toolbar__search-input",
|
|
23524
23525
|
onKeydown: A1(i, ["enter"]),
|
|
23525
23526
|
onBlur: i
|
|
23526
|
-
}, null, 40,
|
|
23527
|
+
}, null, 40, L_), [
|
|
23527
23528
|
[q1, r.value]
|
|
23528
23529
|
])
|
|
23529
23530
|
]),
|
|
23530
|
-
a.filters.length > 0 ? (c(), h("span",
|
|
23531
|
+
a.filters.length > 0 ? (c(), h("span", C_)) : H("", !0),
|
|
23531
23532
|
(c(!0), h(X, null, ae(d.value, (S) => (c(), z(n(je), {
|
|
23532
23533
|
key: `active-${S.name}`
|
|
23533
23534
|
}, {
|
|
23534
23535
|
trigger: x(() => [
|
|
23535
|
-
u("button",
|
|
23536
|
+
u("button", __, [
|
|
23536
23537
|
R(S.icon) !== null ? (c(), z(n(ee), {
|
|
23537
23538
|
key: 0,
|
|
23538
23539
|
icon: R(S.icon),
|
|
23539
23540
|
size: 14
|
|
23540
23541
|
}, null, 8, ["icon"])) : H("", !0),
|
|
23541
|
-
u("span",
|
|
23542
|
+
u("span", S_, y(C(S)), 1),
|
|
23542
23543
|
u("span", {
|
|
23543
23544
|
role: "button",
|
|
23544
23545
|
tabindex: "0",
|
|
@@ -23551,7 +23552,7 @@ const qI = ne({
|
|
|
23551
23552
|
icon: n(He),
|
|
23552
23553
|
size: 12
|
|
23553
23554
|
}, null, 8, ["icon"])
|
|
23554
|
-
], 40,
|
|
23555
|
+
], 40, q_)
|
|
23555
23556
|
])
|
|
23556
23557
|
]),
|
|
23557
23558
|
default: x(() => [
|
|
@@ -23567,7 +23568,7 @@ const qI = ne({
|
|
|
23567
23568
|
onToggleOption: (E) => V(S.name, E, S.multiple ?? !1),
|
|
23568
23569
|
onSetDraft: (E) => W(S.name, E)
|
|
23569
23570
|
}, null, 8, ["filter", "draft", "is-checked", "onToggleOption", "onSetDraft"]),
|
|
23570
|
-
u("div",
|
|
23571
|
+
u("div", A_, [
|
|
23571
23572
|
w(n(oe), {
|
|
23572
23573
|
size: "sm",
|
|
23573
23574
|
variant: "ghost",
|
|
@@ -23598,13 +23599,13 @@ const qI = ne({
|
|
|
23598
23599
|
key: `inactive-${S.name}`
|
|
23599
23600
|
}, {
|
|
23600
23601
|
trigger: x(() => [
|
|
23601
|
-
u("button",
|
|
23602
|
+
u("button", z_, [
|
|
23602
23603
|
R(S.icon) !== null ? (c(), z(n(ee), {
|
|
23603
23604
|
key: 0,
|
|
23604
23605
|
icon: R(S.icon),
|
|
23605
23606
|
size: 14
|
|
23606
23607
|
}, null, 8, ["icon"])) : H("", !0),
|
|
23607
|
-
u("span",
|
|
23608
|
+
u("span", H_, y(S.label), 1)
|
|
23608
23609
|
])
|
|
23609
23610
|
]),
|
|
23610
23611
|
default: x(() => [
|
|
@@ -23620,7 +23621,7 @@ const qI = ne({
|
|
|
23620
23621
|
onToggleOption: (E) => V(S.name, E, S.multiple ?? !1),
|
|
23621
23622
|
onSetDraft: (E) => W(S.name, E)
|
|
23622
23623
|
}, null, 8, ["filter", "draft", "is-checked", "onToggleOption", "onSetDraft"]),
|
|
23623
|
-
u("div",
|
|
23624
|
+
u("div", V_, [
|
|
23624
23625
|
w(n(oe), {
|
|
23625
23626
|
size: "sm",
|
|
23626
23627
|
variant: "ghost",
|
|
@@ -23649,7 +23650,7 @@ const qI = ne({
|
|
|
23649
23650
|
}, 1024))), 128)),
|
|
23650
23651
|
g.value.length > 0 ? (c(), z(n(je), { key: 1 }, {
|
|
23651
23652
|
trigger: x(() => [
|
|
23652
|
-
u("button",
|
|
23653
|
+
u("button", P_, [
|
|
23653
23654
|
w(n(ee), {
|
|
23654
23655
|
icon: n(Te),
|
|
23655
23656
|
size: 14
|
|
@@ -23676,7 +23677,7 @@ const qI = ne({
|
|
|
23676
23677
|
size: 14
|
|
23677
23678
|
}, null, 8, ["icon"])) : H("", !0),
|
|
23678
23679
|
D(" " + y(S.label), 1)
|
|
23679
|
-
], 8,
|
|
23680
|
+
], 8, F_))), 128))
|
|
23680
23681
|
], 32)
|
|
23681
23682
|
]),
|
|
23682
23683
|
_: 1
|
|
@@ -23699,15 +23700,15 @@ const qI = ne({
|
|
|
23699
23700
|
]),
|
|
23700
23701
|
_: 1
|
|
23701
23702
|
})) : H("", !0),
|
|
23702
|
-
P.value.length > 0 || a.columns.length > 0 || a.enableSavedViews ? (c(), h("span",
|
|
23703
|
+
P.value.length > 0 || a.columns.length > 0 || a.enableSavedViews ? (c(), h("span", j_)) : H("", !0),
|
|
23703
23704
|
P.value.length > 0 ? (c(), z(n(je), { key: 4 }, {
|
|
23704
23705
|
trigger: x(() => [
|
|
23705
|
-
u("button",
|
|
23706
|
+
u("button", D_, [
|
|
23706
23707
|
w(n(ee), {
|
|
23707
23708
|
icon: n(u2),
|
|
23708
23709
|
size: 14
|
|
23709
23710
|
}, null, 8, ["icon"]),
|
|
23710
|
-
u("span",
|
|
23711
|
+
u("span", B_, y(a.groupBy ? `Группа: ${O(a.columns.find((S) => F(S) === a.groupBy) ?? {})}` : n(v)("Группировать")), 1)
|
|
23711
23712
|
])
|
|
23712
23713
|
]),
|
|
23713
23714
|
default: x(() => [
|
|
@@ -23744,19 +23745,19 @@ const qI = ne({
|
|
|
23744
23745
|
size: 14
|
|
23745
23746
|
}, null, 8, ["icon"])) : H("", !0),
|
|
23746
23747
|
u("span", null, y(O(S)), 1)
|
|
23747
|
-
], 8,
|
|
23748
|
+
], 8, R_))), 128))
|
|
23748
23749
|
], 32)
|
|
23749
23750
|
]),
|
|
23750
23751
|
_: 1
|
|
23751
23752
|
})) : H("", !0),
|
|
23752
23753
|
a.columns.length > 0 ? (c(), z(n(je), { key: 5 }, {
|
|
23753
23754
|
trigger: x(() => [
|
|
23754
|
-
u("button",
|
|
23755
|
+
u("button", $_, [
|
|
23755
23756
|
w(n(ee), {
|
|
23756
23757
|
icon: n(x1),
|
|
23757
23758
|
size: 14
|
|
23758
23759
|
}, null, 8, ["icon"]),
|
|
23759
|
-
u("span",
|
|
23760
|
+
u("span", T_, y(n(v)("Колонки")), 1)
|
|
23760
23761
|
])
|
|
23761
23762
|
]),
|
|
23762
23763
|
default: x(() => [
|
|
@@ -23773,7 +23774,7 @@ const qI = ne({
|
|
|
23773
23774
|
type: "checkbox",
|
|
23774
23775
|
checked: G(S),
|
|
23775
23776
|
onChange: (E) => te(S)
|
|
23776
|
-
}, null, 40,
|
|
23777
|
+
}, null, 40, U_),
|
|
23777
23778
|
u("span", null, y(O(S)), 1)
|
|
23778
23779
|
]))), 128))
|
|
23779
23780
|
], 32)
|
|
@@ -23782,12 +23783,12 @@ const qI = ne({
|
|
|
23782
23783
|
})) : H("", !0),
|
|
23783
23784
|
a.enableSavedViews ? (c(), z(n(je), { key: 6 }, {
|
|
23784
23785
|
trigger: x(() => [
|
|
23785
|
-
u("button",
|
|
23786
|
+
u("button", O_, [
|
|
23786
23787
|
w(n(ee), {
|
|
23787
23788
|
icon: n(ao),
|
|
23788
23789
|
size: 14
|
|
23789
23790
|
}, null, 8, ["icon"]),
|
|
23790
|
-
u("span",
|
|
23791
|
+
u("span", E_, y(n(v)("Сохранить")), 1)
|
|
23791
23792
|
])
|
|
23792
23793
|
]),
|
|
23793
23794
|
default: x(() => [
|
|
@@ -23803,10 +23804,10 @@ const qI = ne({
|
|
|
23803
23804
|
class: "admin-toolbar__input",
|
|
23804
23805
|
onKeydown: j[9] || (j[9] = A1((S) => J(() => {
|
|
23805
23806
|
}), ["enter"]))
|
|
23806
|
-
}, null, 40,
|
|
23807
|
+
}, null, 40, Z_), [
|
|
23807
23808
|
[q1, Z.value]
|
|
23808
23809
|
]),
|
|
23809
|
-
u("div",
|
|
23810
|
+
u("div", W_, [
|
|
23810
23811
|
w(n(oe), {
|
|
23811
23812
|
size: "sm",
|
|
23812
23813
|
variant: "primary",
|
|
@@ -23827,7 +23828,7 @@ const qI = ne({
|
|
|
23827
23828
|
])
|
|
23828
23829
|
]));
|
|
23829
23830
|
}
|
|
23830
|
-
}),
|
|
23831
|
+
}), N_ = ["title"], X_ = ["disabled"], K_ = ["disabled"], J_ = ["disabled"], Y_ = ["value"], Q_ = ["disabled"], eS = ["disabled"], iw = /* @__PURE__ */ ne({
|
|
23831
23832
|
__name: "InlineEditCell",
|
|
23832
23833
|
props: {
|
|
23833
23834
|
resourceSlug: {},
|
|
@@ -23899,7 +23900,7 @@ const qI = ne({
|
|
|
23899
23900
|
onBlur: g,
|
|
23900
23901
|
onClick: f[1] || (f[1] = me(() => {
|
|
23901
23902
|
}, ["stop"]))
|
|
23902
|
-
}, null, 40,
|
|
23903
|
+
}, null, 40, X_)), [
|
|
23903
23904
|
[q1, i.value]
|
|
23904
23905
|
]) : a.inputType === "date" ? s1((c(), h("input", {
|
|
23905
23906
|
key: 2,
|
|
@@ -23913,7 +23914,7 @@ const qI = ne({
|
|
|
23913
23914
|
onBlur: g,
|
|
23914
23915
|
onClick: f[3] || (f[3] = me(() => {
|
|
23915
23916
|
}, ["stop"]))
|
|
23916
|
-
}, null, 40,
|
|
23917
|
+
}, null, 40, K_)), [
|
|
23917
23918
|
[q1, i.value]
|
|
23918
23919
|
]) : a.inputType === "select" ? s1((c(), h("select", {
|
|
23919
23920
|
key: 3,
|
|
@@ -23931,8 +23932,8 @@ const qI = ne({
|
|
|
23931
23932
|
(c(!0), h(X, null, ae(M.value, (q) => (c(), h("option", {
|
|
23932
23933
|
key: q.value,
|
|
23933
23934
|
value: q.value
|
|
23934
|
-
}, y(q.label), 9,
|
|
23935
|
-
], 40,
|
|
23935
|
+
}, y(q.label), 9, Y_))), 128))
|
|
23936
|
+
], 40, J_)), [
|
|
23936
23937
|
[Pw, i.value]
|
|
23937
23938
|
]) : a.inputType === "textarea" ? s1((c(), h("textarea", {
|
|
23938
23939
|
key: 4,
|
|
@@ -23946,7 +23947,7 @@ const qI = ne({
|
|
|
23946
23947
|
onBlur: g,
|
|
23947
23948
|
onClick: f[7] || (f[7] = me(() => {
|
|
23948
23949
|
}, ["stop"]))
|
|
23949
|
-
}, null, 40,
|
|
23950
|
+
}, null, 40, Q_)), [
|
|
23950
23951
|
[q1, i.value]
|
|
23951
23952
|
]) : s1((c(), h("input", {
|
|
23952
23953
|
key: 5,
|
|
@@ -23960,7 +23961,7 @@ const qI = ne({
|
|
|
23960
23961
|
onBlur: g,
|
|
23961
23962
|
onClick: f[9] || (f[9] = me(() => {
|
|
23962
23963
|
}, ["stop"]))
|
|
23963
|
-
}, null, 40,
|
|
23964
|
+
}, null, 40, eS)), [
|
|
23964
23965
|
[q1, i.value]
|
|
23965
23966
|
]) : (c(), h("span", {
|
|
23966
23967
|
key: 0,
|
|
@@ -23971,16 +23972,16 @@ const qI = ne({
|
|
|
23971
23972
|
ze(C.$slots, "default", {}, () => [
|
|
23972
23973
|
D(y(a.value), 1)
|
|
23973
23974
|
])
|
|
23974
|
-
], 42,
|
|
23975
|
+
], 42, N_))
|
|
23975
23976
|
], 64));
|
|
23976
23977
|
}
|
|
23977
|
-
}),
|
|
23978
|
+
}), aS = { class: "admin-resource-tree-page" }, tS = { class: "admin-resource-tree-page__header" }, nS = { class: "admin-resource-tree-page__title" }, oS = {
|
|
23978
23979
|
key: 0,
|
|
23979
23980
|
class: "admin-resource-tree-page__count"
|
|
23980
|
-
},
|
|
23981
|
+
}, cS = {
|
|
23981
23982
|
key: 0,
|
|
23982
23983
|
class: "admin-resource-tree-page__subtitle"
|
|
23983
|
-
},
|
|
23984
|
+
}, iS = { class: "admin-resource-tree-page__actions" }, lS = { class: "admin-resource-tree-page__toolbar" }, rS = { class: "admin-resource-tree-page__selection-label" }, dS = { class: "admin-resource-tree-page__body" }, sS = /* @__PURE__ */ ne({
|
|
23984
23985
|
__name: "ResourceTreePage",
|
|
23985
23986
|
props: {
|
|
23986
23987
|
slug: {},
|
|
@@ -24083,16 +24084,16 @@ const qI = ne({
|
|
|
24083
24084
|
j !== null && clearTimeout(j), j = setTimeout(() => {
|
|
24084
24085
|
f();
|
|
24085
24086
|
}, 300);
|
|
24086
|
-
}), Oe(f), (S, E) => (c(), h("div",
|
|
24087
|
-
u("header",
|
|
24087
|
+
}), Oe(f), (S, E) => (c(), h("div", aS, [
|
|
24088
|
+
u("header", tS, [
|
|
24088
24089
|
u("div", null, [
|
|
24089
|
-
u("h1",
|
|
24090
|
+
u("h1", nS, [
|
|
24090
24091
|
D(y(b.value) + " ", 1),
|
|
24091
|
-
s.value > 0 ? (c(), h("span",
|
|
24092
|
+
s.value > 0 ? (c(), h("span", oS, y(s.value), 1)) : H("", !0)
|
|
24092
24093
|
]),
|
|
24093
|
-
L.value ? (c(), h("p",
|
|
24094
|
+
L.value ? (c(), h("p", cS, y(L.value), 1)) : H("", !0)
|
|
24094
24095
|
]),
|
|
24095
|
-
u("div",
|
|
24096
|
+
u("div", iS, [
|
|
24096
24097
|
M.value ? (c(), z(n(oe), {
|
|
24097
24098
|
key: 0,
|
|
24098
24099
|
variant: "primary",
|
|
@@ -24106,7 +24107,7 @@ const qI = ne({
|
|
|
24106
24107
|
})) : H("", !0)
|
|
24107
24108
|
])
|
|
24108
24109
|
]),
|
|
24109
|
-
u("div",
|
|
24110
|
+
u("div", lS, [
|
|
24110
24111
|
w(n(Le), {
|
|
24111
24112
|
modelValue: m.value,
|
|
24112
24113
|
"onUpdate:modelValue": E[0] || (E[0] = (ce) => m.value = ce),
|
|
@@ -24145,7 +24146,7 @@ const qI = ne({
|
|
|
24145
24146
|
class: "admin-resource-tree-page__selection-divider",
|
|
24146
24147
|
"aria-hidden": "true"
|
|
24147
24148
|
}, "|", -1)),
|
|
24148
|
-
u("span",
|
|
24149
|
+
u("span", rS, y(P.value?.label ?? V.value), 1),
|
|
24149
24150
|
w(n(oe), {
|
|
24150
24151
|
variant: "ghost",
|
|
24151
24152
|
onClick: te
|
|
@@ -24198,7 +24199,7 @@ const qI = ne({
|
|
|
24198
24199
|
})
|
|
24199
24200
|
], 64)) : H("", !0)
|
|
24200
24201
|
]),
|
|
24201
|
-
u("div",
|
|
24202
|
+
u("div", dS, [
|
|
24202
24203
|
d.value && i.value.length === 0 ? (c(), h(X, { key: 0 }, ae(6, (ce) => w(n(Re), { key: ce })), 64)) : p.value ? (c(), z(n(sI), {
|
|
24203
24204
|
key: 1,
|
|
24204
24205
|
message: p.value.message,
|
|
@@ -24226,37 +24227,37 @@ const qI = ne({
|
|
|
24226
24227
|
for (const [l, r] of t)
|
|
24227
24228
|
o[l] = r;
|
|
24228
24229
|
return o;
|
|
24229
|
-
},
|
|
24230
|
+
}, hS = /* @__PURE__ */ a1(sS, [["__scopeId", "data-v-80b2213a"]]), uS = {
|
|
24230
24231
|
key: 1,
|
|
24231
24232
|
class: "admin-page admin-resource-index"
|
|
24232
|
-
},
|
|
24233
|
+
}, yS = { class: "admin-page__hd" }, pS = { class: "admin-page__title-wrap" }, kS = { class: "admin-page__title-row" }, mS = { class: "admin-page__title" }, vS = {
|
|
24233
24234
|
key: 0,
|
|
24234
24235
|
class: "admin-page__live",
|
|
24235
24236
|
role: "status"
|
|
24236
|
-
},
|
|
24237
|
+
}, fS = {
|
|
24237
24238
|
key: 0,
|
|
24238
24239
|
class: "admin-page__count"
|
|
24239
|
-
},
|
|
24240
|
+
}, gS = { class: "admin-page__actions" }, MS = { class: "admin-page__view-row" }, IS = { class: "admin-page__view-name" }, wS = {
|
|
24240
24241
|
key: 0,
|
|
24241
24242
|
class: "admin-page__view-badge"
|
|
24242
|
-
},
|
|
24243
|
+
}, xS = ["aria-label", "onClick"], bS = {
|
|
24243
24244
|
key: 0,
|
|
24244
24245
|
class: "admin-bulk-toolbar",
|
|
24245
24246
|
"data-testid": "bulk-bar",
|
|
24246
24247
|
role: "toolbar"
|
|
24247
|
-
},
|
|
24248
|
+
}, LS = { class: "admin-bulk-toolbar__count" }, CS = {
|
|
24248
24249
|
key: 2,
|
|
24249
24250
|
class: "admin-resource-index__loading"
|
|
24250
|
-
},
|
|
24251
|
+
}, _S = {
|
|
24251
24252
|
key: 5,
|
|
24252
24253
|
class: "admin-resource-index__table"
|
|
24253
|
-
},
|
|
24254
|
+
}, SS = ["draggable", "title", "onDragstart", "onDragover", "onDrop"], qS = {
|
|
24254
24255
|
key: 1,
|
|
24255
24256
|
class: "admin-resource-index__row-actions"
|
|
24256
|
-
},
|
|
24257
|
+
}, 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 = {
|
|
24257
24258
|
key: 6,
|
|
24258
24259
|
class: "admin-resource-index__footer"
|
|
24259
|
-
}, zI = "__row_actions__", HI = "__row_reorder__",
|
|
24260
|
+
}, zI = "__row_actions__", HI = "__row_reorder__", RS = /* @__PURE__ */ ne({
|
|
24260
24261
|
__name: "ResourceIndexPage",
|
|
24261
24262
|
props: {
|
|
24262
24263
|
slug: {},
|
|
@@ -24749,17 +24750,17 @@ const qI = ne({
|
|
|
24749
24750
|
await d.load().catch(() => {
|
|
24750
24751
|
});
|
|
24751
24752
|
}
|
|
24752
|
-
return ($, N) => g.value?.view_mode === "tree" ? (c(), z(
|
|
24753
|
+
return ($, N) => g.value?.view_mode === "tree" ? (c(), z(hS, {
|
|
24753
24754
|
key: 0,
|
|
24754
24755
|
slug: a.slug,
|
|
24755
24756
|
title: a.title,
|
|
24756
24757
|
subtitle: a.subtitle
|
|
24757
|
-
}, null, 8, ["slug", "title", "subtitle"])) : (c(), h("section",
|
|
24758
|
-
u("header",
|
|
24759
|
-
u("div",
|
|
24760
|
-
u("div",
|
|
24761
|
-
u("h1",
|
|
24762
|
-
P1.value ? (c(), h("span",
|
|
24758
|
+
}, null, 8, ["slug", "title", "subtitle"])) : (c(), h("section", uS, [
|
|
24759
|
+
u("header", yS, [
|
|
24760
|
+
u("div", pS, [
|
|
24761
|
+
u("div", kS, [
|
|
24762
|
+
u("h1", mS, y(b.value), 1),
|
|
24763
|
+
P1.value ? (c(), h("span", vS, [
|
|
24763
24764
|
N[3] || (N[3] = u("span", {
|
|
24764
24765
|
class: "admin-page__live-dot",
|
|
24765
24766
|
"aria-hidden": "true"
|
|
@@ -24767,7 +24768,7 @@ const qI = ne({
|
|
|
24767
24768
|
D(" " + y(P1.value), 1)
|
|
24768
24769
|
])) : H("", !0)
|
|
24769
24770
|
]),
|
|
24770
|
-
a.subtitle || le.value ? (c(), h("div",
|
|
24771
|
+
a.subtitle || le.value ? (c(), h("div", fS, [
|
|
24771
24772
|
a.subtitle ? (c(), h(X, { key: 0 }, [
|
|
24772
24773
|
D(y(a.subtitle), 1)
|
|
24773
24774
|
], 64)) : H("", !0),
|
|
@@ -24779,7 +24780,7 @@ const qI = ne({
|
|
|
24779
24780
|
], 64)) : H("", !0)
|
|
24780
24781
|
])) : H("", !0)
|
|
24781
24782
|
]),
|
|
24782
|
-
u("div",
|
|
24783
|
+
u("div", gS, [
|
|
24783
24784
|
ze($.$slots, "actions"),
|
|
24784
24785
|
Z.value ? (c(), z(n(je), { key: 0 }, {
|
|
24785
24786
|
trigger: x(() => [
|
|
@@ -24818,10 +24819,10 @@ const qI = ne({
|
|
|
24818
24819
|
onClick: (Q) => X2(K)
|
|
24819
24820
|
}, {
|
|
24820
24821
|
default: x(() => [
|
|
24821
|
-
u("span",
|
|
24822
|
-
u("span",
|
|
24822
|
+
u("span", MS, [
|
|
24823
|
+
u("span", IS, [
|
|
24823
24824
|
D(y(K.name) + " ", 1),
|
|
24824
|
-
K.is_default ? (c(), h("span",
|
|
24825
|
+
K.is_default ? (c(), h("span", wS, "default")) : H("", !0)
|
|
24825
24826
|
]),
|
|
24826
24827
|
K.owned ? (c(), h("button", {
|
|
24827
24828
|
key: 0,
|
|
@@ -24834,7 +24835,7 @@ const qI = ne({
|
|
|
24834
24835
|
icon: n(Ue),
|
|
24835
24836
|
size: 12
|
|
24836
24837
|
}, null, 8, ["icon"])
|
|
24837
|
-
], 8,
|
|
24838
|
+
], 8, xS)) : H("", !0)
|
|
24838
24839
|
])
|
|
24839
24840
|
]),
|
|
24840
24841
|
_: 2
|
|
@@ -24933,8 +24934,8 @@ const qI = ne({
|
|
|
24933
24934
|
})) : H("", !0)
|
|
24934
24935
|
])
|
|
24935
24936
|
]),
|
|
24936
|
-
n(d).hasSelection ? (c(), h("div",
|
|
24937
|
-
u("span",
|
|
24937
|
+
n(d).hasSelection ? (c(), h("div", bS, [
|
|
24938
|
+
u("span", LS, [
|
|
24938
24939
|
N[4] || (N[4] = D(" Выбрано ", -1)),
|
|
24939
24940
|
u("b", null, y(n(d).selectedCount), 1)
|
|
24940
24941
|
]),
|
|
@@ -24983,7 +24984,7 @@ const qI = ne({
|
|
|
24983
24984
|
]),
|
|
24984
24985
|
_: 1
|
|
24985
24986
|
}, 8, ["onClick"])
|
|
24986
|
-
])) : Ce.value ? (c(), z(
|
|
24987
|
+
])) : Ce.value ? (c(), z(G_, {
|
|
24987
24988
|
key: 1,
|
|
24988
24989
|
search: n(d).search,
|
|
24989
24990
|
"search-placeholder": io.value,
|
|
@@ -25008,7 +25009,7 @@ const qI = ne({
|
|
|
25008
25009
|
]),
|
|
25009
25010
|
_: 3
|
|
25010
25011
|
}, 8, ["search", "search-placeholder", "filters", "values", "columns", "group-by", "column-visibility", "enable-saved-views"])) : H("", !0),
|
|
25011
|
-
n(d).loading && n(d).items.length === 0 ? (c(), h("div",
|
|
25012
|
+
n(d).loading && n(d).items.length === 0 ? (c(), h("div", CS, [
|
|
25012
25013
|
n(d).slowLoading ? (c(), h(X, { key: 0 }, ae(8, (K) => w(n(Re), {
|
|
25013
25014
|
key: K,
|
|
25014
25015
|
height: "40px"
|
|
@@ -25050,7 +25051,7 @@ const qI = ne({
|
|
|
25050
25051
|
})) : H("", !0)
|
|
25051
25052
|
]),
|
|
25052
25053
|
_: 1
|
|
25053
|
-
}, 8, ["title", "description"])) : (c(), h("div",
|
|
25054
|
+
}, 8, ["title", "description"])) : (c(), h("div", _S, [
|
|
25054
25055
|
w(n(Lo), {
|
|
25055
25056
|
columns: j.value,
|
|
25056
25057
|
data: n(d).items,
|
|
@@ -25098,7 +25099,7 @@ const qI = ne({
|
|
|
25098
25099
|
icon: n(mo),
|
|
25099
25100
|
size: 14
|
|
25100
25101
|
}, null, 8, ["icon"])
|
|
25101
|
-
], 42,
|
|
25102
|
+
], 42, SS)) : K.key === zI ? (c(), h("div", qS, [
|
|
25102
25103
|
u("button", {
|
|
25103
25104
|
type: "button",
|
|
25104
25105
|
class: "admin-resource-index__row-action",
|
|
@@ -25109,7 +25110,7 @@ const qI = ne({
|
|
|
25109
25110
|
icon: n(Xo),
|
|
25110
25111
|
size: 16
|
|
25111
25112
|
}, null, 8, ["icon"])
|
|
25112
|
-
], 8,
|
|
25113
|
+
], 8, AS),
|
|
25113
25114
|
Cw(de(Q) ?? {}) ? (c(), h(X, { key: 1 }, [
|
|
25114
25115
|
u("button", {
|
|
25115
25116
|
type: "button",
|
|
@@ -25121,7 +25122,7 @@ const qI = ne({
|
|
|
25121
25122
|
icon: n(no),
|
|
25122
25123
|
size: 16
|
|
25123
25124
|
}, null, 8, ["icon"])
|
|
25124
|
-
], 8,
|
|
25125
|
+
], 8, VS),
|
|
25125
25126
|
u("button", {
|
|
25126
25127
|
type: "button",
|
|
25127
25128
|
class: "admin-resource-index__row-action admin-resource-index__row-action--danger",
|
|
@@ -25132,7 +25133,7 @@ const qI = ne({
|
|
|
25132
25133
|
icon: n(Ue),
|
|
25133
25134
|
size: 16
|
|
25134
25135
|
}, null, 8, ["icon"])
|
|
25135
|
-
], 8,
|
|
25136
|
+
], 8, PS)
|
|
25136
25137
|
], 64)) : (c(), h(X, { key: 0 }, [
|
|
25137
25138
|
te.value ? (c(), h("button", {
|
|
25138
25139
|
key: 0,
|
|
@@ -25145,7 +25146,7 @@ const qI = ne({
|
|
|
25145
25146
|
icon: n(u1),
|
|
25146
25147
|
size: 16
|
|
25147
25148
|
}, null, 8, ["icon"])
|
|
25148
|
-
], 8,
|
|
25149
|
+
], 8, zS)) : H("", !0),
|
|
25149
25150
|
te.value ? (c(), h("button", {
|
|
25150
25151
|
key: 1,
|
|
25151
25152
|
type: "button",
|
|
@@ -25157,7 +25158,7 @@ const qI = ne({
|
|
|
25157
25158
|
icon: n(Ue),
|
|
25158
25159
|
size: 16
|
|
25159
25160
|
}, null, 8, ["icon"])
|
|
25160
|
-
], 8,
|
|
25161
|
+
], 8, HS)) : H("", !0)
|
|
25161
25162
|
], 64))
|
|
25162
25163
|
])) : ze($.$slots, `cell-${K.key}`, {
|
|
25163
25164
|
key: 2,
|
|
@@ -25179,7 +25180,7 @@ const qI = ne({
|
|
|
25179
25180
|
}
|
|
25180
25181
|
}, {
|
|
25181
25182
|
default: x(() => [
|
|
25182
|
-
u("span",
|
|
25183
|
+
u("span", FS, y(ye(K.key, Q)), 1)
|
|
25183
25184
|
]),
|
|
25184
25185
|
_: 2
|
|
25185
25186
|
}, 1032, ["resource-slug", "row-id", "column", "value", "input-type", "options", "row-override", "onSaved"])) : xe(K.key) && ue(K.key, Q) ? (c(), h("a", {
|
|
@@ -25189,17 +25190,17 @@ const qI = ne({
|
|
|
25189
25190
|
target: ke(K.key),
|
|
25190
25191
|
rel: "noopener",
|
|
25191
25192
|
title: ye(K.key, Q)
|
|
25192
|
-
}, y(ye(K.key, Q)), 9,
|
|
25193
|
+
}, y(ye(K.key, Q)), 9, jS)) : (c(), h("span", {
|
|
25193
25194
|
key: 2,
|
|
25194
25195
|
class: "admin-cell-truncate",
|
|
25195
25196
|
title: ye(K.key, Q)
|
|
25196
|
-
}, y(ye(K.key, Q)), 9,
|
|
25197
|
+
}, y(ye(K.key, Q)), 9, DS))
|
|
25197
25198
|
])
|
|
25198
25199
|
])
|
|
25199
25200
|
}))
|
|
25200
25201
|
]), 1032, ["columns", "data", "sort-key", "sort-direction", "selection", "row-key"])
|
|
25201
25202
|
])),
|
|
25202
|
-
!n(d).loading && !n(d).hasError && !n(d).isEmpty ? (c(), h("footer",
|
|
25203
|
+
!n(d).loading && !n(d).hasError && !n(d).isEmpty ? (c(), h("footer", BS, [
|
|
25203
25204
|
w(n(Jw), {
|
|
25204
25205
|
"model-value": n(d).meta.page,
|
|
25205
25206
|
total: n(d).meta.total,
|
|
@@ -25361,13 +25362,13 @@ const qI = ne({
|
|
|
25361
25362
|
_: 1
|
|
25362
25363
|
}, 8, ["gap"]));
|
|
25363
25364
|
}
|
|
25364
|
-
}),
|
|
25365
|
+
}), $S = { class: "admin-page admin-resource-form" }, TS = { class: "admin-page__hd" }, US = { class: "admin-page__title-wrap" }, OS = { class: "admin-page__title" }, ES = { class: "admin-page__actions" }, ZS = { class: "admin-resource-form__notfound-title" }, WS = { class: "admin-resource-form__notfound-hint" }, GS = {
|
|
25365
25366
|
key: 1,
|
|
25366
25367
|
class: "admin-resource-form__loading"
|
|
25367
|
-
},
|
|
25368
|
+
}, NS = {
|
|
25368
25369
|
key: 2,
|
|
25369
25370
|
class: "admin-resource-form__savebar"
|
|
25370
|
-
},
|
|
25371
|
+
}, XS = { class: "admin-resource-form__savebar-hint" }, VI = /* @__PURE__ */ ne({
|
|
25371
25372
|
__name: "ResourceFormPage",
|
|
25372
25373
|
props: {
|
|
25373
25374
|
slug: {},
|
|
@@ -25466,14 +25467,14 @@ const qI = ne({
|
|
|
25466
25467
|
o.isDirty && !confirm(v("Несохранённые изменения будут потеряны. Продолжить?")) || r.push({ name: q.value }).catch(() => {
|
|
25467
25468
|
});
|
|
25468
25469
|
}
|
|
25469
|
-
return (V, T) => (c(), h("section",
|
|
25470
|
-
u("header",
|
|
25471
|
-
u("div",
|
|
25470
|
+
return (V, T) => (c(), h("section", $S, [
|
|
25471
|
+
u("header", TS, [
|
|
25472
|
+
u("div", US, [
|
|
25472
25473
|
u("a", {
|
|
25473
25474
|
class: "admin-resource-form__back",
|
|
25474
25475
|
onClick: U
|
|
25475
25476
|
}, y(n(v)("← Назад")), 1),
|
|
25476
|
-
u("h1",
|
|
25477
|
+
u("h1", OS, y(L.value), 1),
|
|
25477
25478
|
M.value ? (c(), z(n(uI), {
|
|
25478
25479
|
key: 0,
|
|
25479
25480
|
variant: C.value
|
|
@@ -25484,7 +25485,7 @@ const qI = ne({
|
|
|
25484
25485
|
_: 1
|
|
25485
25486
|
}, 8, ["variant"])) : H("", !0)
|
|
25486
25487
|
]),
|
|
25487
|
-
u("div",
|
|
25488
|
+
u("div", ES, [
|
|
25488
25489
|
w(n(oe), {
|
|
25489
25490
|
variant: "ghost",
|
|
25490
25491
|
disabled: n(o).saving || n(o).deleting,
|
|
@@ -25529,8 +25530,8 @@ const qI = ne({
|
|
|
25529
25530
|
class: "admin-resource-form__notfound"
|
|
25530
25531
|
}, {
|
|
25531
25532
|
default: x(() => [
|
|
25532
|
-
u("p",
|
|
25533
|
-
u("p",
|
|
25533
|
+
u("p", ZS, y(n(v)("Запись не найдена")), 1),
|
|
25534
|
+
u("p", WS, y(n(v)("Возможно, она была удалена. Вернитесь к списку.")), 1),
|
|
25534
25535
|
w(n(oe), {
|
|
25535
25536
|
variant: "primary",
|
|
25536
25537
|
size: "sm",
|
|
@@ -25555,7 +25556,7 @@ const qI = ne({
|
|
|
25555
25556
|
]),
|
|
25556
25557
|
_: 1
|
|
25557
25558
|
})) : H("", !0),
|
|
25558
|
-
n(o).loading ? (c(), h("div",
|
|
25559
|
+
n(o).loading ? (c(), h("div", GS, [
|
|
25559
25560
|
(c(), h(X, null, ae(6, (P) => w(n(Re), {
|
|
25560
25561
|
key: P,
|
|
25561
25562
|
height: "40px"
|
|
@@ -25571,8 +25572,8 @@ const qI = ne({
|
|
|
25571
25572
|
_: 1
|
|
25572
25573
|
}))
|
|
25573
25574
|
], 64)),
|
|
25574
|
-
n(o).isDirty && !n(o).loading && !m.value ? (c(), h("div",
|
|
25575
|
-
u("span",
|
|
25575
|
+
n(o).isDirty && !n(o).loading && !m.value ? (c(), h("div", NS, [
|
|
25576
|
+
u("span", XS, y(n(v)("Есть несохранённые изменения")), 1),
|
|
25576
25577
|
w(n(oe), {
|
|
25577
25578
|
variant: "ghost",
|
|
25578
25579
|
size: "sm",
|
|
@@ -25598,7 +25599,7 @@ const qI = ne({
|
|
|
25598
25599
|
])) : H("", !0)
|
|
25599
25600
|
]));
|
|
25600
25601
|
}
|
|
25601
|
-
}), qo = B9(),
|
|
25602
|
+
}), qo = B9(), JF = qo.register, tI = qo.get, YF = qo.has, QF = qo.list, ej = qo.clear, KS = qo.registerBundle, JS = /* @__PURE__ */ ne({
|
|
25602
25603
|
__name: "UnknownEntry",
|
|
25603
25604
|
props: {
|
|
25604
25605
|
type: {},
|
|
@@ -25617,34 +25618,34 @@ const qI = ne({
|
|
|
25617
25618
|
_: 1
|
|
25618
25619
|
}));
|
|
25619
25620
|
}
|
|
25620
|
-
}),
|
|
25621
|
+
}), YS = {
|
|
25621
25622
|
key: 0,
|
|
25622
25623
|
class: "admin-infolist-entry"
|
|
25623
|
-
},
|
|
25624
|
+
}, QS = { class: "admin-infolist-entry__label" }, eq = {
|
|
25624
25625
|
key: 2,
|
|
25625
25626
|
class: "admin-infolist-rows"
|
|
25626
|
-
},
|
|
25627
|
+
}, aq = {
|
|
25627
25628
|
key: 3,
|
|
25628
25629
|
class: "admin-infolist-cols"
|
|
25629
|
-
},
|
|
25630
|
+
}, tq = {
|
|
25630
25631
|
key: 4,
|
|
25631
25632
|
class: "admin-infolist-section"
|
|
25632
|
-
},
|
|
25633
|
+
}, nq = {
|
|
25633
25634
|
key: 0,
|
|
25634
25635
|
class: "admin-infolist-section__hd"
|
|
25635
|
-
},
|
|
25636
|
+
}, oq = {
|
|
25636
25637
|
key: 0,
|
|
25637
25638
|
class: "admin-infolist-section__title"
|
|
25638
|
-
},
|
|
25639
|
+
}, cq = {
|
|
25639
25640
|
key: 1,
|
|
25640
25641
|
class: "admin-infolist-section__description"
|
|
25641
|
-
},
|
|
25642
|
+
}, iq = { class: "admin-infolist-section__body" }, lq = {
|
|
25642
25643
|
key: 5,
|
|
25643
25644
|
class: "admin-infolist-tabs"
|
|
25644
|
-
},
|
|
25645
|
+
}, rq = {
|
|
25645
25646
|
class: "admin-infolist-tabs__list",
|
|
25646
25647
|
role: "tablist"
|
|
25647
|
-
},
|
|
25648
|
+
}, dq = { class: "admin-infolist-tabs__panel" }, sq = /* @__PURE__ */ ne({
|
|
25648
25649
|
__name: "InfolistRenderer",
|
|
25649
25650
|
props: {
|
|
25650
25651
|
node: {}
|
|
@@ -25674,15 +25675,15 @@ const qI = ne({
|
|
|
25674
25675
|
}), m = I(() => t.node.items ?? []);
|
|
25675
25676
|
return (k, g) => {
|
|
25676
25677
|
const b = z9("InfolistRenderer", !0);
|
|
25677
|
-
return l.value.kind === "entry" && a.node.label ? (c(), h("div",
|
|
25678
|
-
u("span",
|
|
25678
|
+
return l.value.kind === "entry" && a.node.label ? (c(), h("div", YS, [
|
|
25679
|
+
u("span", QS, y(a.node.label), 1),
|
|
25679
25680
|
(c(), z($e(l.value.component), U2(Fw(r.value)), null, 16))
|
|
25680
|
-
])) : l.value.kind === "entry" ? (c(), z($e(l.value.component), U2(Qn({ key: 1 }, r.value)), null, 16)) : l.value.kind === "layout" && l.value.layoutType === "rows" ? (c(), h("div",
|
|
25681
|
+
])) : l.value.kind === "entry" ? (c(), z($e(l.value.component), U2(Qn({ key: 1 }, r.value)), null, 16)) : l.value.kind === "layout" && l.value.layoutType === "rows" ? (c(), h("div", eq, [
|
|
25681
25682
|
(c(!0), h(X, null, ae(i.value, (L, M) => (c(), z(b, {
|
|
25682
25683
|
key: M,
|
|
25683
25684
|
node: L
|
|
25684
25685
|
}, null, 8, ["node"]))), 128))
|
|
25685
|
-
])) : l.value.kind === "layout" && l.value.layoutType === "columns" ? (c(), h("div",
|
|
25686
|
+
])) : l.value.kind === "layout" && l.value.layoutType === "columns" ? (c(), h("div", aq, [
|
|
25686
25687
|
(c(!0), h(X, null, ae(i.value, (L, M) => (c(), h("div", {
|
|
25687
25688
|
key: M,
|
|
25688
25689
|
class: "admin-infolist-cols__item",
|
|
@@ -25692,19 +25693,19 @@ const qI = ne({
|
|
|
25692
25693
|
}, [
|
|
25693
25694
|
w(b, { node: L }, null, 8, ["node"])
|
|
25694
25695
|
], 4))), 128))
|
|
25695
|
-
])) : l.value.kind === "layout" && (l.value.layoutType === "section" || l.value.layoutType === "block") ? (c(), h("section",
|
|
25696
|
-
s.value || d.value ? (c(), h("header",
|
|
25697
|
-
s.value ? (c(), h("h3",
|
|
25698
|
-
d.value ? (c(), h("p",
|
|
25696
|
+
])) : l.value.kind === "layout" && (l.value.layoutType === "section" || l.value.layoutType === "block") ? (c(), h("section", tq, [
|
|
25697
|
+
s.value || d.value ? (c(), h("header", nq, [
|
|
25698
|
+
s.value ? (c(), h("h3", oq, y(s.value), 1)) : H("", !0),
|
|
25699
|
+
d.value ? (c(), h("p", cq, y(d.value), 1)) : H("", !0)
|
|
25699
25700
|
])) : H("", !0),
|
|
25700
|
-
u("div",
|
|
25701
|
+
u("div", iq, [
|
|
25701
25702
|
(c(!0), h(X, null, ae(i.value, (L, M) => (c(), z(b, {
|
|
25702
25703
|
key: M,
|
|
25703
25704
|
node: L
|
|
25704
25705
|
}, null, 8, ["node"]))), 128))
|
|
25705
25706
|
])
|
|
25706
|
-
])) : l.value.kind === "layout" && l.value.layoutType === "tabs" ? (c(), h("div",
|
|
25707
|
-
u("ul",
|
|
25707
|
+
])) : l.value.kind === "layout" && l.value.layoutType === "tabs" ? (c(), h("div", lq, [
|
|
25708
|
+
u("ul", rq, [
|
|
25708
25709
|
(c(!0), h(X, null, ae(m.value, (L, M) => (c(), h("li", {
|
|
25709
25710
|
key: L.key ?? M,
|
|
25710
25711
|
class: fe([
|
|
@@ -25713,44 +25714,44 @@ const qI = ne({
|
|
|
25713
25714
|
])
|
|
25714
25715
|
}, y(L.label), 3))), 128))
|
|
25715
25716
|
]),
|
|
25716
|
-
u("div",
|
|
25717
|
+
u("div", dq, [
|
|
25717
25718
|
(c(!0), h(X, null, ae(m.value[p.value]?.items ?? [], (L, M) => (c(), z(b, {
|
|
25718
25719
|
key: M,
|
|
25719
25720
|
node: L
|
|
25720
25721
|
}, null, 8, ["node"]))), 128))
|
|
25721
25722
|
])
|
|
25722
|
-
])) : (c(), z(
|
|
25723
|
+
])) : (c(), z(JS, {
|
|
25723
25724
|
key: 6,
|
|
25724
25725
|
type: a.node.type,
|
|
25725
25726
|
name: a.node.name
|
|
25726
25727
|
}, null, 8, ["type", "name"]));
|
|
25727
25728
|
};
|
|
25728
25729
|
}
|
|
25729
|
-
}),
|
|
25730
|
+
}), hq = { class: "admin-audit-timeline" }, uq = { class: "admin-audit-timeline__title" }, yq = {
|
|
25730
25731
|
key: 0,
|
|
25731
25732
|
class: "admin-audit-timeline__loading"
|
|
25732
|
-
},
|
|
25733
|
+
}, pq = {
|
|
25733
25734
|
key: 1,
|
|
25734
25735
|
class: "admin-audit-timeline__error"
|
|
25735
|
-
},
|
|
25736
|
+
}, kq = {
|
|
25736
25737
|
key: 2,
|
|
25737
25738
|
class: "admin-audit-timeline__empty"
|
|
25738
|
-
},
|
|
25739
|
+
}, mq = {
|
|
25739
25740
|
key: 3,
|
|
25740
25741
|
class: "admin-audit-timeline__list"
|
|
25741
|
-
},
|
|
25742
|
+
}, vq = {
|
|
25742
25743
|
class: "admin-audit-timeline__icon",
|
|
25743
25744
|
"aria-hidden": "true"
|
|
25744
|
-
},
|
|
25745
|
+
}, fq = { class: "admin-audit-timeline__body" }, gq = { class: "admin-audit-timeline__row" }, Mq = { class: "admin-audit-timeline__actor" }, Iq = { class: "admin-audit-timeline__verb" }, wq = { class: "admin-audit-timeline__when" }, xq = {
|
|
25745
25746
|
key: 0,
|
|
25746
25747
|
class: "admin-audit-timeline__diff"
|
|
25747
|
-
},
|
|
25748
|
+
}, bq = { class: "admin-audit-timeline__diff-field" }, Lq = { class: "admin-audit-timeline__diff-values" }, Cq = { class: "admin-audit-timeline__diff-after" }, _q = {
|
|
25748
25749
|
key: 1,
|
|
25749
25750
|
class: "admin-audit-timeline__diff-before"
|
|
25750
|
-
},
|
|
25751
|
+
}, Sq = { class: "admin-audit-timeline__diff-before" }, qq = { class: "admin-audit-timeline__diff-after" }, Aq = {
|
|
25751
25752
|
key: 1,
|
|
25752
25753
|
class: "admin-audit-timeline__detail"
|
|
25753
|
-
},
|
|
25754
|
+
}, zq = /* @__PURE__ */ ne({
|
|
25754
25755
|
__name: "AuditTimeline",
|
|
25755
25756
|
props: {
|
|
25756
25757
|
subjectType: {},
|
|
@@ -25820,71 +25821,71 @@ const qI = ne({
|
|
|
25820
25821
|
}
|
|
25821
25822
|
return String(M);
|
|
25822
25823
|
}
|
|
25823
|
-
return (M, C) => (c(), h("section",
|
|
25824
|
-
u("h2",
|
|
25825
|
-
l.value ? (c(), h("div",
|
|
25824
|
+
return (M, C) => (c(), h("section", hq, [
|
|
25825
|
+
u("h2", uq, y(n(v)("История изменений")), 1),
|
|
25826
|
+
l.value ? (c(), h("div", yq, [
|
|
25826
25827
|
(c(), h(X, null, ae(3, (f) => w(n(Re), {
|
|
25827
25828
|
key: f,
|
|
25828
25829
|
height: "48px"
|
|
25829
25830
|
})), 64))
|
|
25830
|
-
])) : r.value ? (c(), h("div",
|
|
25831
|
+
])) : r.value ? (c(), h("div", pq, " Не удалось загрузить историю: " + y(r.value.message), 1)) : s.value ? (c(), h("ol", mq, [
|
|
25831
25832
|
(c(!0), h(X, null, ae(o.value, (f) => (c(), h("li", {
|
|
25832
25833
|
key: f.id,
|
|
25833
25834
|
class: "admin-audit-timeline__item"
|
|
25834
25835
|
}, [
|
|
25835
|
-
u("span",
|
|
25836
|
+
u("span", vq, [
|
|
25836
25837
|
w(n(ee), {
|
|
25837
25838
|
icon: d(f.event),
|
|
25838
25839
|
size: 14
|
|
25839
25840
|
}, null, 8, ["icon"])
|
|
25840
25841
|
]),
|
|
25841
|
-
u("div",
|
|
25842
|
-
u("div",
|
|
25842
|
+
u("div", fq, [
|
|
25843
|
+
u("div", gq, [
|
|
25843
25844
|
w(n(dI), {
|
|
25844
25845
|
name: f.actor?.name ?? "?",
|
|
25845
25846
|
alt: f.actor?.name ?? n(v)("Неизвестный"),
|
|
25846
25847
|
size: "xs"
|
|
25847
25848
|
}, null, 8, ["name", "alt"]),
|
|
25848
|
-
u("span",
|
|
25849
|
-
u("span",
|
|
25850
|
-
u("span",
|
|
25849
|
+
u("span", Mq, y(f.actor?.name ?? n(v)("Система")), 1),
|
|
25850
|
+
u("span", Iq, y(p(f.event)), 1),
|
|
25851
|
+
u("span", wq, y(m(f.created_at)), 1)
|
|
25851
25852
|
]),
|
|
25852
|
-
k(f) ? (c(), h("ul",
|
|
25853
|
+
k(f) ? (c(), h("ul", xq, [
|
|
25853
25854
|
(c(!0), h(X, null, ae(f.diff, (q) => (c(), h("li", {
|
|
25854
25855
|
key: q.field,
|
|
25855
25856
|
class: fe(["admin-audit-timeline__diff-row", `admin-audit-timeline__diff-row--${f.event}`])
|
|
25856
25857
|
}, [
|
|
25857
|
-
u("span",
|
|
25858
|
-
u("span",
|
|
25858
|
+
u("span", bq, y(q.field), 1),
|
|
25859
|
+
u("span", Lq, [
|
|
25859
25860
|
f.event === "created" || f.event === "restored" ? (c(), h(X, { key: 0 }, [
|
|
25860
25861
|
C[0] || (C[0] = u("span", {
|
|
25861
25862
|
class: "admin-audit-timeline__diff-arrow",
|
|
25862
25863
|
"aria-hidden": "true"
|
|
25863
25864
|
}, "→", -1)),
|
|
25864
|
-
u("span",
|
|
25865
|
-
], 64)) : f.event === "deleted" || f.event === "destroyed" ? (c(), h("span",
|
|
25866
|
-
u("span",
|
|
25865
|
+
u("span", Cq, y(L(q.after)), 1)
|
|
25866
|
+
], 64)) : f.event === "deleted" || f.event === "destroyed" ? (c(), h("span", _q, y(L(q.before)), 1)) : (c(), h(X, { key: 2 }, [
|
|
25867
|
+
u("span", Sq, y(L(q.before)), 1),
|
|
25867
25868
|
C[1] || (C[1] = u("span", {
|
|
25868
25869
|
class: "admin-audit-timeline__diff-arrow",
|
|
25869
25870
|
"aria-hidden": "true"
|
|
25870
25871
|
}, "→", -1)),
|
|
25871
|
-
u("span",
|
|
25872
|
+
u("span", qq, y(L(q.after)), 1)
|
|
25872
25873
|
], 64))
|
|
25873
25874
|
])
|
|
25874
25875
|
], 2))), 128))
|
|
25875
|
-
])) : g(f) ? (c(), h("div",
|
|
25876
|
+
])) : g(f) ? (c(), h("div", Aq, y(g(f)), 1)) : H("", !0)
|
|
25876
25877
|
])
|
|
25877
25878
|
]))), 128))
|
|
25878
|
-
])) : (c(), h("div",
|
|
25879
|
+
])) : (c(), h("div", kq, y(n(v)("Записей в истории пока нет.")), 1))
|
|
25879
25880
|
]));
|
|
25880
25881
|
}
|
|
25881
|
-
}),
|
|
25882
|
+
}), Hq = { class: "admin-page admin-resource-view" }, Vq = { class: "admin-resource-view__hd" }, Pq = { class: "admin-resource-view__hd-left" }, Fq = { class: "admin-page__title" }, jq = { class: "admin-resource-view__meta" }, Dq = ["data-variant", "data-status"], Bq = { class: "admin-resource-view__uid" }, Rq = { class: "admin-resource-view__hd-right" }, $q = {
|
|
25882
25883
|
key: 1,
|
|
25883
25884
|
class: "admin-resource-view__loading"
|
|
25884
|
-
},
|
|
25885
|
+
}, Tq = {
|
|
25885
25886
|
key: 2,
|
|
25886
25887
|
class: "admin-resource-view__grid"
|
|
25887
|
-
},
|
|
25888
|
+
}, Uq = { class: "admin-resource-view__main" }, Oq = { class: "admin-resource-view__card-title" }, Eq = { class: "admin-resource-view__aside" }, Zq = { class: "admin-resource-view__card-title" }, Wq = { class: "admin-resource-view__metrics" }, Gq = { class: "admin-resource-view__metric-label" }, Nq = { class: "admin-resource-view__metric-value" }, Xq = /* @__PURE__ */ ne({
|
|
25888
25889
|
__name: "ResourceViewPage",
|
|
25889
25890
|
props: {
|
|
25890
25891
|
slug: {},
|
|
@@ -25992,9 +25993,9 @@ const qI = ne({
|
|
|
25992
25993
|
}), o.hasError || r.push({ name: W.value }).catch(() => {
|
|
25993
25994
|
}));
|
|
25994
25995
|
}
|
|
25995
|
-
return (P, B) => (c(), h("section",
|
|
25996
|
-
u("header",
|
|
25997
|
-
u("div",
|
|
25996
|
+
return (P, B) => (c(), h("section", Hq, [
|
|
25997
|
+
u("header", Vq, [
|
|
25998
|
+
u("div", Pq, [
|
|
25998
25999
|
u("button", {
|
|
25999
26000
|
type: "button",
|
|
26000
26001
|
class: "admin-resource-view__back",
|
|
@@ -26006,8 +26007,8 @@ const qI = ne({
|
|
|
26006
26007
|
}, null, 8, ["icon"]),
|
|
26007
26008
|
D(" " + y(g.value), 1)
|
|
26008
26009
|
]),
|
|
26009
|
-
u("h1",
|
|
26010
|
-
u("div",
|
|
26010
|
+
u("h1", Fq, y(k.value), 1),
|
|
26011
|
+
u("div", jq, [
|
|
26011
26012
|
L.value ? (c(), h("span", {
|
|
26012
26013
|
key: 0,
|
|
26013
26014
|
class: "admin-status-badge",
|
|
@@ -26019,11 +26020,11 @@ const qI = ne({
|
|
|
26019
26020
|
"aria-hidden": "true"
|
|
26020
26021
|
}, null, -1)),
|
|
26021
26022
|
D(" " + y(L.value), 1)
|
|
26022
|
-
], 8,
|
|
26023
|
-
u("span",
|
|
26023
|
+
], 8, Dq)) : H("", !0),
|
|
26024
|
+
u("span", Bq, y(b.value), 1)
|
|
26024
26025
|
])
|
|
26025
26026
|
]),
|
|
26026
|
-
u("div",
|
|
26027
|
+
u("div", Rq, [
|
|
26027
26028
|
s.value ? (c(), z(n(oe), {
|
|
26028
26029
|
key: 0,
|
|
26029
26030
|
variant: "secondary",
|
|
@@ -26099,20 +26100,20 @@ const qI = ne({
|
|
|
26099
26100
|
]),
|
|
26100
26101
|
_: 1
|
|
26101
26102
|
})) : H("", !0),
|
|
26102
|
-
n(o).loading ? (c(), h("div",
|
|
26103
|
+
n(o).loading ? (c(), h("div", $q, [
|
|
26103
26104
|
(c(), h(X, null, ae(8, (F) => w(n(Re), {
|
|
26104
26105
|
key: F,
|
|
26105
26106
|
height: "24px"
|
|
26106
26107
|
})), 64))
|
|
26107
|
-
])) : (c(), h("div",
|
|
26108
|
-
u("div",
|
|
26108
|
+
])) : (c(), h("div", Tq, [
|
|
26109
|
+
u("div", Uq, [
|
|
26109
26110
|
w(n(we), {
|
|
26110
26111
|
padding: "md",
|
|
26111
26112
|
class: "admin-resource-view__card"
|
|
26112
26113
|
}, {
|
|
26113
26114
|
default: x(() => [
|
|
26114
|
-
u("h2",
|
|
26115
|
-
(c(!0), h(X, null, ae(d.value, (F, O) => (c(), z(
|
|
26115
|
+
u("h2", Oq, y(n(v)("Основные данные")), 1),
|
|
26116
|
+
(c(!0), h(X, null, ae(d.value, (F, O) => (c(), z(sq, {
|
|
26116
26117
|
key: O,
|
|
26117
26118
|
node: F
|
|
26118
26119
|
}, null, 8, ["node"]))), 128))
|
|
@@ -26124,7 +26125,7 @@ const qI = ne({
|
|
|
26124
26125
|
class: "admin-resource-view__card"
|
|
26125
26126
|
}, {
|
|
26126
26127
|
default: x(() => [
|
|
26127
|
-
w(
|
|
26128
|
+
w(zq, {
|
|
26128
26129
|
"subject-type": p.value,
|
|
26129
26130
|
"subject-id": a.id
|
|
26130
26131
|
}, null, 8, ["subject-type", "subject-id"])
|
|
@@ -26132,20 +26133,20 @@ const qI = ne({
|
|
|
26132
26133
|
_: 1
|
|
26133
26134
|
})
|
|
26134
26135
|
]),
|
|
26135
|
-
u("aside",
|
|
26136
|
+
u("aside", Eq, [
|
|
26136
26137
|
m.value.length > 0 ? (c(), z(n(we), {
|
|
26137
26138
|
key: 0,
|
|
26138
26139
|
padding: "md",
|
|
26139
26140
|
class: "admin-resource-view__card"
|
|
26140
26141
|
}, {
|
|
26141
26142
|
default: x(() => [
|
|
26142
|
-
u("h2",
|
|
26143
|
-
u("dl",
|
|
26143
|
+
u("h2", Zq, y(n(v)("Метрики")), 1),
|
|
26144
|
+
u("dl", Wq, [
|
|
26144
26145
|
(c(!0), h(X, null, ae(m.value, (F) => (c(), h(X, {
|
|
26145
26146
|
key: F.label
|
|
26146
26147
|
}, [
|
|
26147
|
-
u("dt",
|
|
26148
|
-
u("dd",
|
|
26148
|
+
u("dt", Gq, y(F.label), 1),
|
|
26149
|
+
u("dd", Nq, y(F.value), 1)
|
|
26149
26150
|
], 64))), 128))
|
|
26150
26151
|
])
|
|
26151
26152
|
]),
|
|
@@ -26159,10 +26160,10 @@ const qI = ne({
|
|
|
26159
26160
|
]))
|
|
26160
26161
|
]));
|
|
26161
26162
|
}
|
|
26162
|
-
}),
|
|
26163
|
-
const l = 4 * a + o - 4, r = "*-04-39?2$%%$%%'$%''%'''%')(%'))%(++'(++'(+.'+-.',/3',33)-/5)-43).36)058*18<+37<+4:<,4:E,5<A-7>C/8@F/:EH/<EK0=FM1?IP2@KS3BNV4DPY5FS\\6HV_6IXb7K[e8N^i9Pam;Rdp<Tgt".charCodeAt(l) - 35, i = l > 8 ? r : 1, s = t / i | 0, d = t % i, p = i - d, m = l > 8 ? s *
|
|
26163
|
+
}), Kq = [0.2, 3 / 8, 5 / 9, 2 / 3], Jq = (a, t) => (o) => {
|
|
26164
|
+
const l = 4 * a + o - 4, r = "*-04-39?2$%%$%%'$%''%'''%')(%'))%(++'(++'(+.'+-.',/3',33)-/5)-43).36)058*18<+37<+4:<,4:E,5<A-7>C/8@F/:EH/<EK0=FM1?IP2@KS3BNV4DPY5FS\\6HV_6IXb7K[e8N^i9Pam;Rdp<Tgt".charCodeAt(l) - 35, i = l > 8 ? r : 1, s = t / i | 0, d = t % i, p = i - d, m = l > 8 ? s * Kq[o] + (a > 5) & -2 : r, k = s - m;
|
|
26164
26165
|
return { t: p * k + d * k + d, o: [[p, k], [d, k + 1]], i: m };
|
|
26165
|
-
},
|
|
26166
|
+
}, Yq = { min: 0, L: 0, M: 1, Q: 2, H: 3, max: 3 }, co = (a) => new Uint8Array(a), Fo = (a) => {
|
|
26166
26167
|
const t = new Error(`lean-qr error ${a}`);
|
|
26167
26168
|
throw t.code = a, t;
|
|
26168
26169
|
}, tc = (a) => "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:".indexOf(a), nI = (a) => a.charCodeAt(0), lw = (...a) => (t, o) => a.forEach((l) => l(t, o)), rw = (a) => (t) => {
|
|
@@ -26195,7 +26196,7 @@ const II = Ao((a) => (t, o) => {
|
|
|
26195
26196
|
for (const l of a) t.push(oI().get(l), 13);
|
|
26196
26197
|
}, (a) => oI().has(a), (a, t) => 12 + 2 * (t > 26) + 2 * (t > 9) + 13 * a);
|
|
26197
26198
|
II._ = !0;
|
|
26198
|
-
const hw = [dw, sw, bo, gI, II, MI],
|
|
26199
|
+
const hw = [dw, sw, bo, gI, II, MI], Qq = { auto: (a, { modes: t = hw } = {}) => (o, l) => {
|
|
26199
26200
|
const r = t.map((k, g) => {
|
|
26200
26201
|
const b = /* @__PURE__ */ new Map(), L = (M, C) => (b.has(M) || b.set(M, C(M, l)), b.get(M));
|
|
26201
26202
|
return { m: k, h: 1 << g, C: k.est("", l), S: k.l ? (M, C) => L(C - M, k.l) : (M, C) => L(a.slice(M, C), k.est) };
|
|
@@ -26228,7 +26229,7 @@ const hw = [dw, sw, bo, gI, II, MI], Yq = { auto: (a, { modes: t = hw } = {}) =>
|
|
|
26228
26229
|
const m = [];
|
|
26229
26230
|
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)));
|
|
26230
26231
|
m.reverse().forEach((k) => k(o, l));
|
|
26231
|
-
}, multi: lw, eci: rw, bytes: fI, numeric: dw, alphaNumeric: sw, ascii: bo, iso8859_1: gI, shift_jis: II, utf8: MI },
|
|
26232
|
+
}, multi: lw, eci: rw, bytes: fI, numeric: dw, alphaNumeric: sw, ascii: bo, iso8859_1: gI, shift_jis: II, utf8: MI }, eA = () => ({ F: co(2956), I: 0, push(a, t) {
|
|
26232
26233
|
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;
|
|
26233
26234
|
} }), X9 = (a, t = a * a, o = co(t)) => ({ size: a, K: o, get: (l, r) => l >= 0 && l < a && !!(1 & o[r * a + l]), toString({ on: l = "##", off: r = " ", lf: i = `
|
|
26234
26235
|
`, pad: s = 4, padX: d = s, padY: p = s } = {}) {
|
|
@@ -26254,11 +26255,11 @@ const hw = [dw, sw, bo, gI, II, MI], Yq = { auto: (a, { modes: t = hw } = {}) =>
|
|
|
26254
26255
|
return s.width = p.width * r, s.height = p.height * r, d.putImageData(p, 0, 0), d.imageSmoothingEnabled = !1, d.globalCompositeOperation = "copy", d.drawImage(s, 0, 0, p.width, p.height, 0, 0, s.width, s.height), s.toDataURL(l, 1);
|
|
26255
26256
|
} }), 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], q9 = co(511);
|
|
26256
26257
|
for (let a = 0, t = 1; a < 255; t = 2 * t ^ 285 * (t > 127)) q9[q9[t + 255] = a++] = t;
|
|
26257
|
-
const uw = (a) => q9[a % 255], yw = (a) => q9[a + 255],
|
|
26258
|
+
const uw = (a) => q9[a % 255], yw = (a) => q9[a + 255], aA = (a, t) => {
|
|
26258
26259
|
const o = co(a.length + t.length - 1);
|
|
26259
26260
|
for (let l = 0; l < a.length; ++l) for (let r = 0; r < t.length; ++r) o[l + r] ^= uw(a[l] + t[r]);
|
|
26260
26261
|
return o.map(yw);
|
|
26261
|
-
},
|
|
26262
|
+
}, tA = (a, t) => {
|
|
26262
26263
|
const o = co(a.length + t.length - 1);
|
|
26263
26264
|
o.set(a, 0);
|
|
26264
26265
|
for (let l = 0; l < a.length; ++l) if (o[l]) {
|
|
@@ -26267,13 +26268,13 @@ const uw = (a) => q9[a % 255], yw = (a) => q9[a + 255], eA = (a, t) => {
|
|
|
26267
26268
|
}
|
|
26268
26269
|
return o.slice(a.length);
|
|
26269
26270
|
}, cI = [[0], [0, 0]];
|
|
26270
|
-
for (let a = 1; a < 30; ++a) cI.push(
|
|
26271
|
-
const
|
|
26271
|
+
for (let a = 1; a < 30; ++a) cI.push(aA(cI[a], [0, a]));
|
|
26272
|
+
const nA = (a, t) => {
|
|
26272
26273
|
const o = [[], []];
|
|
26273
26274
|
let l = 0, r = 0;
|
|
26274
26275
|
for (const [s, d] of t.o) for (let p = 0; p < s; ++p, l += d) {
|
|
26275
26276
|
const m = a.slice(l, l + d);
|
|
26276
|
-
o[0].push(m), o[1].push(
|
|
26277
|
+
o[0].push(m), o[1].push(tA(m, cI[t.i])), r += d + t.i;
|
|
26277
26278
|
}
|
|
26278
26279
|
const i = co(r);
|
|
26279
26280
|
r = 0;
|
|
@@ -26286,7 +26287,7 @@ const tA = (a, t) => {
|
|
|
26286
26287
|
let l = a <<= o;
|
|
26287
26288
|
for (let r = 134217728; r >>= 1; ) l & r && (l ^= t * (r >> o));
|
|
26288
26289
|
return l | a;
|
|
26289
|
-
},
|
|
26290
|
+
}, oA = ({ size: a, K: t }, o) => {
|
|
26290
26291
|
const l = (s, d, p, m) => {
|
|
26291
26292
|
for (; p-- > 0; s += a) t.fill(m, s, s + d);
|
|
26292
26293
|
}, r = (s, d, p) => {
|
|
@@ -26302,7 +26303,7 @@ const tA = (a, t) => {
|
|
|
26302
26303
|
r(3, 3, 7), r(a - 4, 3, 7);
|
|
26303
26304
|
for (let s = 0; s < a; ++s) for (let d = s; d < a; ++d) t[d * a + s] = t[s * a + d];
|
|
26304
26305
|
t[(a - 8) * a + 8] = 3;
|
|
26305
|
-
},
|
|
26306
|
+
}, cA = ({ size: a, K: t }) => {
|
|
26306
26307
|
const o = [];
|
|
26307
26308
|
for (let l = a - 2, r = a, i = -1; l >= 0; l -= 2) {
|
|
26308
26309
|
for (l === 5 && (l = 4); r += i, r !== -1 && r !== a; ) {
|
|
@@ -26312,7 +26313,7 @@ const tA = (a, t) => {
|
|
|
26312
26313
|
i *= -1;
|
|
26313
26314
|
}
|
|
26314
26315
|
return o;
|
|
26315
|
-
},
|
|
26316
|
+
}, iA = ({ K: a }, t, o) => t.forEach((l, r) => a[l] = o[r >> 3] >> (7 & ~r) & 1), lA = ({ size: a, K: t }, o, l, r) => {
|
|
26316
26317
|
for (let s = 0; s < a; ++s) for (let d = 0; d < a; ++d) {
|
|
26317
26318
|
const p = s * a + d;
|
|
26318
26319
|
t[p] ^= !(o(d, s) || 2 & t[p]);
|
|
@@ -26320,7 +26321,7 @@ const tA = (a, t) => {
|
|
|
26320
26321
|
let i = 21522 ^ pw((1 ^ r) << 3 | l, 1335, 10);
|
|
26321
26322
|
for (let s = 0; s++ < 8; i >>= 1) t[(s - (s < 7)) * a + 8] = 1 & i, t[9 * a - s] = 1 & i;
|
|
26322
26323
|
for (let s = 8; --s, i; i >>= 1) t[8 * a + s - (s < 7)] = 1 & i, t[(a - s) * a + 8] = 1 & i;
|
|
26323
|
-
},
|
|
26324
|
+
}, rA = ({ size: a, K: t }, o = 0, l = 0) => {
|
|
26324
26325
|
for (let r = 0; r < a; ++r) {
|
|
26325
26326
|
for (let i = 0; i < 2; ++i) for (let s, d = 0, p = 0, m = 0; d < a; ++d) {
|
|
26326
26327
|
const k = 1 & t[i ? r * a + d : d * a + r];
|
|
@@ -26333,29 +26334,29 @@ const tA = (a, t) => {
|
|
|
26333
26334
|
}
|
|
26334
26335
|
return o + 10 * (10 * Math.abs(l / (a * a) - 1) | 0);
|
|
26335
26336
|
}, FI = [], iI = (a = Fo(1), { minCorrectionLevel: t = 0, maxCorrectionLevel: o = 3, minVersion: l = 1, maxVersion: r = 40, mask: i, trailer: s = 60433, ...d } = {}) => {
|
|
26336
|
-
o < t && Fo(3), r < l && Fo(2), typeof a == "string" && (a =
|
|
26337
|
+
o < t && Fo(3), r < l && Fo(2), typeof a == "string" && (a = Qq.auto(a, d));
|
|
26337
26338
|
for (let p = l, m = 0; p <= r; ++p) {
|
|
26338
26339
|
let k = FI[p];
|
|
26339
|
-
k || (FI[p] = k = X9(4 * p + 17),
|
|
26340
|
-
const g =
|
|
26340
|
+
k || (FI[p] = k = X9(4 * p + 17), oA(k, p), k.p = cA(k));
|
|
26341
|
+
const g = Jq(p, k.p.length >> 3);
|
|
26341
26342
|
if (8 * g(t).t < m) continue;
|
|
26342
|
-
const b =
|
|
26343
|
+
const b = eA();
|
|
26343
26344
|
a(b, p), m = b.I;
|
|
26344
26345
|
for (let L = o; L >= t; --L) {
|
|
26345
26346
|
const M = g(L);
|
|
26346
26347
|
if (8 * M.t < m) continue;
|
|
26347
26348
|
for (b.I = m + 11 & -8; b.I < 8 * M.t; ) b.push(s, 16);
|
|
26348
26349
|
const C = X9(k.size, k.K);
|
|
26349
|
-
return
|
|
26350
|
+
return iA(C, k.p, nA(b.F, M)), (K9[i ?? -1] ? [K9[i]] : K9).map((f, q) => {
|
|
26350
26351
|
const W = X9(C.size, C.K);
|
|
26351
|
-
return
|
|
26352
|
+
return lA(W, f, i ?? q, L), W.s = rA(W), W;
|
|
26352
26353
|
}).reduce((f, q) => q.s < f.s ? q : f);
|
|
26353
26354
|
}
|
|
26354
26355
|
}
|
|
26355
26356
|
Fo(4);
|
|
26356
26357
|
};
|
|
26357
26358
|
iI.with = (...a) => (t, o) => iI(t, { modes: [...hw, ...a], ...o });
|
|
26358
|
-
const
|
|
26359
|
+
const dA = "http://www.w3.org/2000/svg", sA = (a, t, o, l = []) => [`<${t}`, ...Object.entries(o).map(([r, i]) => ` ${r}="${`${i}`.replace(/[^ -~]|["&]/g, "")}"`), ">", ...l, `</${t}>`].join(""), hA = (a) => {
|
|
26359
26360
|
const t = /* @__PURE__ */ new Map(), o = [], l = (r) => {
|
|
26360
26361
|
const i = t.get(r);
|
|
26361
26362
|
return t.delete(r), i;
|
|
@@ -26369,40 +26370,40 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26369
26370
|
}
|
|
26370
26371
|
}
|
|
26371
26372
|
return o.map((r) => `M${r.join("L")}Z`).join("");
|
|
26372
|
-
},
|
|
26373
|
+
}, uA = (a, { on: t = "black", off: o, pad: l = 4, padX: r = l, padY: i = l, width: s, height: d, scale: p = 1 }, m, k, g) => {
|
|
26373
26374
|
const b = a.size + 2 * r, L = a.size + 2 * i;
|
|
26374
|
-
return m(k, "svg", { xmlns:
|
|
26375
|
-
},
|
|
26375
|
+
return m(k, "svg", { xmlns: dA, version: "1.1", viewBox: `${-r} ${-i} ${b} ${L}`, width: s ?? b * p, height: d ?? L * p, "shape-rendering": "crispedges" }, [o ? m(k, "rect", { x: -r, y: -i, width: b, height: L, fill: o }) : "", m(k, "path", { d: hA(a), fill: t })], g);
|
|
26376
|
+
}, yA = (a, t = {}) => (t.xmlDeclaration ? '<?xml version="1.0" encoding="UTF-8" ?>' : "") + uA(a, t, sA), pA = { class: "admin-2fa" }, kA = {
|
|
26376
26377
|
key: 0,
|
|
26377
26378
|
class: "admin-2fa__panel"
|
|
26378
|
-
},
|
|
26379
|
+
}, mA = { class: "admin-2fa__lead" }, vA = {
|
|
26379
26380
|
key: 0,
|
|
26380
26381
|
class: "admin-2fa__error"
|
|
26381
|
-
},
|
|
26382
|
+
}, fA = {
|
|
26382
26383
|
key: 1,
|
|
26383
26384
|
class: "admin-2fa__panel"
|
|
26384
|
-
},
|
|
26385
|
+
}, gA = { class: "admin-2fa__steps" }, MA = {
|
|
26385
26386
|
class: "admin-2fa__secret",
|
|
26386
26387
|
"data-testid": "2fa-secret"
|
|
26387
|
-
},
|
|
26388
|
+
}, IA = ["innerHTML"], wA = {
|
|
26388
26389
|
key: 1,
|
|
26389
26390
|
class: "admin-2fa__hint"
|
|
26390
|
-
},
|
|
26391
|
+
}, xA = { class: "admin-2fa__uri" }, bA = { class: "admin-2fa__code-row" }, LA = {
|
|
26391
26392
|
key: 0,
|
|
26392
26393
|
class: "admin-2fa__error"
|
|
26393
|
-
},
|
|
26394
|
+
}, CA = {
|
|
26394
26395
|
key: 2,
|
|
26395
26396
|
class: "admin-2fa__panel admin-2fa__panel--success"
|
|
26396
|
-
},
|
|
26397
|
+
}, _A = { class: "admin-2fa__lead" }, SA = { class: "admin-2fa__codes" }, qA = {
|
|
26397
26398
|
key: 3,
|
|
26398
26399
|
class: "admin-2fa__panel"
|
|
26399
|
-
},
|
|
26400
|
+
}, AA = { class: "admin-2fa__lead" }, zA = { class: "admin-2fa__manage" }, HA = {
|
|
26400
26401
|
key: 0,
|
|
26401
26402
|
class: "admin-2fa__error"
|
|
26402
|
-
},
|
|
26403
|
+
}, VA = {
|
|
26403
26404
|
key: 1,
|
|
26404
26405
|
class: "admin-2fa__codes"
|
|
26405
|
-
},
|
|
26406
|
+
}, PA = /* @__PURE__ */ ne({
|
|
26406
26407
|
__name: "TwoFactorSetup",
|
|
26407
26408
|
props: {
|
|
26408
26409
|
enabled: { type: Boolean }
|
|
@@ -26490,15 +26491,15 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26490
26491
|
const W = I(() => i.value.match(/.{1,4}/g)?.join(" ") ?? i.value), U = I(() => {
|
|
26491
26492
|
if (s.value === "") return "";
|
|
26492
26493
|
try {
|
|
26493
|
-
const V = iI(s.value, { minCorrectionLevel:
|
|
26494
|
-
return
|
|
26494
|
+
const V = iI(s.value, { minCorrectionLevel: Yq.M });
|
|
26495
|
+
return yA(V, { on: "#18181b", off: "transparent", padX: 1, padY: 1 });
|
|
26495
26496
|
} catch {
|
|
26496
26497
|
return "";
|
|
26497
26498
|
}
|
|
26498
26499
|
});
|
|
26499
|
-
return (V, T) => (c(), h("div",
|
|
26500
|
-
r.value === "idle" ? (c(), h("div",
|
|
26501
|
-
u("p",
|
|
26500
|
+
return (V, T) => (c(), h("div", pA, [
|
|
26501
|
+
r.value === "idle" ? (c(), h("div", kA, [
|
|
26502
|
+
u("p", mA, y(n(v)("Двухфакторная аутентификация добавляет второй слой защиты — даже если пароль попадёт")) + " " + y(n(v)("в чужие руки, без OTP-кода из приложения войти не получится.")), 1),
|
|
26502
26503
|
w(n(oe), {
|
|
26503
26504
|
variant: "primary",
|
|
26504
26505
|
loading: k.value,
|
|
@@ -26516,13 +26517,13 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26516
26517
|
]),
|
|
26517
26518
|
_: 1
|
|
26518
26519
|
}, 8, ["loading"]),
|
|
26519
|
-
g.value ? (c(), h("p",
|
|
26520
|
-
])) : r.value === "setup" ? (c(), h("div",
|
|
26521
|
-
u("ol",
|
|
26520
|
+
g.value ? (c(), h("p", vA, y(g.value), 1)) : H("", !0)
|
|
26521
|
+
])) : r.value === "setup" ? (c(), h("div", fA, [
|
|
26522
|
+
u("ol", gA, [
|
|
26522
26523
|
u("li", null, y(n(v)("Откройте Authenticator-приложение (Google Authenticator, 1Password, Authy…).")), 1),
|
|
26523
26524
|
u("li", null, [
|
|
26524
26525
|
D(y(n(v)("Добавьте новый аккаунт вручную, скопировав ключ:")) + " ", 1),
|
|
26525
|
-
u("div",
|
|
26526
|
+
u("div", MA, [
|
|
26526
26527
|
u("code", null, y(W.value), 1),
|
|
26527
26528
|
u("button", {
|
|
26528
26529
|
type: "button",
|
|
@@ -26541,15 +26542,15 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26541
26542
|
key: 0,
|
|
26542
26543
|
class: "admin-2fa__qr",
|
|
26543
26544
|
innerHTML: U.value
|
|
26544
|
-
}, null, 8,
|
|
26545
|
+
}, null, 8, IA)) : (c(), h("p", wA, [
|
|
26545
26546
|
D(y(n(v)("Либо отсканируйте QR с другого устройства — поделитесь URI:")) + " ", 1),
|
|
26546
|
-
u("code",
|
|
26547
|
+
u("code", xA, y(s.value), 1)
|
|
26547
26548
|
]))
|
|
26548
26549
|
])
|
|
26549
26550
|
]),
|
|
26550
26551
|
u("li", null, [
|
|
26551
26552
|
D(y(n(v)("Введите 6-значный код из приложения:")) + " ", 1),
|
|
26552
|
-
u("div",
|
|
26553
|
+
u("div", bA, [
|
|
26553
26554
|
w(n(Le), {
|
|
26554
26555
|
modelValue: d.value,
|
|
26555
26556
|
"onUpdate:modelValue": T[0] || (T[0] = (P) => d.value = P),
|
|
@@ -26573,10 +26574,10 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26573
26574
|
])
|
|
26574
26575
|
])
|
|
26575
26576
|
]),
|
|
26576
|
-
g.value ? (c(), h("p",
|
|
26577
|
-
])) : r.value === "confirmed" ? (c(), h("div",
|
|
26578
|
-
u("p",
|
|
26579
|
-
u("div",
|
|
26577
|
+
g.value ? (c(), h("p", LA, y(g.value), 1)) : H("", !0)
|
|
26578
|
+
])) : r.value === "confirmed" ? (c(), h("div", CA, [
|
|
26579
|
+
u("p", _A, y(n(v)("2FA активирована. Сохраните recovery-коды в безопасном месте — они нужны если вы")) + " " + y(n(v)("потеряете доступ к Authenticator-приложению.")), 1),
|
|
26580
|
+
u("div", SA, [
|
|
26580
26581
|
(c(!0), h(X, null, ae(p.value, (P) => (c(), h("code", {
|
|
26581
26582
|
key: P,
|
|
26582
26583
|
class: "admin-2fa__codes-item"
|
|
@@ -26606,9 +26607,9 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26606
26607
|
]),
|
|
26607
26608
|
_: 1
|
|
26608
26609
|
})
|
|
26609
|
-
])) : r.value === "enabled" ? (c(), h("div",
|
|
26610
|
-
u("p",
|
|
26611
|
-
u("div",
|
|
26610
|
+
])) : r.value === "enabled" ? (c(), h("div", qA, [
|
|
26611
|
+
u("p", AA, y(n(v)("2FA включена. Если у вас остался доступ к Authenticator app — всё в порядке.")), 1),
|
|
26612
|
+
u("div", zA, [
|
|
26612
26613
|
w(n(Le), {
|
|
26613
26614
|
modelValue: m.value,
|
|
26614
26615
|
"onUpdate:modelValue": T[2] || (T[2] = (P) => m.value = P),
|
|
@@ -26649,8 +26650,8 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26649
26650
|
_: 1
|
|
26650
26651
|
}, 8, ["loading"])
|
|
26651
26652
|
]),
|
|
26652
|
-
g.value ? (c(), h("p",
|
|
26653
|
-
p.value.length > 0 ? (c(), h("div",
|
|
26653
|
+
g.value ? (c(), h("p", HA, y(g.value), 1)) : H("", !0),
|
|
26654
|
+
p.value.length > 0 ? (c(), h("div", VA, [
|
|
26654
26655
|
(c(!0), h(X, null, ae(p.value, (P) => (c(), h("code", {
|
|
26655
26656
|
key: P,
|
|
26656
26657
|
class: "admin-2fa__codes-item"
|
|
@@ -26659,10 +26660,10 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26659
26660
|
])) : H("", !0)
|
|
26660
26661
|
]));
|
|
26661
26662
|
}
|
|
26662
|
-
}),
|
|
26663
|
+
}), FA = { class: "admin-page admin-profile" }, jA = { class: "admin-page__hd" }, DA = { class: "admin-page__title-wrap" }, BA = { class: "admin-page__title" }, RA = { class: "admin-page__count" }, $A = { class: "admin-profile__layout" }, TA = {
|
|
26663
26664
|
class: "admin-profile__nav",
|
|
26664
26665
|
"aria-label": "Profile sections"
|
|
26665
|
-
},
|
|
26666
|
+
}, UA = ["onClick"], OA = ["data-icon"], EA = { class: "admin-profile__content" }, ZA = { class: "admin-profile__card-hd" }, WA = { class: "admin-profile__card-title" }, GA = { class: "admin-profile__hero" }, NA = { class: "admin-profile__hero-text" }, XA = { class: "admin-profile__hero-name" }, KA = { class: "admin-profile__hero-meta" }, JA = { class: "admin-profile__form" }, YA = { class: "admin-profile__card-ft" }, QA = { class: "admin-profile__card-hd" }, ez = { class: "admin-profile__card-title" }, az = { class: "admin-profile__hint" }, tz = /* @__PURE__ */ ne({
|
|
26666
26667
|
__name: "ProfilePage",
|
|
26667
26668
|
props: {
|
|
26668
26669
|
title: { default: "Profile" },
|
|
@@ -26718,15 +26719,15 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26718
26719
|
function W() {
|
|
26719
26720
|
C.value = !1, r.user && (r.user.twoFactorEnabled = !1), l("two-factor-disable");
|
|
26720
26721
|
}
|
|
26721
|
-
return (U, V) => (c(), h("section",
|
|
26722
|
-
u("header",
|
|
26723
|
-
u("div",
|
|
26724
|
-
u("h1",
|
|
26725
|
-
u("div",
|
|
26722
|
+
return (U, V) => (c(), h("section", FA, [
|
|
26723
|
+
u("header", jA, [
|
|
26724
|
+
u("div", DA, [
|
|
26725
|
+
u("h1", BA, y(a.title), 1),
|
|
26726
|
+
u("div", RA, y(a.subtitle ?? n(v)("Личные данные, безопасность, токены")), 1)
|
|
26726
26727
|
])
|
|
26727
26728
|
]),
|
|
26728
|
-
u("div",
|
|
26729
|
-
u("nav",
|
|
26729
|
+
u("div", $A, [
|
|
26730
|
+
u("nav", TA, [
|
|
26730
26731
|
(c(), h(X, null, ae(d, (T) => u("button", {
|
|
26731
26732
|
key: T.id,
|
|
26732
26733
|
type: "button",
|
|
@@ -26739,28 +26740,28 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26739
26740
|
u("span", {
|
|
26740
26741
|
class: "admin-profile__nav-icon",
|
|
26741
26742
|
"data-icon": T.icon
|
|
26742
|
-
}, null, 8,
|
|
26743
|
+
}, null, 8, OA),
|
|
26743
26744
|
u("span", null, y(T.label), 1)
|
|
26744
|
-
], 10,
|
|
26745
|
+
], 10, UA)), 64))
|
|
26745
26746
|
]),
|
|
26746
|
-
u("div",
|
|
26747
|
+
u("div", EA, [
|
|
26747
26748
|
p.value === "general" ? (c(), z(n(we), {
|
|
26748
26749
|
key: 0,
|
|
26749
26750
|
padding: "md"
|
|
26750
26751
|
}, {
|
|
26751
26752
|
default: x(() => [
|
|
26752
|
-
u("header",
|
|
26753
|
-
u("h3",
|
|
26753
|
+
u("header", ZA, [
|
|
26754
|
+
u("h3", WA, y(n(v)("Профиль")), 1)
|
|
26754
26755
|
]),
|
|
26755
|
-
u("div",
|
|
26756
|
+
u("div", GA, [
|
|
26756
26757
|
w(n(dI), {
|
|
26757
26758
|
src: n(r).user?.avatar ?? void 0,
|
|
26758
26759
|
name: n(r).user?.name ?? "?",
|
|
26759
26760
|
size: "lg"
|
|
26760
26761
|
}, null, 8, ["src", "name"]),
|
|
26761
|
-
u("div",
|
|
26762
|
-
u("div",
|
|
26763
|
-
u("div",
|
|
26762
|
+
u("div", NA, [
|
|
26763
|
+
u("div", XA, y(n(r).user?.name ?? "—"), 1),
|
|
26764
|
+
u("div", KA, y(n(r).user?.email ?? "—"), 1)
|
|
26764
26765
|
]),
|
|
26765
26766
|
V[4] || (V[4] = u("div", { style: { flex: "1" } }, null, -1)),
|
|
26766
26767
|
w(n(oe), {
|
|
@@ -26774,7 +26775,7 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26774
26775
|
_: 1
|
|
26775
26776
|
})
|
|
26776
26777
|
]),
|
|
26777
|
-
u("div",
|
|
26778
|
+
u("div", JA, [
|
|
26778
26779
|
w(n(Le), {
|
|
26779
26780
|
modelValue: k.value.name,
|
|
26780
26781
|
"onUpdate:modelValue": V[0] || (V[0] = (T) => k.value.name = T),
|
|
@@ -26801,7 +26802,7 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26801
26802
|
label: n(v)("Тема")
|
|
26802
26803
|
}, null, 8, ["modelValue", "options", "label"])
|
|
26803
26804
|
]),
|
|
26804
|
-
u("footer",
|
|
26805
|
+
u("footer", YA, [
|
|
26805
26806
|
w(n(oe), {
|
|
26806
26807
|
variant: "primary",
|
|
26807
26808
|
onClick: L
|
|
@@ -26819,8 +26820,8 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26819
26820
|
padding: "md"
|
|
26820
26821
|
}, {
|
|
26821
26822
|
default: x(() => [
|
|
26822
|
-
u("header",
|
|
26823
|
-
u("h3",
|
|
26823
|
+
u("header", QA, [
|
|
26824
|
+
u("h3", ez, y(n(v)("Двухфакторная аутентификация")), 1),
|
|
26824
26825
|
w(n(uI), {
|
|
26825
26826
|
variant: f.value ? "success" : "default"
|
|
26826
26827
|
}, {
|
|
@@ -26831,7 +26832,7 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26831
26832
|
}, 8, ["variant"])
|
|
26832
26833
|
]),
|
|
26833
26834
|
ze(U.$slots, "enable-2fa", {}, () => [
|
|
26834
|
-
w(
|
|
26835
|
+
w(PA, {
|
|
26835
26836
|
enabled: f.value,
|
|
26836
26837
|
onEnabled: q,
|
|
26837
26838
|
onDisabled: W
|
|
@@ -26845,7 +26846,7 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26845
26846
|
}, () => [
|
|
26846
26847
|
w(n(we), { padding: "md" }, {
|
|
26847
26848
|
default: x(() => [
|
|
26848
|
-
u("p",
|
|
26849
|
+
u("p", az, " Section «" + y(p.value) + "» не реализована библиотекой — host-проект подключает её через slot " + y(p.value) + ". ", 1)
|
|
26849
26850
|
]),
|
|
26850
26851
|
_: 1
|
|
26851
26852
|
})
|
|
@@ -26893,19 +26894,19 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26893
26894
|
loading: a.loading
|
|
26894
26895
|
}, null, 8, ["title", "value", "prefix", "suffix", "trend", "precision", "tone", "loading"]));
|
|
26895
26896
|
}
|
|
26896
|
-
}),
|
|
26897
|
+
}), nz = {
|
|
26897
26898
|
key: 0,
|
|
26898
26899
|
class: "admin-widget__hd"
|
|
26899
|
-
},
|
|
26900
|
+
}, oz = {
|
|
26900
26901
|
key: 0,
|
|
26901
26902
|
class: "admin-widget__title"
|
|
26902
|
-
},
|
|
26903
|
+
}, cz = {
|
|
26903
26904
|
key: 1,
|
|
26904
26905
|
class: "admin-widget__desc"
|
|
26905
|
-
},
|
|
26906
|
+
}, iz = {
|
|
26906
26907
|
key: 1,
|
|
26907
26908
|
class: "admin-widget__empty"
|
|
26908
|
-
},
|
|
26909
|
+
}, lz = ["viewBox", "height", "aria-label"], rz = ["x", "y", "width", "height", "fill", "data-label", "data-value"], kw = /* @__PURE__ */ ne({
|
|
26909
26910
|
__name: "BarChartWidget",
|
|
26910
26911
|
props: {
|
|
26911
26912
|
title: { default: "" },
|
|
@@ -26932,11 +26933,11 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26932
26933
|
class: "admin-widget"
|
|
26933
26934
|
}, {
|
|
26934
26935
|
default: x(() => [
|
|
26935
|
-
a.title || a.description ? (c(), h("header",
|
|
26936
|
-
a.title ? (c(), h("h3",
|
|
26937
|
-
a.description ? (c(), h("p",
|
|
26936
|
+
a.title || a.description ? (c(), h("header", nz, [
|
|
26937
|
+
a.title ? (c(), h("h3", oz, y(a.title), 1)) : H("", !0),
|
|
26938
|
+
a.description ? (c(), h("p", cz, y(a.description), 1)) : H("", !0)
|
|
26938
26939
|
])) : H("", !0),
|
|
26939
|
-
o.value ? (c(), h("div",
|
|
26940
|
+
o.value ? (c(), h("div", iz, y(n(v)("Нет данных за период")), 1)) : (c(), h("svg", {
|
|
26940
26941
|
key: 2,
|
|
26941
26942
|
class: "admin-widget-bar-chart",
|
|
26942
26943
|
viewBox: `0 0 100 ${a.height}`,
|
|
@@ -26958,22 +26959,22 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
26958
26959
|
"data-value": d.value
|
|
26959
26960
|
}, [
|
|
26960
26961
|
u("title", null, y(d.label) + ": " + y(d.value), 1)
|
|
26961
|
-
], 8,
|
|
26962
|
-
], 8,
|
|
26962
|
+
], 8, rz))), 128))
|
|
26963
|
+
], 8, lz))
|
|
26963
26964
|
]),
|
|
26964
26965
|
_: 1
|
|
26965
26966
|
}));
|
|
26966
26967
|
}
|
|
26967
|
-
}),
|
|
26968
|
+
}), dz = {
|
|
26968
26969
|
key: 0,
|
|
26969
26970
|
class: "admin-widget__hd"
|
|
26970
|
-
},
|
|
26971
|
+
}, sz = { class: "admin-widget__title" }, hz = {
|
|
26971
26972
|
key: 1,
|
|
26972
26973
|
class: "admin-widget__empty"
|
|
26973
|
-
},
|
|
26974
|
+
}, uz = {
|
|
26974
26975
|
key: 2,
|
|
26975
26976
|
class: "admin-donut-widget__row"
|
|
26976
|
-
},
|
|
26977
|
+
}, yz = ["aria-label"], pz = ["d", "fill"], kz = { class: "admin-donut-widget__legend" }, mz = { class: "admin-donut-widget__label" }, vz = { class: "admin-donut-widget__value" }, mw = /* @__PURE__ */ ne({
|
|
26977
26978
|
__name: "DonutChartWidget",
|
|
26978
26979
|
props: {
|
|
26979
26980
|
title: { default: "" },
|
|
@@ -27007,10 +27008,10 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27007
27008
|
class: "admin-widget admin-donut-widget"
|
|
27008
27009
|
}, {
|
|
27009
27010
|
default: x(() => [
|
|
27010
|
-
a.title ? (c(), h("header",
|
|
27011
|
-
u("h3",
|
|
27011
|
+
a.title ? (c(), h("header", dz, [
|
|
27012
|
+
u("h3", sz, y(a.title), 1)
|
|
27012
27013
|
])) : H("", !0),
|
|
27013
|
-
l.value ? (c(), h("div",
|
|
27014
|
+
l.value ? (c(), h("div", hz, y(n(v)("Нет данных")), 1)) : (c(), h("div", uz, [
|
|
27014
27015
|
(c(), h("svg", {
|
|
27015
27016
|
viewBox: "0 0 120 120",
|
|
27016
27017
|
class: "admin-donut-widget__svg",
|
|
@@ -27023,22 +27024,22 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27023
27024
|
fill: p.color
|
|
27024
27025
|
}, [
|
|
27025
27026
|
u("title", null, y(p.label) + ": " + y(p.value) + " (" + y(p.pct) + "%)", 1)
|
|
27026
|
-
], 8,
|
|
27027
|
+
], 8, pz))), 128)),
|
|
27027
27028
|
d[0] || (d[0] = u("circle", {
|
|
27028
27029
|
cx: "60",
|
|
27029
27030
|
cy: "60",
|
|
27030
27031
|
r: "30",
|
|
27031
27032
|
fill: "var(--uid-surface-raised)"
|
|
27032
27033
|
}, null, -1))
|
|
27033
|
-
], 8,
|
|
27034
|
-
u("ul",
|
|
27034
|
+
], 8, yz)),
|
|
27035
|
+
u("ul", kz, [
|
|
27035
27036
|
(c(!0), h(X, null, ae(i.value, (p, m) => (c(), h("li", { key: m }, [
|
|
27036
27037
|
u("span", {
|
|
27037
27038
|
class: "admin-donut-widget__dot",
|
|
27038
27039
|
style: Ve({ background: p.color })
|
|
27039
27040
|
}, null, 4),
|
|
27040
|
-
u("span",
|
|
27041
|
-
u("span",
|
|
27041
|
+
u("span", mz, y(p.label), 1),
|
|
27042
|
+
u("span", vz, y(p.pct) + "%", 1)
|
|
27042
27043
|
]))), 128))
|
|
27043
27044
|
])
|
|
27044
27045
|
]))
|
|
@@ -27046,10 +27047,10 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27046
27047
|
_: 1
|
|
27047
27048
|
}));
|
|
27048
27049
|
}
|
|
27049
|
-
}),
|
|
27050
|
+
}), fz = {
|
|
27050
27051
|
key: 0,
|
|
27051
27052
|
class: "admin-widget__hd"
|
|
27052
|
-
},
|
|
27053
|
+
}, gz = { class: "admin-widget__title" }, Mz = /* @__PURE__ */ ne({
|
|
27053
27054
|
__name: "RecentTableWidget",
|
|
27054
27055
|
props: {
|
|
27055
27056
|
title: { default: "" },
|
|
@@ -27079,8 +27080,8 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27079
27080
|
class: "admin-widget"
|
|
27080
27081
|
}, {
|
|
27081
27082
|
default: x(() => [
|
|
27082
|
-
a.title ? (c(), h("header",
|
|
27083
|
-
u("h3",
|
|
27083
|
+
a.title ? (c(), h("header", fz, [
|
|
27084
|
+
u("h3", gz, y(a.title), 1)
|
|
27084
27085
|
])) : H("", !0),
|
|
27085
27086
|
w(n(Lo), {
|
|
27086
27087
|
columns: r.value,
|
|
@@ -27093,16 +27094,16 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27093
27094
|
_: 1
|
|
27094
27095
|
}));
|
|
27095
27096
|
}
|
|
27096
|
-
}), J9 = /* @__PURE__ */ a1(
|
|
27097
|
+
}), J9 = /* @__PURE__ */ a1(Mz, [["__scopeId", "data-v-95378518"]]), Iz = {
|
|
27097
27098
|
key: 0,
|
|
27098
27099
|
class: "admin-widget__hd"
|
|
27099
|
-
},
|
|
27100
|
+
}, wz = { class: "admin-widget__title" }, xz = {
|
|
27100
27101
|
class: "admin-heatmap__cols-axis",
|
|
27101
27102
|
"aria-hidden": "true"
|
|
27102
|
-
},
|
|
27103
|
+
}, bz = { class: "admin-heatmap__row-label" }, Lz = { class: "admin-heatmap__cells" }, Cz = ["title"], _z = {
|
|
27103
27104
|
key: 2,
|
|
27104
27105
|
class: "admin-heatmap__empty"
|
|
27105
|
-
},
|
|
27106
|
+
}, Sz = /* @__PURE__ */ ne({
|
|
27106
27107
|
__name: "HeatmapWidget",
|
|
27107
27108
|
props: {
|
|
27108
27109
|
title: { default: "" },
|
|
@@ -27132,15 +27133,15 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27132
27133
|
class: "admin-widget admin-heatmap-widget"
|
|
27133
27134
|
}, {
|
|
27134
27135
|
default: x(() => [
|
|
27135
|
-
a.title ? (c(), h("header",
|
|
27136
|
-
u("h3",
|
|
27136
|
+
a.title ? (c(), h("header", Iz, [
|
|
27137
|
+
u("h3", wz, y(a.title), 1)
|
|
27137
27138
|
])) : H("", !0),
|
|
27138
27139
|
a.rows.length > 0 && a.cols.length > 0 && a.matrix.length > 0 ? (c(), h("div", {
|
|
27139
27140
|
key: 1,
|
|
27140
27141
|
class: "admin-heatmap",
|
|
27141
27142
|
style: Ve({ "--admin-heatmap-cols": a.cols.length })
|
|
27142
27143
|
}, [
|
|
27143
|
-
u("div",
|
|
27144
|
+
u("div", xz, [
|
|
27144
27145
|
(c(!0), h(X, null, ae(a.cols, (d, p) => (c(), h("span", {
|
|
27145
27146
|
key: `c-${p}`,
|
|
27146
27147
|
class: "admin-heatmap__col-label"
|
|
@@ -27150,25 +27151,25 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27150
27151
|
key: `r-${p}`,
|
|
27151
27152
|
class: "admin-heatmap__row"
|
|
27152
27153
|
}, [
|
|
27153
|
-
u("span",
|
|
27154
|
-
u("div",
|
|
27154
|
+
u("span", bz, y(a.rows[p] ?? ""), 1),
|
|
27155
|
+
u("div", Lz, [
|
|
27155
27156
|
(c(!0), h(X, null, ae(d, (m, k) => (c(), h("span", {
|
|
27156
27157
|
key: `cell-${p}-${k}`,
|
|
27157
27158
|
class: "admin-heatmap__cell",
|
|
27158
27159
|
style: Ve({ background: a.color, opacity: l(m) }),
|
|
27159
27160
|
title: r(m, p, k)
|
|
27160
|
-
}, null, 12,
|
|
27161
|
+
}, null, 12, Cz))), 128))
|
|
27161
27162
|
])
|
|
27162
27163
|
]))), 128))
|
|
27163
|
-
], 4)) : (c(), h("div",
|
|
27164
|
+
], 4)) : (c(), h("div", _z, y(n(v)("Нет данных")), 1))
|
|
27164
27165
|
]),
|
|
27165
27166
|
_: 1
|
|
27166
27167
|
}));
|
|
27167
27168
|
}
|
|
27168
|
-
}),
|
|
27169
|
+
}), qz = {
|
|
27169
27170
|
key: 0,
|
|
27170
27171
|
class: "admin-widget__hd"
|
|
27171
|
-
},
|
|
27172
|
+
}, Az = { class: "admin-widget__title" }, zz = { class: "admin-gauge-widget__body" }, Hz = /* @__PURE__ */ ne({
|
|
27172
27173
|
__name: "GaugeWidget",
|
|
27173
27174
|
props: {
|
|
27174
27175
|
title: { default: "" },
|
|
@@ -27201,10 +27202,10 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27201
27202
|
class: "admin-widget"
|
|
27202
27203
|
}, {
|
|
27203
27204
|
default: x(() => [
|
|
27204
|
-
a.title ? (c(), h("header",
|
|
27205
|
-
u("h3",
|
|
27205
|
+
a.title ? (c(), h("header", qz, [
|
|
27206
|
+
u("h3", Az, y(a.title), 1)
|
|
27206
27207
|
])) : H("", !0),
|
|
27207
|
-
u("div",
|
|
27208
|
+
u("div", zz, [
|
|
27208
27209
|
w(n(Qw), {
|
|
27209
27210
|
value: a.value,
|
|
27210
27211
|
min: a.min,
|
|
@@ -27222,10 +27223,10 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27222
27223
|
_: 1
|
|
27223
27224
|
}));
|
|
27224
27225
|
}
|
|
27225
|
-
}),
|
|
27226
|
+
}), Vz = {
|
|
27226
27227
|
key: 0,
|
|
27227
27228
|
class: "admin-widget__hd"
|
|
27228
|
-
},
|
|
27229
|
+
}, Pz = { class: "admin-widget__title" }, Fz = { class: "admin-markdown-widget" }, jz = /* @__PURE__ */ ne({
|
|
27229
27230
|
__name: "MarkdownWidget",
|
|
27230
27231
|
props: {
|
|
27231
27232
|
title: { default: "" },
|
|
@@ -27237,15 +27238,15 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27237
27238
|
class: "admin-widget"
|
|
27238
27239
|
}, {
|
|
27239
27240
|
default: x(() => [
|
|
27240
|
-
a.title ? (c(), h("header",
|
|
27241
|
-
u("h3",
|
|
27241
|
+
a.title ? (c(), h("header", Vz, [
|
|
27242
|
+
u("h3", Pz, y(a.title), 1)
|
|
27242
27243
|
])) : H("", !0),
|
|
27243
|
-
u("div",
|
|
27244
|
+
u("div", Fz, y(a.content), 1)
|
|
27244
27245
|
]),
|
|
27245
27246
|
_: 1
|
|
27246
27247
|
}));
|
|
27247
27248
|
}
|
|
27248
|
-
}),
|
|
27249
|
+
}), Dz = /* @__PURE__ */ ne({
|
|
27249
27250
|
__name: "ChartWidget",
|
|
27250
27251
|
props: {
|
|
27251
27252
|
type: {},
|
|
@@ -27301,10 +27302,10 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27301
27302
|
type: `chart:${o.value}`
|
|
27302
27303
|
}, null, 8, ["type"]));
|
|
27303
27304
|
}
|
|
27304
|
-
}),
|
|
27305
|
+
}), Bz = {
|
|
27305
27306
|
key: 0,
|
|
27306
27307
|
class: "admin-widget__hd"
|
|
27307
|
-
},
|
|
27308
|
+
}, Rz = { class: "admin-widget__title" }, $z = /* @__PURE__ */ ne({
|
|
27308
27309
|
__name: "TableWidget",
|
|
27309
27310
|
props: {
|
|
27310
27311
|
title: { default: "" },
|
|
@@ -27333,8 +27334,8 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27333
27334
|
class: "admin-widget"
|
|
27334
27335
|
}, {
|
|
27335
27336
|
default: x(() => [
|
|
27336
|
-
a.title ? (c(), h("header",
|
|
27337
|
-
u("h3",
|
|
27337
|
+
a.title ? (c(), h("header", Bz, [
|
|
27338
|
+
u("h3", Rz, y(a.title), 1)
|
|
27338
27339
|
])) : H("", !0),
|
|
27339
27340
|
w(n(Lo), {
|
|
27340
27341
|
columns: o.value,
|
|
@@ -27345,13 +27346,13 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27345
27346
|
_: 1
|
|
27346
27347
|
}));
|
|
27347
27348
|
}
|
|
27348
|
-
}),
|
|
27349
|
+
}), Tz = {
|
|
27349
27350
|
key: 0,
|
|
27350
27351
|
class: "admin-widget__hd"
|
|
27351
|
-
},
|
|
27352
|
+
}, Uz = { class: "admin-widget__title" }, Oz = ["src", "sandbox"], Ez = {
|
|
27352
27353
|
key: 2,
|
|
27353
27354
|
class: "admin-widget__empty"
|
|
27354
|
-
},
|
|
27355
|
+
}, Zz = /* @__PURE__ */ ne({
|
|
27355
27356
|
__name: "IframeWidget",
|
|
27356
27357
|
props: {
|
|
27357
27358
|
title: { default: "" },
|
|
@@ -27368,8 +27369,8 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27368
27369
|
class: "admin-widget admin-widget--iframe"
|
|
27369
27370
|
}, {
|
|
27370
27371
|
default: x(() => [
|
|
27371
|
-
a.title ? (c(), h("header",
|
|
27372
|
-
u("h3",
|
|
27372
|
+
a.title ? (c(), h("header", Tz, [
|
|
27373
|
+
u("h3", Uz, y(a.title), 1)
|
|
27373
27374
|
])) : H("", !0),
|
|
27374
27375
|
a.src ? (c(), h("iframe", {
|
|
27375
27376
|
key: 1,
|
|
@@ -27379,22 +27380,22 @@ const rA = "http://www.w3.org/2000/svg", dA = (a, t, o, l = []) => [`<${t}`, ...
|
|
|
27379
27380
|
class: "admin-widget__iframe",
|
|
27380
27381
|
loading: "lazy",
|
|
27381
27382
|
referrerpolicy: "no-referrer"
|
|
27382
|
-
}, null, 12,
|
|
27383
|
+
}, null, 12, Oz)) : (c(), h("p", Ez, y(n(v)("Не задан src")), 1))
|
|
27383
27384
|
]),
|
|
27384
27385
|
_: 1
|
|
27385
27386
|
}));
|
|
27386
27387
|
}
|
|
27387
|
-
}),
|
|
27388
|
-
function
|
|
27388
|
+
}), Wz = /* @__PURE__ */ a1(Zz, [["__scopeId", "data-v-ff47a97f"]]);
|
|
27389
|
+
function Gz() {
|
|
27389
27390
|
((t) => {
|
|
27390
27391
|
for (const [o, l] of Object.entries(t))
|
|
27391
|
-
|
|
27392
|
+
Nb(o) || Wb(o, l);
|
|
27392
27393
|
})({
|
|
27393
27394
|
// Stat / Stats overview
|
|
27394
27395
|
stat: jI,
|
|
27395
27396
|
stats: jI,
|
|
27396
27397
|
// Charts: универсальный диспетчер по data.type → bar/donut/...
|
|
27397
|
-
chart:
|
|
27398
|
+
chart: Dz,
|
|
27398
27399
|
"bar-chart": kw,
|
|
27399
27400
|
"donut-chart": mw,
|
|
27400
27401
|
// Recent list (таблица последних записей)
|
|
@@ -27402,21 +27403,21 @@ function Wz() {
|
|
|
27402
27403
|
recent_list: J9,
|
|
27403
27404
|
"recent-list": J9,
|
|
27404
27405
|
// Heatmap / Gauge / Markdown
|
|
27405
|
-
heatmap:
|
|
27406
|
-
gauge:
|
|
27407
|
-
markdown:
|
|
27406
|
+
heatmap: Sz,
|
|
27407
|
+
gauge: Hz,
|
|
27408
|
+
markdown: jz,
|
|
27408
27409
|
// Полнофункциональная таблица (resource-колонки) и iframe-встройка
|
|
27409
|
-
table:
|
|
27410
|
-
iframe:
|
|
27410
|
+
table: $z,
|
|
27411
|
+
iframe: Wz
|
|
27411
27412
|
});
|
|
27412
27413
|
}
|
|
27413
|
-
function
|
|
27414
|
+
function Nz(a) {
|
|
27414
27415
|
return a.success === !0;
|
|
27415
27416
|
}
|
|
27416
|
-
function
|
|
27417
|
+
function aj(a) {
|
|
27417
27418
|
return a.success === !1;
|
|
27418
27419
|
}
|
|
27419
|
-
function
|
|
27420
|
+
function Xz(a) {
|
|
27420
27421
|
const t = hx.create({
|
|
27421
27422
|
baseURL: a.baseURL,
|
|
27422
27423
|
withCredentials: !0,
|
|
@@ -27426,13 +27427,13 @@ function Nz(a) {
|
|
|
27426
27427
|
}
|
|
27427
27428
|
});
|
|
27428
27429
|
a.csrfToken && (t.defaults.headers.common["X-CSRF-TOKEN"] = a.csrfToken), a.locale && (t.defaults.headers.common["X-Admin-Locale"] = a.locale), t.interceptors.request.use((r) => {
|
|
27429
|
-
const i =
|
|
27430
|
+
const i = Kz("XSRF-TOKEN");
|
|
27430
27431
|
return i && (r.headers.set("X-XSRF-TOKEN", decodeURIComponent(i)), r.headers.delete("X-CSRF-TOKEN")), r;
|
|
27431
27432
|
}), t.interceptors.response.use(
|
|
27432
27433
|
(r) => {
|
|
27433
27434
|
const i = r.data;
|
|
27434
27435
|
if (i && typeof i == "object" && "success" in i) {
|
|
27435
|
-
if (
|
|
27436
|
+
if (Nz(i))
|
|
27436
27437
|
return r.data = i.payload, r;
|
|
27437
27438
|
throw bI(r.status, i.payload);
|
|
27438
27439
|
}
|
|
@@ -27462,26 +27463,26 @@ function Nz(a) {
|
|
|
27462
27463
|
}
|
|
27463
27464
|
};
|
|
27464
27465
|
}
|
|
27465
|
-
function
|
|
27466
|
+
function Kz(a) {
|
|
27466
27467
|
if (typeof document > "u") return null;
|
|
27467
|
-
const t = document.cookie.match(new RegExp("(^|; )" +
|
|
27468
|
+
const t = document.cookie.match(new RegExp("(^|; )" + Jz(a) + "=([^;]*)"));
|
|
27468
27469
|
return t ? t[2] : null;
|
|
27469
27470
|
}
|
|
27470
|
-
function
|
|
27471
|
+
function Jz(a) {
|
|
27471
27472
|
return a.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
27472
27473
|
}
|
|
27473
27474
|
function nc(a, t) {
|
|
27474
27475
|
const o = a.permissions?.[t];
|
|
27475
27476
|
return typeof o == "string" && o.length > 0 ? [o] : [];
|
|
27476
27477
|
}
|
|
27477
|
-
function
|
|
27478
|
+
function Yz(a, t) {
|
|
27478
27479
|
const o = a.permissions?.[t];
|
|
27479
27480
|
return typeof o == "string" && o.length > 0 ? [o] : [];
|
|
27480
27481
|
}
|
|
27481
|
-
function
|
|
27482
|
+
function Qz(a) {
|
|
27482
27483
|
return Array.isArray(a.permission) ? a.permission : typeof a.permission == "string" && a.permission.length > 0 ? [a.permission] : [];
|
|
27483
27484
|
}
|
|
27484
|
-
function
|
|
27485
|
+
function eH(a, t) {
|
|
27485
27486
|
const o = a.slug, l = `/r/${o}`;
|
|
27486
27487
|
return [
|
|
27487
27488
|
{
|
|
@@ -27542,7 +27543,7 @@ function Qz(a, t) {
|
|
|
27542
27543
|
}
|
|
27543
27544
|
];
|
|
27544
27545
|
}
|
|
27545
|
-
function
|
|
27546
|
+
function aH(a, t) {
|
|
27546
27547
|
return {
|
|
27547
27548
|
path: `/screens/${a.slug}`,
|
|
27548
27549
|
name: `admin.screen.${a.slug}`,
|
|
@@ -27552,11 +27553,11 @@ function eH(a, t) {
|
|
|
27552
27553
|
kind: "screen",
|
|
27553
27554
|
slug: a.slug,
|
|
27554
27555
|
title: a.name,
|
|
27555
|
-
permissions:
|
|
27556
|
+
permissions: Qz(a)
|
|
27556
27557
|
}
|
|
27557
27558
|
};
|
|
27558
27559
|
}
|
|
27559
|
-
function
|
|
27560
|
+
function tH(a, t) {
|
|
27560
27561
|
return {
|
|
27561
27562
|
path: `/settings/${a.slug}`,
|
|
27562
27563
|
name: `admin.settings.${a.slug}`,
|
|
@@ -27566,11 +27567,11 @@ function aH(a, t) {
|
|
|
27566
27567
|
kind: "settings",
|
|
27567
27568
|
slug: a.slug,
|
|
27568
27569
|
title: a.label,
|
|
27569
|
-
permissions:
|
|
27570
|
+
permissions: Yz(a, "view")
|
|
27570
27571
|
}
|
|
27571
27572
|
};
|
|
27572
27573
|
}
|
|
27573
|
-
function
|
|
27574
|
+
function nH(a, t) {
|
|
27574
27575
|
if (typeof a.slug != "string" || a.slug.length === 0) return null;
|
|
27575
27576
|
const o = a.permission, l = Array.isArray(o) ? o : typeof o == "string" && o.length > 0 ? [o] : [];
|
|
27576
27577
|
return {
|
|
@@ -27586,22 +27587,22 @@ function tH(a, t) {
|
|
|
27586
27587
|
}
|
|
27587
27588
|
};
|
|
27588
27589
|
}
|
|
27589
|
-
function
|
|
27590
|
+
function oH(a, t) {
|
|
27590
27591
|
if (a === null) return [];
|
|
27591
27592
|
const o = [];
|
|
27592
27593
|
for (const l of a.resources)
|
|
27593
|
-
o.push(...
|
|
27594
|
+
o.push(...eH(l, t));
|
|
27594
27595
|
for (const l of a.screens)
|
|
27595
|
-
o.push(eH(l, t));
|
|
27596
|
-
for (const l of a.settings)
|
|
27597
27596
|
o.push(aH(l, t));
|
|
27597
|
+
for (const l of a.settings)
|
|
27598
|
+
o.push(tH(l, t));
|
|
27598
27599
|
for (const l of a.dashboards) {
|
|
27599
|
-
const r =
|
|
27600
|
+
const r = nH(l, t);
|
|
27600
27601
|
r && o.push(r);
|
|
27601
27602
|
}
|
|
27602
27603
|
return o;
|
|
27603
27604
|
}
|
|
27604
|
-
function
|
|
27605
|
+
function cH(a = {}) {
|
|
27605
27606
|
const t = a.loginRouteName ?? "admin.login", o = a.forbiddenRouteName ?? "admin.forbidden", l = a.redirectQueryKey ?? "redirect";
|
|
27606
27607
|
return (r) => {
|
|
27607
27608
|
if (r.name === t)
|
|
@@ -27621,7 +27622,7 @@ function oH(a = {}) {
|
|
|
27621
27622
|
return Array.isArray(d) && d.length > 0 && !i.hasAnyPermission(d) ? { name: o } : !0;
|
|
27622
27623
|
};
|
|
27623
27624
|
}
|
|
27624
|
-
function
|
|
27625
|
+
function iH(a = {}) {
|
|
27625
27626
|
const t = a.template, o = a.brand ?? "", l = a.fallback ?? "";
|
|
27626
27627
|
return (r) => {
|
|
27627
27628
|
if (typeof document > "u") return;
|
|
@@ -27630,16 +27631,16 @@ function cH(a = {}) {
|
|
|
27630
27631
|
t ? s = t.replace("{title}", i).replace("{brand}", o) : i && o ? s = `${i} · ${o}` : s = i || o, document.title = s;
|
|
27631
27632
|
};
|
|
27632
27633
|
}
|
|
27633
|
-
const
|
|
27634
|
+
const lH = [
|
|
27634
27635
|
"admin.resource.",
|
|
27635
27636
|
"admin.screen.",
|
|
27636
27637
|
"admin.settings.",
|
|
27637
27638
|
"admin.dashboard."
|
|
27638
27639
|
];
|
|
27639
|
-
function lH(a) {
|
|
27640
|
-
return typeof a != "string" ? !1 : iH.some((t) => a.startsWith(t));
|
|
27641
|
-
}
|
|
27642
27640
|
function rH(a) {
|
|
27641
|
+
return typeof a != "string" ? !1 : lH.some((t) => a.startsWith(t));
|
|
27642
|
+
}
|
|
27643
|
+
function dH(a) {
|
|
27643
27644
|
const t = a.base ?? "/admin", o = a.history ?? TI(t), l = [
|
|
27644
27645
|
{
|
|
27645
27646
|
path: "/login",
|
|
@@ -27690,12 +27691,12 @@ function rH(a) {
|
|
|
27690
27691
|
history: o,
|
|
27691
27692
|
routes: [...l, ...a.extraRoutes ?? [], r]
|
|
27692
27693
|
});
|
|
27693
|
-
return i.beforeEach(
|
|
27694
|
+
return i.beforeEach(cH(a.authGuard)), i.afterEach(iH(a.titleGuard)), i.replaceManifestRoutes = (s) => {
|
|
27694
27695
|
const d = i.getRoutes();
|
|
27695
27696
|
for (const m of d)
|
|
27696
|
-
|
|
27697
|
+
rH(m.name) && i.removeRoute(m.name);
|
|
27697
27698
|
i.hasRoute("admin.notFound") && i.removeRoute("admin.notFound");
|
|
27698
|
-
const p =
|
|
27699
|
+
const p = oH(s, a.components);
|
|
27699
27700
|
for (const m of p)
|
|
27700
27701
|
i.addRoute(m);
|
|
27701
27702
|
i.addRoute(r);
|
|
@@ -27935,20 +27936,20 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
27935
27936
|
_: 1
|
|
27936
27937
|
}, 8, ["label", "hint", "error", "required", "disabled"]));
|
|
27937
27938
|
}
|
|
27938
|
-
}),
|
|
27939
|
+
}), sH = {
|
|
27939
27940
|
key: 0,
|
|
27940
27941
|
class: "admin-field__label"
|
|
27941
|
-
},
|
|
27942
|
+
}, hH = {
|
|
27942
27943
|
key: 0,
|
|
27943
27944
|
class: "admin-field__required",
|
|
27944
27945
|
"aria-hidden": "true"
|
|
27945
|
-
},
|
|
27946
|
+
}, uH = { class: "admin-tags__chip-text" }, yH = ["aria-label", "onClick"], pH = ["value", "placeholder", "disabled"], kH = { class: "admin-tags__group-label" }, mH = ["aria-selected", "onMousedown", "onMouseenter"], vH = ["aria-selected", "onMousedown", "onMouseenter"], fH = {
|
|
27946
27947
|
key: 1,
|
|
27947
27948
|
class: "admin-field__error"
|
|
27948
|
-
},
|
|
27949
|
+
}, gH = {
|
|
27949
27950
|
key: 2,
|
|
27950
27951
|
class: "admin-field__help"
|
|
27951
|
-
},
|
|
27952
|
+
}, MH = /* @__PURE__ */ ne({
|
|
27952
27953
|
__name: "TagsField",
|
|
27953
27954
|
props: {
|
|
27954
27955
|
name: {},
|
|
@@ -28054,9 +28055,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28054
28055
|
), (Z, J) => (c(), h("div", {
|
|
28055
28056
|
class: fe(["admin-field", { "admin-field--invalid": r.value !== void 0 }])
|
|
28056
28057
|
}, [
|
|
28057
|
-
a.label ? (c(), h("label",
|
|
28058
|
+
a.label ? (c(), h("label", sH, [
|
|
28058
28059
|
u("span", null, y(a.label), 1),
|
|
28059
|
-
a.required ? (c(), h("span",
|
|
28060
|
+
a.required ? (c(), h("span", hH, "*")) : H("", !0)
|
|
28060
28061
|
])) : H("", !0),
|
|
28061
28062
|
u("div", {
|
|
28062
28063
|
ref_key: "containerRef",
|
|
@@ -28074,7 +28075,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28074
28075
|
key: `${R}-${_}`,
|
|
28075
28076
|
class: "admin-tags__chip"
|
|
28076
28077
|
}, [
|
|
28077
|
-
u("span",
|
|
28078
|
+
u("span", uH, y(R), 1),
|
|
28078
28079
|
a.disabled ? H("", !0) : (c(), h("button", {
|
|
28079
28080
|
key: 0,
|
|
28080
28081
|
type: "button",
|
|
@@ -28086,7 +28087,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28086
28087
|
icon: n(He),
|
|
28087
28088
|
size: 10
|
|
28088
28089
|
}, null, 8, ["icon"])
|
|
28089
|
-
], 8,
|
|
28090
|
+
], 8, yH))
|
|
28090
28091
|
]))), 128)),
|
|
28091
28092
|
u("input", {
|
|
28092
28093
|
ref_key: "inputRef",
|
|
@@ -28100,7 +28101,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28100
28101
|
onKeydown: W,
|
|
28101
28102
|
onFocus: J[0] || (J[0] = (R) => s.value = !0),
|
|
28102
28103
|
onBlur: te
|
|
28103
|
-
}, null, 40,
|
|
28104
|
+
}, null, 40, pH),
|
|
28104
28105
|
(c(), z(lI, { to: "body" }, [
|
|
28105
28106
|
s.value && B.value.length > 0 ? (c(), h("div", {
|
|
28106
28107
|
key: 0,
|
|
@@ -28113,7 +28114,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28113
28114
|
T.value ? (c(!0), h(X, { key: 0 }, ae(P.value, (R, _) => (c(), h(X, {
|
|
28114
28115
|
key: `g-${_}-${R.label}`
|
|
28115
28116
|
}, [
|
|
28116
|
-
u("div",
|
|
28117
|
+
u("div", kH, y(R.label), 1),
|
|
28117
28118
|
(c(!0), h(X, null, ae(R.items, (j) => (c(), h("button", {
|
|
28118
28119
|
key: j,
|
|
28119
28120
|
type: "button",
|
|
@@ -28129,7 +28130,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28129
28130
|
"aria-selected": F(B.value.indexOf(j)),
|
|
28130
28131
|
onMousedown: me((S) => G(j), ["prevent"]),
|
|
28131
28132
|
onMouseenter: (S) => V.value = B.value.indexOf(j)
|
|
28132
|
-
}, y(j), 43,
|
|
28133
|
+
}, y(j), 43, mH))), 128))
|
|
28133
28134
|
], 64))), 128)) : (c(!0), h(X, { key: 1 }, ae(B.value, (R, _) => (c(), h("button", {
|
|
28134
28135
|
key: R,
|
|
28135
28136
|
type: "button",
|
|
@@ -28138,31 +28139,31 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28138
28139
|
"aria-selected": _ === V.value,
|
|
28139
28140
|
onMousedown: me((j) => G(R), ["prevent"]),
|
|
28140
28141
|
onMouseenter: (j) => V.value = _
|
|
28141
|
-
}, y(R), 43,
|
|
28142
|
+
}, y(R), 43, vH))), 128))
|
|
28142
28143
|
], 4)) : H("", !0)
|
|
28143
28144
|
]))
|
|
28144
28145
|
], 2),
|
|
28145
|
-
r.value ? (c(), h("p",
|
|
28146
|
+
r.value ? (c(), h("p", fH, y(r.value), 1)) : a.help ? (c(), h("p", gH, y(a.help), 1)) : H("", !0)
|
|
28146
28147
|
], 2));
|
|
28147
28148
|
}
|
|
28148
|
-
}),
|
|
28149
|
+
}), IH = {
|
|
28149
28150
|
key: 0,
|
|
28150
28151
|
class: "admin-field__label"
|
|
28151
|
-
},
|
|
28152
|
+
}, wH = {
|
|
28152
28153
|
key: 0,
|
|
28153
28154
|
class: "admin-field__required",
|
|
28154
28155
|
"aria-hidden": "true"
|
|
28155
|
-
},
|
|
28156
|
+
}, xH = { class: "admin-translatable" }, bH = {
|
|
28156
28157
|
class: "admin-translatable__tabs",
|
|
28157
28158
|
role: "tablist"
|
|
28158
|
-
},
|
|
28159
|
+
}, LH = ["aria-selected", "onClick"], CH = {
|
|
28159
28160
|
key: 0,
|
|
28160
28161
|
class: "admin-translatable__dot",
|
|
28161
28162
|
"aria-hidden": "true"
|
|
28162
|
-
},
|
|
28163
|
+
}, _H = { class: "admin-translatable__panel" }, SH = ["value", "placeholder", "rows", "disabled"], qH = {
|
|
28163
28164
|
key: 1,
|
|
28164
28165
|
class: "admin-field__error"
|
|
28165
|
-
},
|
|
28166
|
+
}, AH = {
|
|
28166
28167
|
key: 2,
|
|
28167
28168
|
class: "admin-field__help"
|
|
28168
28169
|
}, DI = /* @__PURE__ */ ne({
|
|
@@ -28204,12 +28205,12 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28204
28205
|
return (k, g) => (c(), h("div", {
|
|
28205
28206
|
class: fe(["admin-field", { "admin-field--invalid": p.value !== void 0 }])
|
|
28206
28207
|
}, [
|
|
28207
|
-
a.label ? (c(), h("label",
|
|
28208
|
+
a.label ? (c(), h("label", IH, [
|
|
28208
28209
|
u("span", null, y(a.label), 1),
|
|
28209
|
-
a.required ? (c(), h("span",
|
|
28210
|
+
a.required ? (c(), h("span", wH, "*")) : H("", !0)
|
|
28210
28211
|
])) : H("", !0),
|
|
28211
|
-
u("div",
|
|
28212
|
-
u("div",
|
|
28212
|
+
u("div", xH, [
|
|
28213
|
+
u("div", bH, [
|
|
28213
28214
|
(c(!0), h(X, null, ae(r.value, (b) => (c(), h("button", {
|
|
28214
28215
|
key: b,
|
|
28215
28216
|
type: "button",
|
|
@@ -28225,10 +28226,10 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28225
28226
|
onClick: (L) => i.value = b
|
|
28226
28227
|
}, [
|
|
28227
28228
|
D(y(b.toUpperCase()) + " ", 1),
|
|
28228
|
-
m(b) ? (c(), h("span",
|
|
28229
|
-
], 10,
|
|
28229
|
+
m(b) ? (c(), h("span", CH)) : H("", !0)
|
|
28230
|
+
], 10, LH))), 128))
|
|
28230
28231
|
]),
|
|
28231
|
-
u("div",
|
|
28232
|
+
u("div", _H, [
|
|
28232
28233
|
a.multiline ? (c(), h("textarea", {
|
|
28233
28234
|
key: 1,
|
|
28234
28235
|
value: s.value[i.value] ?? "",
|
|
@@ -28237,7 +28238,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28237
28238
|
disabled: a.disabled,
|
|
28238
28239
|
class: "admin-translatable__textarea",
|
|
28239
28240
|
onInput: g[1] || (g[1] = (b) => d(i.value, b.target.value))
|
|
28240
|
-
}, null, 40,
|
|
28241
|
+
}, null, 40, SH)) : (c(), z(n(Le), {
|
|
28241
28242
|
key: 0,
|
|
28242
28243
|
"model-value": s.value[i.value] ?? "",
|
|
28243
28244
|
placeholder: a.placeholder ?? "",
|
|
@@ -28246,23 +28247,23 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28246
28247
|
}, null, 8, ["model-value", "placeholder", "disabled"]))
|
|
28247
28248
|
])
|
|
28248
28249
|
]),
|
|
28249
|
-
p.value ? (c(), h("p",
|
|
28250
|
+
p.value ? (c(), h("p", qH, y(p.value), 1)) : a.help ? (c(), h("p", AH, y(a.help), 1)) : H("", !0)
|
|
28250
28251
|
], 2));
|
|
28251
28252
|
}
|
|
28252
|
-
}),
|
|
28253
|
+
}), zH = {
|
|
28253
28254
|
key: 0,
|
|
28254
28255
|
class: "admin-field__label"
|
|
28255
|
-
},
|
|
28256
|
+
}, HH = {
|
|
28256
28257
|
key: 0,
|
|
28257
28258
|
class: "admin-field__required",
|
|
28258
28259
|
"aria-hidden": "true"
|
|
28259
|
-
},
|
|
28260
|
+
}, VH = ["onMousedown"], PH = {
|
|
28260
28261
|
key: 1,
|
|
28261
28262
|
class: "admin-field__error"
|
|
28262
|
-
},
|
|
28263
|
+
}, FH = {
|
|
28263
28264
|
key: 2,
|
|
28264
28265
|
class: "admin-field__help"
|
|
28265
|
-
},
|
|
28266
|
+
}, jH = /* @__PURE__ */ ne({
|
|
28266
28267
|
__name: "WysiwygField",
|
|
28267
28268
|
props: {
|
|
28268
28269
|
name: {},
|
|
@@ -28426,9 +28427,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28426
28427
|
}), (R, _) => (c(), h("div", {
|
|
28427
28428
|
class: fe(["admin-field", { "admin-field--invalid": r.value !== void 0 }])
|
|
28428
28429
|
}, [
|
|
28429
|
-
a.label ? (c(), h("label",
|
|
28430
|
+
a.label ? (c(), h("label", zH, [
|
|
28430
28431
|
u("span", null, y(a.label), 1),
|
|
28431
|
-
a.required ? (c(), h("span",
|
|
28432
|
+
a.required ? (c(), h("span", HH, "*")) : H("", !0)
|
|
28432
28433
|
])) : H("", !0),
|
|
28433
28434
|
u("div", {
|
|
28434
28435
|
ref_key: "containerRef",
|
|
@@ -28459,7 +28460,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28459
28460
|
class: fe(["admin-wysiwyg-img__handle", `admin-wysiwyg-img__handle--${j}`]),
|
|
28460
28461
|
style: Ve(J(j, M.value)),
|
|
28461
28462
|
onMousedown: (S) => G(j, S)
|
|
28462
|
-
}, null, 46,
|
|
28463
|
+
}, null, 46, VH)), 64)) : H("", !0),
|
|
28463
28464
|
C.value ? (c(), h("div", {
|
|
28464
28465
|
key: 1,
|
|
28465
28466
|
class: "admin-wysiwyg-img__dropline",
|
|
@@ -28470,25 +28471,25 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28470
28471
|
})
|
|
28471
28472
|
}, null, 4)) : H("", !0)
|
|
28472
28473
|
], 512),
|
|
28473
|
-
r.value ? (c(), h("p",
|
|
28474
|
+
r.value ? (c(), h("p", PH, y(r.value), 1)) : a.help ? (c(), h("p", FH, y(a.help), 1)) : H("", !0)
|
|
28474
28475
|
], 2));
|
|
28475
28476
|
}
|
|
28476
|
-
}),
|
|
28477
|
+
}), DH = /* @__PURE__ */ a1(jH, [["__scopeId", "data-v-e1cee25f"]]), BH = { class: "admin-file-field" }, RH = {
|
|
28477
28478
|
key: 0,
|
|
28478
28479
|
class: "admin-file-field__label"
|
|
28479
|
-
},
|
|
28480
|
+
}, $H = {
|
|
28480
28481
|
key: 0,
|
|
28481
28482
|
class: "admin-file-field__required"
|
|
28482
|
-
},
|
|
28483
|
+
}, TH = { key: 1 }, UH = { class: "admin-file-field__hint" }, OH = ["accept"], EH = {
|
|
28483
28484
|
key: 2,
|
|
28484
28485
|
class: "admin-file-field__preview"
|
|
28485
|
-
},
|
|
28486
|
+
}, ZH = { class: "admin-file-field__preview-info" }, WH = ["href"], GH = { class: "admin-file-field__preview-meta" }, NH = {
|
|
28486
28487
|
key: 3,
|
|
28487
28488
|
class: "admin-file-field__help"
|
|
28488
|
-
},
|
|
28489
|
+
}, XH = {
|
|
28489
28490
|
key: 4,
|
|
28490
28491
|
class: "admin-file-field__error"
|
|
28491
|
-
},
|
|
28492
|
+
}, KH = /* @__PURE__ */ ne({
|
|
28492
28493
|
__name: "FileField",
|
|
28493
28494
|
props: {
|
|
28494
28495
|
name: {},
|
|
@@ -28538,19 +28539,19 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28538
28539
|
function b() {
|
|
28539
28540
|
o.setField(t.name, null);
|
|
28540
28541
|
}
|
|
28541
|
-
return (L, M) => (c(), h("div",
|
|
28542
|
-
a.label ? (c(), h("label",
|
|
28542
|
+
return (L, M) => (c(), h("div", BH, [
|
|
28543
|
+
a.label ? (c(), h("label", RH, [
|
|
28543
28544
|
D(y(a.label), 1),
|
|
28544
|
-
a.required ? (c(), h("span",
|
|
28545
|
+
a.required ? (c(), h("span", $H, "*")) : H("", !0)
|
|
28545
28546
|
])) : H("", !0),
|
|
28546
|
-
l.value ? (c(), h("div",
|
|
28547
|
-
u("div",
|
|
28547
|
+
l.value ? (c(), h("div", EH, [
|
|
28548
|
+
u("div", ZH, [
|
|
28548
28549
|
u("a", {
|
|
28549
28550
|
href: l.value.url,
|
|
28550
28551
|
target: "_blank",
|
|
28551
28552
|
rel: "noopener"
|
|
28552
|
-
}, y(l.value.name), 9,
|
|
28553
|
-
u("span",
|
|
28553
|
+
}, y(l.value.name), 9, WH),
|
|
28554
|
+
u("span", GH, y(l.value.mime), 1)
|
|
28554
28555
|
]),
|
|
28555
28556
|
w(n(oe), {
|
|
28556
28557
|
variant: "ghost",
|
|
@@ -28563,7 +28564,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28563
28564
|
]),
|
|
28564
28565
|
_: 1
|
|
28565
28566
|
})
|
|
28566
|
-
])) : (c(), h("div",
|
|
28567
|
+
])) : (c(), h("div", TH, [
|
|
28567
28568
|
u("div", {
|
|
28568
28569
|
class: fe(["admin-file-field__drop", { "admin-file-field__drop--over": d.value }]),
|
|
28569
28570
|
onClick: p,
|
|
@@ -28575,7 +28576,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28575
28576
|
icon: n(oo),
|
|
28576
28577
|
size: 24
|
|
28577
28578
|
}, null, 8, ["icon"]),
|
|
28578
|
-
u("p",
|
|
28579
|
+
u("p", UH, y(s.value ? n(v)("Загрузка…") : n(v)("Кликните или перетащите файл сюда")), 1)
|
|
28579
28580
|
], 34),
|
|
28580
28581
|
u("input", {
|
|
28581
28582
|
ref_key: "fileInput",
|
|
@@ -28584,34 +28585,34 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28584
28585
|
accept: a.accept ?? void 0,
|
|
28585
28586
|
class: "admin-file-field__input",
|
|
28586
28587
|
onChange: m
|
|
28587
|
-
}, null, 40,
|
|
28588
|
+
}, null, 40, OH)
|
|
28588
28589
|
])),
|
|
28589
|
-
a.help && !r.value ? (c(), h("p",
|
|
28590
|
-
r.value ? (c(), h("p",
|
|
28590
|
+
a.help && !r.value ? (c(), h("p", NH, y(a.help), 1)) : H("", !0),
|
|
28591
|
+
r.value ? (c(), h("p", XH, y(r.value), 1)) : H("", !0)
|
|
28591
28592
|
]));
|
|
28592
28593
|
}
|
|
28593
|
-
}), BI = /* @__PURE__ */ a1(
|
|
28594
|
+
}), BI = /* @__PURE__ */ a1(KH, [["__scopeId", "data-v-ec4a41a3"]]), JH = { class: "admin-image-cropper" }, YH = {
|
|
28594
28595
|
key: 0,
|
|
28595
28596
|
class: "admin-image-cropper__label"
|
|
28596
|
-
},
|
|
28597
|
+
}, QH = {
|
|
28597
28598
|
key: 0,
|
|
28598
28599
|
class: "admin-image-cropper__required"
|
|
28599
|
-
},
|
|
28600
|
+
}, eV = { key: 1 }, aV = { class: "admin-image-cropper__hint" }, tV = {
|
|
28600
28601
|
key: 0,
|
|
28601
28602
|
class: "admin-image-cropper__hint-sub"
|
|
28602
|
-
},
|
|
28603
|
+
}, nV = ["accept"], oV = {
|
|
28603
28604
|
key: 2,
|
|
28604
28605
|
class: "admin-image-cropper__crop"
|
|
28605
|
-
},
|
|
28606
|
+
}, cV = ["src", "width", "height"], iV = { class: "admin-image-cropper__actions" }, lV = {
|
|
28606
28607
|
key: 3,
|
|
28607
28608
|
class: "admin-image-cropper__preview"
|
|
28608
|
-
},
|
|
28609
|
+
}, rV = ["src", "alt"], dV = { class: "admin-image-cropper__preview-info" }, sV = { class: "admin-image-cropper__preview-name" }, hV = { class: "admin-image-cropper__preview-meta" }, uV = { class: "admin-image-cropper__preview-actions" }, yV = {
|
|
28609
28610
|
key: 4,
|
|
28610
28611
|
class: "admin-image-cropper__help"
|
|
28611
|
-
},
|
|
28612
|
+
}, pV = {
|
|
28612
28613
|
key: 5,
|
|
28613
28614
|
class: "admin-image-cropper__error"
|
|
28614
|
-
},
|
|
28615
|
+
}, kV = 500, mV = 400, vV = /* @__PURE__ */ ne({
|
|
28615
28616
|
__name: "ImageCropperField",
|
|
28616
28617
|
props: {
|
|
28617
28618
|
name: {},
|
|
@@ -28661,7 +28662,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28661
28662
|
}
|
|
28662
28663
|
function W() {
|
|
28663
28664
|
if (!p.value) return;
|
|
28664
|
-
const R = p.value.naturalWidth, _ = p.value.naturalHeight, j = Math.min(
|
|
28665
|
+
const R = p.value.naturalWidth, _ = p.value.naturalHeight, j = Math.min(kV / R, mV / _, 1);
|
|
28665
28666
|
k.value = j, g.value = { w: R * j, h: _ * j };
|
|
28666
28667
|
}
|
|
28667
28668
|
function U() {
|
|
@@ -28755,12 +28756,12 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28755
28756
|
function J() {
|
|
28756
28757
|
o.setField(t.name, null);
|
|
28757
28758
|
}
|
|
28758
|
-
return jo(te), (R, _) => (c(), h("div",
|
|
28759
|
-
a.label ? (c(), h("label",
|
|
28759
|
+
return jo(te), (R, _) => (c(), h("div", JH, [
|
|
28760
|
+
a.label ? (c(), h("label", YH, [
|
|
28760
28761
|
D(y(a.label), 1),
|
|
28761
|
-
a.required ? (c(), h("span",
|
|
28762
|
+
a.required ? (c(), h("span", QH, "*")) : H("", !0)
|
|
28762
28763
|
])) : H("", !0),
|
|
28763
|
-
!l.value && !p.value ? (c(), h("div",
|
|
28764
|
+
!l.value && !p.value ? (c(), h("div", eV, [
|
|
28764
28765
|
u("div", {
|
|
28765
28766
|
class: fe(["admin-image-cropper__drop", { "admin-image-cropper__drop--over": s.value }]),
|
|
28766
28767
|
onClick: M,
|
|
@@ -28772,8 +28773,8 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28772
28773
|
icon: n(to),
|
|
28773
28774
|
size: 28
|
|
28774
28775
|
}, null, 8, ["icon"]),
|
|
28775
|
-
u("p",
|
|
28776
|
-
a.outputWidth && a.outputHeight ? (c(), h("p",
|
|
28776
|
+
u("p", aV, y(n(v)("Кликните или перетащите картинку")), 1),
|
|
28777
|
+
a.outputWidth && a.outputHeight ? (c(), h("p", tV, " Будет обрезано до " + y(a.outputWidth) + "×" + y(a.outputHeight) + " px ", 1)) : H("", !0)
|
|
28777
28778
|
], 34),
|
|
28778
28779
|
u("input", {
|
|
28779
28780
|
ref_key: "fileInput",
|
|
@@ -28782,8 +28783,8 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28782
28783
|
accept: a.accept ?? "image/*",
|
|
28783
28784
|
class: "admin-image-cropper__input",
|
|
28784
28785
|
onChange: C
|
|
28785
|
-
}, null, 40,
|
|
28786
|
-
])) : p.value ? (c(), h("div",
|
|
28786
|
+
}, null, 40, nV)
|
|
28787
|
+
])) : p.value ? (c(), h("div", oV, [
|
|
28787
28788
|
u("div", {
|
|
28788
28789
|
class: "admin-image-cropper__canvas-wrap",
|
|
28789
28790
|
style: Ve({ width: g.value.w + "px", height: g.value.h + "px" })
|
|
@@ -28794,7 +28795,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28794
28795
|
height: g.value.h,
|
|
28795
28796
|
class: "admin-image-cropper__img",
|
|
28796
28797
|
alt: ""
|
|
28797
|
-
}, null, 8,
|
|
28798
|
+
}, null, 8, cV),
|
|
28798
28799
|
u("div", {
|
|
28799
28800
|
class: "admin-image-cropper__rect",
|
|
28800
28801
|
style: Ve({ left: b.value.x + "px", top: b.value.y + "px", width: b.value.w + "px", height: b.value.h + "px" }),
|
|
@@ -28818,7 +28819,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28818
28819
|
}, null, 32)
|
|
28819
28820
|
], 36)
|
|
28820
28821
|
], 4),
|
|
28821
|
-
u("div",
|
|
28822
|
+
u("div", iV, [
|
|
28822
28823
|
w(n(oe), {
|
|
28823
28824
|
variant: "primary",
|
|
28824
28825
|
size: "sm",
|
|
@@ -28844,16 +28845,16 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28844
28845
|
_: 1
|
|
28845
28846
|
}, 8, ["disabled"])
|
|
28846
28847
|
])
|
|
28847
|
-
])) : l.value ? (c(), h("div",
|
|
28848
|
+
])) : l.value ? (c(), h("div", lV, [
|
|
28848
28849
|
u("img", {
|
|
28849
28850
|
src: l.value.url,
|
|
28850
28851
|
alt: l.value.name,
|
|
28851
28852
|
class: "admin-image-cropper__preview-img"
|
|
28852
|
-
}, null, 8,
|
|
28853
|
-
u("div",
|
|
28854
|
-
u("div",
|
|
28855
|
-
u("div",
|
|
28856
|
-
u("div",
|
|
28853
|
+
}, null, 8, rV),
|
|
28854
|
+
u("div", dV, [
|
|
28855
|
+
u("div", sV, y(l.value.name), 1),
|
|
28856
|
+
u("div", hV, y(l.value.mime) + " · " + y((l.value.size / 1024).toFixed(1)) + " KB", 1),
|
|
28857
|
+
u("div", uV, [
|
|
28857
28858
|
w(n(oe), {
|
|
28858
28859
|
variant: "ghost",
|
|
28859
28860
|
size: "sm",
|
|
@@ -28879,24 +28880,24 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28879
28880
|
])
|
|
28880
28881
|
])
|
|
28881
28882
|
])) : H("", !0),
|
|
28882
|
-
a.help && !r.value ? (c(), h("p",
|
|
28883
|
-
r.value ? (c(), h("p",
|
|
28883
|
+
a.help && !r.value ? (c(), h("p", yV, y(a.help), 1)) : H("", !0),
|
|
28884
|
+
r.value ? (c(), h("p", pV, y(r.value), 1)) : H("", !0)
|
|
28884
28885
|
]));
|
|
28885
28886
|
}
|
|
28886
|
-
}),
|
|
28887
|
+
}), fV = /* @__PURE__ */ a1(vV, [["__scopeId", "data-v-f528da4d"]]), gV = {
|
|
28887
28888
|
key: 0,
|
|
28888
28889
|
class: "uid-form-field__label"
|
|
28889
|
-
},
|
|
28890
|
+
}, MV = {
|
|
28890
28891
|
key: 0,
|
|
28891
28892
|
class: "uid-form-field__required",
|
|
28892
28893
|
"aria-hidden": "true"
|
|
28893
|
-
},
|
|
28894
|
+
}, IV = { class: "admin-keyvalue__rows" }, wV = { class: "admin-keyvalue__head" }, xV = ["id"], bV = ["value"], LV = {
|
|
28894
28895
|
key: 2,
|
|
28895
28896
|
class: "uid-form-field__hint uid-form-field__hint--error"
|
|
28896
|
-
},
|
|
28897
|
+
}, CV = {
|
|
28897
28898
|
key: 3,
|
|
28898
28899
|
class: "uid-form-field__hint"
|
|
28899
|
-
},
|
|
28900
|
+
}, _V = /* @__PURE__ */ ne({
|
|
28900
28901
|
__name: "KeyValueField",
|
|
28901
28902
|
props: {
|
|
28902
28903
|
name: {},
|
|
@@ -28942,12 +28943,12 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28942
28943
|
return (k, g) => (c(), h("div", {
|
|
28943
28944
|
class: fe(["uid-form-field admin-keyvalue", { "uid-form-field--error": !!p.value }])
|
|
28944
28945
|
}, [
|
|
28945
|
-
a.label ? (c(), h("label",
|
|
28946
|
+
a.label ? (c(), h("label", gV, [
|
|
28946
28947
|
D(y(a.label), 1),
|
|
28947
|
-
a.required ? (c(), h("span",
|
|
28948
|
+
a.required ? (c(), h("span", MV, "*")) : H("", !0)
|
|
28948
28949
|
])) : H("", !0),
|
|
28949
|
-
u("div",
|
|
28950
|
-
u("div",
|
|
28950
|
+
u("div", IV, [
|
|
28951
|
+
u("div", wV, [
|
|
28951
28952
|
u("span", null, y(n(v)(a.keyLabel)), 1),
|
|
28952
28953
|
u("span", null, y(n(v)(a.valueLabel)), 1),
|
|
28953
28954
|
g[0] || (g[0] = u("span", null, null, -1))
|
|
@@ -28992,8 +28993,8 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
28992
28993
|
(c(!0), h(X, null, ae(a.allowedKeys, (b) => (c(), h("option", {
|
|
28993
28994
|
key: b,
|
|
28994
28995
|
value: b
|
|
28995
|
-
}, null, 8,
|
|
28996
|
-
], 8,
|
|
28996
|
+
}, null, 8, bV))), 128))
|
|
28997
|
+
], 8, xV)) : H("", !0)
|
|
28997
28998
|
]),
|
|
28998
28999
|
a.addable ? (c(), z(n(oe), {
|
|
28999
29000
|
key: 1,
|
|
@@ -29013,10 +29014,10 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29013
29014
|
]),
|
|
29014
29015
|
_: 1
|
|
29015
29016
|
})) : H("", !0),
|
|
29016
|
-
p.value ? (c(), h("p",
|
|
29017
|
+
p.value ? (c(), h("p", LV, y(p.value), 1)) : a.help ? (c(), h("p", CV, y(a.help), 1)) : H("", !0)
|
|
29017
29018
|
], 2));
|
|
29018
29019
|
}
|
|
29019
|
-
}),
|
|
29020
|
+
}), SV = /* @__PURE__ */ a1(_V, [["__scopeId", "data-v-e0d5df59"]]), qV = { class: "admin-nested-fields" }, AV = /* @__PURE__ */ ne({
|
|
29020
29021
|
__name: "NestedFieldsGroup",
|
|
29021
29022
|
props: {
|
|
29022
29023
|
fields: {},
|
|
@@ -29029,27 +29030,27 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29029
29030
|
r,
|
|
29030
29031
|
() => l("update:modelValue", { ...r }),
|
|
29031
29032
|
{ deep: !0 }
|
|
29032
|
-
), (i, s) => (c(), h("div",
|
|
29033
|
+
), (i, s) => (c(), h("div", qV, [
|
|
29033
29034
|
(c(!0), h(X, null, ae(a.fields, (d) => (c(), z(mI, {
|
|
29034
29035
|
key: d.name,
|
|
29035
29036
|
node: d
|
|
29036
29037
|
}, null, 8, ["node"]))), 128))
|
|
29037
29038
|
]));
|
|
29038
29039
|
}
|
|
29039
|
-
}), vw = /* @__PURE__ */ a1(
|
|
29040
|
+
}), vw = /* @__PURE__ */ a1(AV, [["__scopeId", "data-v-fdba98be"]]), zV = {
|
|
29040
29041
|
key: 0,
|
|
29041
29042
|
class: "uid-form-field__label"
|
|
29042
|
-
},
|
|
29043
|
+
}, HV = {
|
|
29043
29044
|
key: 0,
|
|
29044
29045
|
class: "uid-form-field__required",
|
|
29045
29046
|
"aria-hidden": "true"
|
|
29046
|
-
},
|
|
29047
|
+
}, VV = { class: "admin-repeater__item-hd" }, PV = { class: "admin-repeater__item-no" }, FV = { class: "admin-repeater__item-actions" }, jV = {
|
|
29047
29048
|
key: 2,
|
|
29048
29049
|
class: "uid-form-field__hint uid-form-field__hint--error"
|
|
29049
|
-
},
|
|
29050
|
+
}, DV = {
|
|
29050
29051
|
key: 3,
|
|
29051
29052
|
class: "uid-form-field__hint"
|
|
29052
|
-
},
|
|
29053
|
+
}, BV = /* @__PURE__ */ ne({
|
|
29053
29054
|
__name: "RepeaterField",
|
|
29054
29055
|
props: {
|
|
29055
29056
|
name: {},
|
|
@@ -29105,9 +29106,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29105
29106
|
return (L, M) => (c(), h("div", {
|
|
29106
29107
|
class: fe(["uid-form-field admin-repeater", { "uid-form-field--error": !!b.value }])
|
|
29107
29108
|
}, [
|
|
29108
|
-
a.label ? (c(), h("label",
|
|
29109
|
+
a.label ? (c(), h("label", zV, [
|
|
29109
29110
|
D(y(a.label), 1),
|
|
29110
|
-
a.required ? (c(), h("span",
|
|
29111
|
+
a.required ? (c(), h("span", HV, "*")) : H("", !0)
|
|
29111
29112
|
])) : H("", !0),
|
|
29112
29113
|
(c(!0), h(X, null, ae(r.value, (C, f) => (c(), z(n(we), {
|
|
29113
29114
|
key: f,
|
|
@@ -29115,9 +29116,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29115
29116
|
class: "admin-repeater__item"
|
|
29116
29117
|
}, {
|
|
29117
29118
|
default: x(() => [
|
|
29118
|
-
u("header",
|
|
29119
|
-
u("span",
|
|
29120
|
-
u("span",
|
|
29119
|
+
u("header", VV, [
|
|
29120
|
+
u("span", PV, "#" + y(f + 1), 1),
|
|
29121
|
+
u("span", FV, [
|
|
29121
29122
|
a.reorderable ? (c(), z(n(oe), {
|
|
29122
29123
|
key: 0,
|
|
29123
29124
|
variant: "ghost",
|
|
@@ -29193,26 +29194,26 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29193
29194
|
]),
|
|
29194
29195
|
_: 1
|
|
29195
29196
|
})) : H("", !0),
|
|
29196
|
-
b.value ? (c(), h("p",
|
|
29197
|
+
b.value ? (c(), h("p", jV, y(b.value), 1)) : a.help ? (c(), h("p", DV, y(a.help), 1)) : H("", !0)
|
|
29197
29198
|
], 2));
|
|
29198
29199
|
}
|
|
29199
|
-
}),
|
|
29200
|
+
}), RV = /* @__PURE__ */ a1(BV, [["__scopeId", "data-v-8b51df90"]]), $V = {
|
|
29200
29201
|
key: 0,
|
|
29201
29202
|
class: "uid-form-field__label"
|
|
29202
|
-
},
|
|
29203
|
+
}, TV = {
|
|
29203
29204
|
key: 0,
|
|
29204
29205
|
class: "uid-form-field__required",
|
|
29205
29206
|
"aria-hidden": "true"
|
|
29206
|
-
},
|
|
29207
|
+
}, UV = { class: "admin-builder__block-hd" }, OV = { class: "admin-builder__block-type" }, EV = { class: "admin-builder__block-actions" }, ZV = {
|
|
29207
29208
|
key: 1,
|
|
29208
29209
|
class: "uid-form-field__hint"
|
|
29209
|
-
},
|
|
29210
|
+
}, WV = {
|
|
29210
29211
|
key: 2,
|
|
29211
29212
|
class: "uid-form-field__hint uid-form-field__hint--error"
|
|
29212
|
-
},
|
|
29213
|
+
}, GV = {
|
|
29213
29214
|
key: 3,
|
|
29214
29215
|
class: "uid-form-field__hint"
|
|
29215
|
-
},
|
|
29216
|
+
}, NV = /* @__PURE__ */ ne({
|
|
29216
29217
|
__name: "BuilderField",
|
|
29217
29218
|
props: {
|
|
29218
29219
|
name: {},
|
|
@@ -29264,9 +29265,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29264
29265
|
return (M, C) => (c(), h("div", {
|
|
29265
29266
|
class: fe(["uid-form-field admin-builder", { "uid-form-field--error": !!L.value }])
|
|
29266
29267
|
}, [
|
|
29267
|
-
a.label ? (c(), h("label",
|
|
29268
|
+
a.label ? (c(), h("label", $V, [
|
|
29268
29269
|
D(y(a.label), 1),
|
|
29269
|
-
a.required ? (c(), h("span",
|
|
29270
|
+
a.required ? (c(), h("span", TV, "*")) : H("", !0)
|
|
29270
29271
|
])) : H("", !0),
|
|
29271
29272
|
(c(!0), h(X, null, ae(r.value, (f, q) => (c(), z(n(we), {
|
|
29272
29273
|
key: q,
|
|
@@ -29274,9 +29275,9 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29274
29275
|
class: "admin-builder__block"
|
|
29275
29276
|
}, {
|
|
29276
29277
|
default: x(() => [
|
|
29277
|
-
u("header",
|
|
29278
|
-
u("span",
|
|
29279
|
-
u("span",
|
|
29278
|
+
u("header", UV, [
|
|
29279
|
+
u("span", OV, y(b(f.type)?.label ?? f.type), 1),
|
|
29280
|
+
u("span", EV, [
|
|
29280
29281
|
a.reorderable ? (c(), z(n(oe), {
|
|
29281
29282
|
key: 0,
|
|
29282
29283
|
variant: "ghost",
|
|
@@ -29330,7 +29331,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29330
29331
|
fields: b(f.type).fields,
|
|
29331
29332
|
"model-value": f.data,
|
|
29332
29333
|
"onUpdate:modelValue": (W) => g(q, W)
|
|
29333
|
-
}, null, 8, ["fields", "model-value", "onUpdate:modelValue"])) : (c(), h("p",
|
|
29334
|
+
}, null, 8, ["fields", "model-value", "onUpdate:modelValue"])) : (c(), h("p", ZV, "Неизвестный тип блока: " + y(f.type), 1))
|
|
29334
29335
|
]),
|
|
29335
29336
|
_: 2
|
|
29336
29337
|
}, 1024))), 128)),
|
|
@@ -29366,16 +29367,16 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29366
29367
|
]),
|
|
29367
29368
|
_: 1
|
|
29368
29369
|
})) : H("", !0),
|
|
29369
|
-
L.value ? (c(), h("p",
|
|
29370
|
+
L.value ? (c(), h("p", WV, y(L.value), 1)) : a.help ? (c(), h("p", GV, y(a.help), 1)) : H("", !0)
|
|
29370
29371
|
], 2));
|
|
29371
29372
|
}
|
|
29372
|
-
}),
|
|
29373
|
+
}), XV = /* @__PURE__ */ a1(NV, [["__scopeId", "data-v-b8372057"]]), KV = { class: "uid-form-field admin-relation-table" }, JV = {
|
|
29373
29374
|
key: 0,
|
|
29374
29375
|
class: "uid-form-field__label"
|
|
29375
|
-
},
|
|
29376
|
+
}, YV = {
|
|
29376
29377
|
key: 1,
|
|
29377
29378
|
class: "uid-form-field__hint"
|
|
29378
|
-
},
|
|
29379
|
+
}, QV = /* @__PURE__ */ ne({
|
|
29379
29380
|
__name: "RelationTableField",
|
|
29380
29381
|
props: {
|
|
29381
29382
|
name: {},
|
|
@@ -29401,8 +29402,8 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29401
29402
|
width: i.width ?? void 0
|
|
29402
29403
|
}))
|
|
29403
29404
|
);
|
|
29404
|
-
return (i, s) => (c(), h("div",
|
|
29405
|
-
a.label ? (c(), h("label",
|
|
29405
|
+
return (i, s) => (c(), h("div", KV, [
|
|
29406
|
+
a.label ? (c(), h("label", JV, y(a.label), 1)) : H("", !0),
|
|
29406
29407
|
w(n(we), { padding: "sm" }, {
|
|
29407
29408
|
default: x(() => [
|
|
29408
29409
|
w(n(Lo), {
|
|
@@ -29413,23 +29414,23 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29413
29414
|
]),
|
|
29414
29415
|
_: 1
|
|
29415
29416
|
}),
|
|
29416
|
-
a.help ? (c(), h("p",
|
|
29417
|
+
a.help ? (c(), h("p", YV, y(a.help), 1)) : H("", !0)
|
|
29417
29418
|
]));
|
|
29418
29419
|
}
|
|
29419
|
-
}),
|
|
29420
|
+
}), eP = {
|
|
29420
29421
|
key: 0,
|
|
29421
29422
|
class: "uid-form-field__label"
|
|
29422
|
-
},
|
|
29423
|
+
}, aP = {
|
|
29423
29424
|
key: 0,
|
|
29424
29425
|
class: "uid-form-field__required",
|
|
29425
29426
|
"aria-hidden": "true"
|
|
29426
|
-
},
|
|
29427
|
+
}, tP = { class: "admin-generated__row" }, nP = {
|
|
29427
29428
|
key: 1,
|
|
29428
29429
|
class: "uid-form-field__hint uid-form-field__hint--error"
|
|
29429
|
-
},
|
|
29430
|
+
}, oP = {
|
|
29430
29431
|
key: 2,
|
|
29431
29432
|
class: "uid-form-field__hint"
|
|
29432
|
-
},
|
|
29433
|
+
}, cP = /* @__PURE__ */ ne({
|
|
29433
29434
|
__name: "GeneratedField",
|
|
29434
29435
|
props: {
|
|
29435
29436
|
name: {},
|
|
@@ -29472,11 +29473,11 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29472
29473
|
), (g, b) => (c(), h("div", {
|
|
29473
29474
|
class: fe(["uid-form-field admin-generated", { "uid-form-field--error": !!i.value }])
|
|
29474
29475
|
}, [
|
|
29475
|
-
a.label ? (c(), h("label",
|
|
29476
|
+
a.label ? (c(), h("label", eP, [
|
|
29476
29477
|
D(y(a.label), 1),
|
|
29477
|
-
a.required ? (c(), h("span",
|
|
29478
|
+
a.required ? (c(), h("span", aP, "*")) : H("", !0)
|
|
29478
29479
|
])) : H("", !0),
|
|
29479
|
-
u("div",
|
|
29480
|
+
u("div", tP, [
|
|
29480
29481
|
w(n(Le), {
|
|
29481
29482
|
"model-value": r.value,
|
|
29482
29483
|
error: i.value,
|
|
@@ -29501,10 +29502,10 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29501
29502
|
_: 1
|
|
29502
29503
|
}, 8, ["disabled"])) : H("", !0)
|
|
29503
29504
|
]),
|
|
29504
|
-
i.value ? (c(), h("p",
|
|
29505
|
+
i.value ? (c(), h("p", nP, y(i.value), 1)) : a.help ? (c(), h("p", oP, y(a.help), 1)) : H("", !0)
|
|
29505
29506
|
], 2));
|
|
29506
29507
|
}
|
|
29507
|
-
}),
|
|
29508
|
+
}), iP = /* @__PURE__ */ ne({
|
|
29508
29509
|
__name: "ColumnsLayout",
|
|
29509
29510
|
props: {
|
|
29510
29511
|
items: {},
|
|
@@ -29533,16 +29534,16 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29533
29534
|
_: 1
|
|
29534
29535
|
}, 8, ["cols", "gap"]));
|
|
29535
29536
|
}
|
|
29536
|
-
}),
|
|
29537
|
+
}), lP = {
|
|
29537
29538
|
key: 0,
|
|
29538
29539
|
class: "admin-section__header"
|
|
29539
|
-
},
|
|
29540
|
+
}, rP = {
|
|
29540
29541
|
key: 0,
|
|
29541
29542
|
class: "admin-section__title"
|
|
29542
|
-
},
|
|
29543
|
+
}, dP = {
|
|
29543
29544
|
key: 1,
|
|
29544
29545
|
class: "admin-section__description"
|
|
29545
|
-
},
|
|
29546
|
+
}, sP = { class: "admin-section__body" }, Vo = /* @__PURE__ */ ne({
|
|
29546
29547
|
__name: "SectionLayout",
|
|
29547
29548
|
props: {
|
|
29548
29549
|
items: {},
|
|
@@ -29555,11 +29556,11 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29555
29556
|
class: "admin-section"
|
|
29556
29557
|
}, {
|
|
29557
29558
|
default: x(() => [
|
|
29558
|
-
a.title || a.description ? (c(), h("header",
|
|
29559
|
-
a.title ? (c(), h("h3",
|
|
29560
|
-
a.description ? (c(), h("p",
|
|
29559
|
+
a.title || a.description ? (c(), h("header", lP, [
|
|
29560
|
+
a.title ? (c(), h("h3", rP, y(a.title), 1)) : H("", !0),
|
|
29561
|
+
a.description ? (c(), h("p", dP, y(a.description), 1)) : H("", !0)
|
|
29561
29562
|
])) : H("", !0),
|
|
29562
|
-
u("div",
|
|
29563
|
+
u("div", sP, [
|
|
29563
29564
|
(c(!0), h(X, null, ae(a.items, (l, r) => (c(), z(xo, {
|
|
29564
29565
|
key: r,
|
|
29565
29566
|
node: l
|
|
@@ -29569,7 +29570,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29569
29570
|
_: 1
|
|
29570
29571
|
}));
|
|
29571
29572
|
}
|
|
29572
|
-
}),
|
|
29573
|
+
}), hP = /* @__PURE__ */ ne({
|
|
29573
29574
|
__name: "TabsLayout",
|
|
29574
29575
|
props: {
|
|
29575
29576
|
items: {},
|
|
@@ -29617,10 +29618,10 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29617
29618
|
_: 1
|
|
29618
29619
|
}, 8, ["model-value"]));
|
|
29619
29620
|
}
|
|
29620
|
-
}),
|
|
29621
|
+
}), uP = { class: "admin-embedded-table" }, yP = { class: "admin-embedded-table__toolbar" }, pP = { key: 1 }, kP = ["aria-label", "onClick"], mP = {
|
|
29621
29622
|
key: 4,
|
|
29622
29623
|
class: "admin-embedded-table__draft"
|
|
29623
|
-
},
|
|
29624
|
+
}, vP = { class: "admin-embedded-table__draft-cells" }, fP = { class: "admin-embedded-table__draft-label" }, gP = ["value", "onChange"], MP = ["value"], IP = ["type", "value", "onInput"], wP = { class: "admin-embedded-table__draft-actions" }, xP = /* @__PURE__ */ ne({
|
|
29624
29625
|
__name: "EmbeddedResourceTable",
|
|
29625
29626
|
props: {
|
|
29626
29627
|
resource: {},
|
|
@@ -29725,8 +29726,8 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29725
29726
|
const _ = J[R];
|
|
29726
29727
|
return _ == null ? "" : String(_);
|
|
29727
29728
|
}
|
|
29728
|
-
return (J, R) => (c(), h("div",
|
|
29729
|
-
u("div",
|
|
29729
|
+
return (J, R) => (c(), h("div", uP, [
|
|
29730
|
+
u("div", yP, [
|
|
29730
29731
|
L.value ? (c(), z(n(oe), {
|
|
29731
29732
|
key: 0,
|
|
29732
29733
|
variant: "primary",
|
|
@@ -29793,7 +29794,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29793
29794
|
u("span", null, y(Z(U(j), _.key)), 1)
|
|
29794
29795
|
]),
|
|
29795
29796
|
_: 2
|
|
29796
|
-
}, 1032, ["resource-slug", "row-id", "column", "value", "input-type", "options", "row-override", "onSaved"])) : (c(), h("span",
|
|
29797
|
+
}, 1032, ["resource-slug", "row-id", "column", "value", "input-type", "options", "row-override", "onSaved"])) : (c(), h("span", pP, y(Z(U(j) ?? {}, _.key)), 1))
|
|
29797
29798
|
])
|
|
29798
29799
|
})),
|
|
29799
29800
|
M.value ? {
|
|
@@ -29809,18 +29810,18 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29809
29810
|
icon: n(Ue),
|
|
29810
29811
|
size: 14
|
|
29811
29812
|
}, null, 8, ["icon"])
|
|
29812
|
-
], 8,
|
|
29813
|
+
], 8, kP)
|
|
29813
29814
|
]),
|
|
29814
29815
|
key: "0"
|
|
29815
29816
|
} : void 0
|
|
29816
29817
|
]), 1032, ["columns", "data", "selectable", "selection"])),
|
|
29817
|
-
m.value !== null ? (c(), h("div",
|
|
29818
|
-
u("div",
|
|
29818
|
+
m.value !== null ? (c(), h("div", mP, [
|
|
29819
|
+
u("div", vP, [
|
|
29819
29820
|
(c(!0), h(X, null, ae(b.value, (_) => (c(), h("div", {
|
|
29820
29821
|
key: _.key,
|
|
29821
29822
|
class: "admin-embedded-table__draft-cell"
|
|
29822
29823
|
}, [
|
|
29823
|
-
u("label",
|
|
29824
|
+
u("label", fP, y(_.label), 1),
|
|
29824
29825
|
f(_.key)?.as === "select" ? (c(), h("select", {
|
|
29825
29826
|
key: 0,
|
|
29826
29827
|
class: "admin-embedded-table__draft-input",
|
|
@@ -29831,17 +29832,17 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29831
29832
|
(c(!0), h(X, null, ae(f(_.key).options, (j, S) => (c(), h("option", {
|
|
29832
29833
|
key: S,
|
|
29833
29834
|
value: S
|
|
29834
|
-
}, y(j), 9,
|
|
29835
|
-
], 40,
|
|
29835
|
+
}, y(j), 9, MP))), 128))
|
|
29836
|
+
], 40, gP)) : (c(), h("input", {
|
|
29836
29837
|
key: 1,
|
|
29837
29838
|
class: "admin-embedded-table__draft-input",
|
|
29838
29839
|
type: f(_.key)?.as === "number" ? "number" : f(_.key)?.as === "date" ? "date" : "text",
|
|
29839
29840
|
value: m.value[_.key] ?? "",
|
|
29840
29841
|
onInput: (j) => te(_.key, j.target.value)
|
|
29841
|
-
}, null, 40,
|
|
29842
|
+
}, null, 40, IP))
|
|
29842
29843
|
]))), 128))
|
|
29843
29844
|
]),
|
|
29844
|
-
u("div",
|
|
29845
|
+
u("div", wP, [
|
|
29845
29846
|
w(n(oe), {
|
|
29846
29847
|
variant: "primary",
|
|
29847
29848
|
size: "sm",
|
|
@@ -29868,7 +29869,7 @@ const m1 = /* @__PURE__ */ ne({
|
|
|
29868
29869
|
])) : H("", !0)
|
|
29869
29870
|
]));
|
|
29870
29871
|
}
|
|
29871
|
-
}),
|
|
29872
|
+
}), bP = /* @__PURE__ */ a1(xP, [["__scopeId", "data-v-17c526a7"]]);
|
|
29872
29873
|
function Po(a) {
|
|
29873
29874
|
return ne({
|
|
29874
29875
|
name: `TextField${a.charAt(0).toUpperCase()}${a.slice(1)}`,
|
|
@@ -29879,14 +29880,14 @@ function Po(a) {
|
|
|
29879
29880
|
}
|
|
29880
29881
|
});
|
|
29881
29882
|
}
|
|
29882
|
-
function
|
|
29883
|
+
function LP(a) {
|
|
29883
29884
|
for (const [t, o] of Object.entries(a.fields ?? {}))
|
|
29884
|
-
|
|
29885
|
+
xC(t) || wC(t, o);
|
|
29885
29886
|
for (const [t, o] of Object.entries(a.layouts ?? {}))
|
|
29886
|
-
|
|
29887
|
+
LC(t) || bC(t, o);
|
|
29887
29888
|
}
|
|
29888
|
-
function
|
|
29889
|
-
|
|
29889
|
+
function CP() {
|
|
29890
|
+
LP({
|
|
29890
29891
|
fields: {
|
|
29891
29892
|
// Backend Field-классы из dskripchenko/laravel-admin отдают эти fieldType()
|
|
29892
29893
|
// строки. Соответствие см. core/src/Field/{Input,TextArea,Select,...}.php.
|
|
@@ -29905,7 +29906,7 @@ function LP() {
|
|
|
29905
29906
|
// ~7 KB gzip). Host может перебить:
|
|
29906
29907
|
// import { QuillField } from '@dskripchenko/laravel-admin/quill'
|
|
29907
29908
|
// registerField('wysiwyg', QuillField)
|
|
29908
|
-
wysiwyg:
|
|
29909
|
+
wysiwyg: DH,
|
|
29909
29910
|
markdown: Y9,
|
|
29910
29911
|
code: Y9,
|
|
29911
29912
|
number: Q9,
|
|
@@ -29914,7 +29915,7 @@ function LP() {
|
|
|
29914
29915
|
select: n1,
|
|
29915
29916
|
combobox: n1,
|
|
29916
29917
|
radio: n1,
|
|
29917
|
-
tags:
|
|
29918
|
+
tags: MH,
|
|
29918
29919
|
// Translatable: backend Field\TranslatableInput → fieldType()='translatable'.
|
|
29919
29920
|
// Хранит value как Record<locale, string>; UI показывает табы по локалям.
|
|
29920
29921
|
translatable: DI,
|
|
@@ -29943,25 +29944,25 @@ function LP() {
|
|
|
29943
29944
|
"color-picker": m1,
|
|
29944
29945
|
file: BI,
|
|
29945
29946
|
image: BI,
|
|
29946
|
-
image_cropper:
|
|
29947
|
+
image_cropper: fV,
|
|
29947
29948
|
// Составные поля (backlog ROADMAP): рендерились UnknownField.
|
|
29948
|
-
key_value:
|
|
29949
|
-
repeater:
|
|
29950
|
-
"generated-field":
|
|
29951
|
-
builder:
|
|
29952
|
-
relation_table:
|
|
29949
|
+
key_value: SV,
|
|
29950
|
+
repeater: RV,
|
|
29951
|
+
"generated-field": cP,
|
|
29952
|
+
builder: XV,
|
|
29953
|
+
relation_table: QV
|
|
29953
29954
|
},
|
|
29954
29955
|
layouts: {
|
|
29955
29956
|
rows: aI,
|
|
29956
|
-
columns:
|
|
29957
|
+
columns: iP,
|
|
29957
29958
|
section: Vo,
|
|
29958
29959
|
block: Vo,
|
|
29959
|
-
tabs:
|
|
29960
|
+
tabs: hP,
|
|
29960
29961
|
accordion: Vo,
|
|
29961
29962
|
group: aI,
|
|
29962
29963
|
step: Vo,
|
|
29963
29964
|
wizard: Vo,
|
|
29964
|
-
"admin.resource-table":
|
|
29965
|
+
"admin.resource-table": bP
|
|
29965
29966
|
}
|
|
29966
29967
|
});
|
|
29967
29968
|
}
|
|
@@ -29987,10 +29988,10 @@ const ge = /* @__PURE__ */ ne({
|
|
|
29987
29988
|
class: fe(["admin-infolist-text", a.mono ? "admin-infolist-text--mono" : ""])
|
|
29988
29989
|
}, y(l.value), 3));
|
|
29989
29990
|
}
|
|
29990
|
-
}),
|
|
29991
|
+
}), _P = {
|
|
29991
29992
|
key: 1,
|
|
29992
29993
|
class: "admin-infolist-text"
|
|
29993
|
-
},
|
|
29994
|
+
}, SP = /* @__PURE__ */ ne({
|
|
29994
29995
|
__name: "BadgeEntry",
|
|
29995
29996
|
props: {
|
|
29996
29997
|
name: { default: "" },
|
|
@@ -30017,9 +30018,9 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30017
30018
|
D(y(s.value), 1)
|
|
30018
30019
|
]),
|
|
30019
30020
|
_: 1
|
|
30020
|
-
}, 8, ["variant"])) : (c(), h("span",
|
|
30021
|
+
}, 8, ["variant"])) : (c(), h("span", _P, "—"));
|
|
30021
30022
|
}
|
|
30022
|
-
}),
|
|
30023
|
+
}), qP = { key: 1 }, AP = /* @__PURE__ */ ne({
|
|
30023
30024
|
__name: "IconEntry",
|
|
30024
30025
|
props: {
|
|
30025
30026
|
name: { default: "" },
|
|
@@ -30051,10 +30052,10 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30051
30052
|
size: 14,
|
|
30052
30053
|
class: "admin-infolist-icon__glyph"
|
|
30053
30054
|
}, null, 8, ["icon"])) : H("", !0),
|
|
30054
|
-
s.value ? (c(), h("span",
|
|
30055
|
+
s.value ? (c(), h("span", qP, y(s.value), 1)) : H("", !0)
|
|
30055
30056
|
], 2));
|
|
30056
30057
|
}
|
|
30057
|
-
}),
|
|
30058
|
+
}), zP = {
|
|
30058
30059
|
key: 1,
|
|
30059
30060
|
class: "admin-infolist-text"
|
|
30060
30061
|
}, eI = /* @__PURE__ */ ne({
|
|
@@ -30089,24 +30090,24 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30089
30090
|
}, 1032, ["label"]))), 128))
|
|
30090
30091
|
]),
|
|
30091
30092
|
_: 1
|
|
30092
|
-
})) : (c(), h("span",
|
|
30093
|
+
})) : (c(), h("span", zP, "—"));
|
|
30093
30094
|
}
|
|
30094
|
-
}),
|
|
30095
|
+
}), HP = { class: "admin-repeatable" }, VP = {
|
|
30095
30096
|
key: 0,
|
|
30096
30097
|
class: "admin-repeatable__lbl"
|
|
30097
|
-
},
|
|
30098
|
+
}, PP = {
|
|
30098
30099
|
key: 1,
|
|
30099
30100
|
class: "admin-repeatable__empty"
|
|
30100
|
-
},
|
|
30101
|
+
}, FP = {
|
|
30101
30102
|
key: 2,
|
|
30102
30103
|
class: "admin-repeatable__tbl"
|
|
30103
|
-
},
|
|
30104
|
+
}, jP = { class: "admin-repeatable__idx" }, DP = {
|
|
30104
30105
|
key: 3,
|
|
30105
30106
|
class: "admin-repeatable__cards"
|
|
30106
|
-
},
|
|
30107
|
+
}, BP = { class: "admin-repeatable__card-hd" }, RP = { class: "admin-repeatable__dl" }, $P = {
|
|
30107
30108
|
key: 4,
|
|
30108
30109
|
class: "admin-repeatable__inline"
|
|
30109
|
-
},
|
|
30110
|
+
}, TP = /* @__PURE__ */ ne({
|
|
30110
30111
|
__name: "RepeatableEntry",
|
|
30111
30112
|
props: {
|
|
30112
30113
|
name: { default: "" },
|
|
@@ -30144,9 +30145,9 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30144
30145
|
name: d.name
|
|
30145
30146
|
};
|
|
30146
30147
|
}
|
|
30147
|
-
return (d, p) => (c(), h("div",
|
|
30148
|
-
a.label ? (c(), h("span",
|
|
30149
|
-
l.value.length === 0 ? (c(), h("p",
|
|
30148
|
+
return (d, p) => (c(), h("div", HP, [
|
|
30149
|
+
a.label ? (c(), h("span", VP, y(a.label), 1)) : H("", !0),
|
|
30150
|
+
l.value.length === 0 ? (c(), h("p", PP, y(a.placeholder), 1)) : a.layout === "columns" ? (c(), h("table", FP, [
|
|
30150
30151
|
u("thead", null, [
|
|
30151
30152
|
u("tr", null, [
|
|
30152
30153
|
p[0] || (p[0] = u("th", { class: "admin-repeatable__idx" }, "#", -1)),
|
|
@@ -30157,7 +30158,7 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30157
30158
|
]),
|
|
30158
30159
|
u("tbody", null, [
|
|
30159
30160
|
(c(!0), h(X, null, ae(l.value, (m, k) => (c(), h("tr", { key: k }, [
|
|
30160
|
-
u("td",
|
|
30161
|
+
u("td", jP, y(k + 1), 1),
|
|
30161
30162
|
(c(!0), h(X, null, ae(a.entries, (g) => (c(), h("td", {
|
|
30162
30163
|
key: g.name
|
|
30163
30164
|
}, [
|
|
@@ -30165,13 +30166,13 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30165
30166
|
]))), 128))
|
|
30166
30167
|
]))), 128))
|
|
30167
30168
|
])
|
|
30168
|
-
])) : a.layout === "rows" ? (c(), h("div",
|
|
30169
|
+
])) : a.layout === "rows" ? (c(), h("div", DP, [
|
|
30169
30170
|
(c(!0), h(X, null, ae(l.value, (m, k) => (c(), h("article", {
|
|
30170
30171
|
key: k,
|
|
30171
30172
|
class: "admin-repeatable__card"
|
|
30172
30173
|
}, [
|
|
30173
|
-
u("header",
|
|
30174
|
-
u("dl",
|
|
30174
|
+
u("header", BP, "#" + y(k + 1), 1),
|
|
30175
|
+
u("dl", RP, [
|
|
30175
30176
|
(c(!0), h(X, null, ae(a.entries, (g) => (c(), h(X, {
|
|
30176
30177
|
key: g.name
|
|
30177
30178
|
}, [
|
|
@@ -30182,7 +30183,7 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30182
30183
|
], 64))), 128))
|
|
30183
30184
|
])
|
|
30184
30185
|
]))), 128))
|
|
30185
|
-
])) : (c(), h("div",
|
|
30186
|
+
])) : (c(), h("div", $P, [
|
|
30186
30187
|
(c(!0), h(X, null, ae(l.value, (m, k) => (c(), h("span", {
|
|
30187
30188
|
key: k,
|
|
30188
30189
|
class: "admin-repeatable__chip"
|
|
@@ -30196,17 +30197,17 @@ const ge = /* @__PURE__ */ ne({
|
|
|
30196
30197
|
]));
|
|
30197
30198
|
}
|
|
30198
30199
|
});
|
|
30199
|
-
function
|
|
30200
|
-
|
|
30200
|
+
function UP() {
|
|
30201
|
+
KS({
|
|
30201
30202
|
// Дефолтные типы infolist (BadgeEntry::make() и т.п.).
|
|
30202
30203
|
text: ge,
|
|
30203
|
-
badge:
|
|
30204
|
-
icon:
|
|
30204
|
+
badge: SP,
|
|
30205
|
+
icon: AP,
|
|
30205
30206
|
keyvalue: eI,
|
|
30206
30207
|
key_value: eI,
|
|
30207
30208
|
"key-value": eI,
|
|
30208
30209
|
// Repeatable: коллекция объектов с nested-entries (таблица/cards/inline).
|
|
30209
|
-
repeatable:
|
|
30210
|
+
repeatable: TP,
|
|
30210
30211
|
// Маппинг от backend Field::fieldType() → TextEntry для view-режима.
|
|
30211
30212
|
// Host'ы могут перебить registerInfolistEntry('wysiwyg', WysiwygEntry).
|
|
30212
30213
|
input: ge,
|
|
@@ -30246,34 +30247,34 @@ function TP() {
|
|
|
30246
30247
|
"color-picker": ge
|
|
30247
30248
|
});
|
|
30248
30249
|
}
|
|
30249
|
-
function
|
|
30250
|
-
const o = t.pages ?? {}, l = t.base ??
|
|
30250
|
+
function tj(a, t = {}) {
|
|
30251
|
+
const o = t.pages ?? {}, l = t.base ?? OP(a.baseUrl) ?? "/admin", r = Xz({
|
|
30251
30252
|
baseURL: a.apiUrl,
|
|
30252
30253
|
csrfToken: a.csrf
|
|
30253
30254
|
});
|
|
30254
30255
|
GI(r);
|
|
30255
|
-
const i = jw(
|
|
30256
|
+
const i = jw(Zb), s = Dw();
|
|
30256
30257
|
i.use(s);
|
|
30257
30258
|
const d = a.brand ?? {};
|
|
30258
|
-
i.provide(YI, d),
|
|
30259
|
-
const p =
|
|
30259
|
+
i.provide(YI, d), EP(d.favicon), Qe().hydrate(a), W2().hydrate(a), yI().hydrate(a), V9().hydrate(a), Z2().hydrate(a), CP(), Gz(), UP();
|
|
30260
|
+
const p = dH({
|
|
30260
30261
|
base: l,
|
|
30261
30262
|
history: t.router?.history ?? TI(l),
|
|
30262
30263
|
components: {
|
|
30263
|
-
login: o.login ??
|
|
30264
|
-
home: o.home ??
|
|
30265
|
-
forbidden: o.forbidden ??
|
|
30266
|
-
notFound: o.notFound ??
|
|
30267
|
-
profile: o.profile ??
|
|
30268
|
-
forgotPassword: o.forgotPassword ??
|
|
30269
|
-
resetPassword: o.resetPassword ??
|
|
30270
|
-
resourceIndex: o.resourceIndex ??
|
|
30264
|
+
login: o.login ?? KC,
|
|
30265
|
+
home: o.home ?? dC,
|
|
30266
|
+
forbidden: o.forbidden ?? uC,
|
|
30267
|
+
notFound: o.notFound ?? kC,
|
|
30268
|
+
profile: o.profile ?? tz,
|
|
30269
|
+
forgotPassword: o.forgotPassword ?? c_,
|
|
30270
|
+
resetPassword: o.resetPassword ?? k_,
|
|
30271
|
+
resourceIndex: o.resourceIndex ?? RS,
|
|
30271
30272
|
resourceCreate: o.resourceCreate ?? VI,
|
|
30272
30273
|
resourceEdit: o.resourceEdit ?? VI,
|
|
30273
|
-
resourceView: o.resourceView ??
|
|
30274
|
+
resourceView: o.resourceView ?? Xq,
|
|
30274
30275
|
dashboard: o.dashboard ?? aw,
|
|
30275
|
-
settings: o.settings ??
|
|
30276
|
-
screen: o.screen ??
|
|
30276
|
+
settings: o.settings ?? MC,
|
|
30277
|
+
screen: o.screen ?? VC
|
|
30277
30278
|
},
|
|
30278
30279
|
extraRoutes: t.router?.extraRoutes,
|
|
30279
30280
|
authGuard: t.router?.authGuard,
|
|
@@ -30293,7 +30294,7 @@ function aj(a, t = {}) {
|
|
|
30293
30294
|
const M = k.params.slug ?? k.meta.slug;
|
|
30294
30295
|
if (M)
|
|
30295
30296
|
try {
|
|
30296
|
-
const { useResourceIndexStore: C } = await Promise.resolve().then(() =>
|
|
30297
|
+
const { useResourceIndexStore: C } = await Promise.resolve().then(() => m_), f = C();
|
|
30297
30298
|
(f.slug !== M || f.items.length === 0) && (f.setSlug(M), await f.load().catch(() => {
|
|
30298
30299
|
}));
|
|
30299
30300
|
} catch {
|
|
@@ -30327,7 +30328,7 @@ function aj(a, t = {}) {
|
|
|
30327
30328
|
}
|
|
30328
30329
|
return t.onAppCreated?.(i), { app: i, router: p, client: r };
|
|
30329
30330
|
}
|
|
30330
|
-
function
|
|
30331
|
+
function OP(a) {
|
|
30331
30332
|
if (!a) return null;
|
|
30332
30333
|
try {
|
|
30333
30334
|
return new URL(a).pathname || "/admin";
|
|
@@ -30335,23 +30336,23 @@ function UP(a) {
|
|
|
30335
30336
|
return a.startsWith("/") ? a : null;
|
|
30336
30337
|
}
|
|
30337
30338
|
}
|
|
30338
|
-
function
|
|
30339
|
+
function EP(a) {
|
|
30339
30340
|
if (typeof document > "u" || !a) return;
|
|
30340
30341
|
let t = document.querySelector('link[rel~="icon"]');
|
|
30341
30342
|
t === null && (t = document.createElement("link"), t.rel = "icon", document.head.appendChild(t)), t.href = a;
|
|
30342
30343
|
}
|
|
30343
|
-
const
|
|
30344
|
+
const ZP = { class: "admin-status-page" }, WP = { class: "admin-status-page__title" }, GP = { class: "admin-status-page__hint" }, nj = /* @__PURE__ */ ne({
|
|
30344
30345
|
__name: "UnknownScreenPage",
|
|
30345
30346
|
setup(a) {
|
|
30346
30347
|
const t = l1(), o = I(() => String(t.params.slug ?? "")), l = I(() => String(t.meta?.title ?? o.value));
|
|
30347
|
-
return (r, i) => (c(), h("div",
|
|
30348
|
+
return (r, i) => (c(), h("div", ZP, [
|
|
30348
30349
|
w(n(we), {
|
|
30349
30350
|
padding: "lg",
|
|
30350
30351
|
class: "admin-status-page__card"
|
|
30351
30352
|
}, {
|
|
30352
30353
|
default: x(() => [
|
|
30353
|
-
u("h1",
|
|
30354
|
-
u("p",
|
|
30354
|
+
u("h1", WP, y(l.value), 1),
|
|
30355
|
+
u("p", GP, [
|
|
30355
30356
|
D(" Это заглушка для screen «" + y(o.value) + "». Передайте свой компонент через ", 1),
|
|
30356
30357
|
i[0] || (i[0] = u("code", null, "createAdminApp(" + y("{") + " pages: " + y("{") + " screen: MyScreen " + y("}") + " " + y("}") + ")", -1)),
|
|
30357
30358
|
i[1] || (i[1] = D(". ", -1))
|
|
@@ -30362,8 +30363,8 @@ const EP = { class: "admin-status-page" }, ZP = { class: "admin-status-page__tit
|
|
|
30362
30363
|
]));
|
|
30363
30364
|
}
|
|
30364
30365
|
});
|
|
30365
|
-
async function
|
|
30366
|
-
const t =
|
|
30366
|
+
async function oj(a = {}) {
|
|
30367
|
+
const t = NP();
|
|
30367
30368
|
if (t)
|
|
30368
30369
|
return t;
|
|
30369
30370
|
if (a.client)
|
|
@@ -30377,31 +30378,31 @@ async function nj(a = {}) {
|
|
|
30377
30378
|
}
|
|
30378
30379
|
return null;
|
|
30379
30380
|
}
|
|
30380
|
-
function
|
|
30381
|
+
function NP() {
|
|
30381
30382
|
return typeof window > "u" ? null : window.__ADMIN_BOOTSTRAP__ ?? null;
|
|
30382
30383
|
}
|
|
30383
|
-
function
|
|
30384
|
+
function cj() {
|
|
30384
30385
|
return typeof document > "u" ? null : document.querySelector('meta[name="csrf-token"]')?.getAttribute("content") ?? null;
|
|
30385
30386
|
}
|
|
30386
|
-
const
|
|
30387
|
+
const XP = { class: "admin-notifs__hd" }, KP = { class: "admin-notifs__title" }, JP = {
|
|
30387
30388
|
key: 0,
|
|
30388
30389
|
class: "admin-notifs__count"
|
|
30389
|
-
},
|
|
30390
|
+
}, YP = { class: "admin-notifs__list" }, QP = {
|
|
30390
30391
|
key: 0,
|
|
30391
30392
|
class: "admin-notifs__empty"
|
|
30392
|
-
},
|
|
30393
|
+
}, eF = {
|
|
30393
30394
|
key: 1,
|
|
30394
30395
|
class: "admin-notifs__empty"
|
|
30395
|
-
},
|
|
30396
|
+
}, aF = ["onClick"], tF = ["data-kind"], nF = { class: "admin-notifs__body" }, oF = { class: "admin-notifs__row1" }, cF = {
|
|
30396
30397
|
key: 0,
|
|
30397
30398
|
class: "admin-notifs__title-strong"
|
|
30398
|
-
},
|
|
30399
|
+
}, iF = {
|
|
30399
30400
|
key: 1,
|
|
30400
30401
|
class: "admin-notifs__title-soft"
|
|
30401
|
-
},
|
|
30402
|
+
}, lF = { class: "admin-notifs__time" }, rF = {
|
|
30402
30403
|
key: 0,
|
|
30403
30404
|
class: "admin-notifs__text"
|
|
30404
|
-
},
|
|
30405
|
+
}, dF = ["aria-label", "onClick"], ij = /* @__PURE__ */ ne({
|
|
30405
30406
|
__name: "NotificationsDrawer",
|
|
30406
30407
|
props: {
|
|
30407
30408
|
open: { type: Boolean }
|
|
@@ -30465,10 +30466,10 @@ const NP = { class: "admin-notifs__hd" }, XP = { class: "admin-notifs__title" },
|
|
|
30465
30466
|
"onUpdate:modelValue": i
|
|
30466
30467
|
}, {
|
|
30467
30468
|
header: x(() => [
|
|
30468
|
-
u("div",
|
|
30469
|
-
u("h2",
|
|
30469
|
+
u("div", XP, [
|
|
30470
|
+
u("h2", KP, [
|
|
30470
30471
|
D(y(n(v)("Уведомления")) + " ", 1),
|
|
30471
|
-
n(r).unreadCount > 0 ? (c(), h("span",
|
|
30472
|
+
n(r).unreadCount > 0 ? (c(), h("span", JP, " (" + y(n(r).unreadCount) + ") ", 1)) : H("", !0)
|
|
30472
30473
|
]),
|
|
30473
30474
|
n(r).unreadCount > 0 ? (c(), z(n(oe), {
|
|
30474
30475
|
key: 0,
|
|
@@ -30517,8 +30518,8 @@ const NP = { class: "admin-notifs__hd" }, XP = { class: "admin-notifs__title" },
|
|
|
30517
30518
|
value: q
|
|
30518
30519
|
}, {
|
|
30519
30520
|
default: x(() => [
|
|
30520
|
-
u("ul",
|
|
30521
|
-
n(r).loading ? (c(), h("li",
|
|
30521
|
+
u("ul", YP, [
|
|
30522
|
+
n(r).loading ? (c(), h("li", QP, y(n(v)("Загрузка…")), 1)) : n(r).items.length === 0 ? (c(), h("li", eF, y(n(v)("Нет уведомлений")), 1)) : H("", !0),
|
|
30522
30523
|
(c(!0), h(X, null, ae(n(r).items, (W) => (c(), h("li", {
|
|
30523
30524
|
key: W.id,
|
|
30524
30525
|
class: fe([
|
|
@@ -30531,21 +30532,21 @@ const NP = { class: "admin-notifs__hd" }, XP = { class: "admin-notifs__title" },
|
|
|
30531
30532
|
u("span", {
|
|
30532
30533
|
class: "admin-notifs__icon",
|
|
30533
30534
|
"data-kind": g(W)
|
|
30534
|
-
}, null, 8,
|
|
30535
|
-
u("div",
|
|
30536
|
-
u("div",
|
|
30537
|
-
W.read_at ? (c(), h("span",
|
|
30538
|
-
u("span",
|
|
30535
|
+
}, null, 8, tF),
|
|
30536
|
+
u("div", nF, [
|
|
30537
|
+
u("div", oF, [
|
|
30538
|
+
W.read_at ? (c(), h("span", iF, y(b(W)), 1)) : (c(), h("strong", cF, y(b(W)), 1)),
|
|
30539
|
+
u("span", lF, y(M(W.created_at)), 1)
|
|
30539
30540
|
]),
|
|
30540
|
-
L(W) ? (c(), h("p",
|
|
30541
|
+
L(W) ? (c(), h("p", rF, y(L(W)), 1)) : H("", !0)
|
|
30541
30542
|
]),
|
|
30542
30543
|
u("button", {
|
|
30543
30544
|
type: "button",
|
|
30544
30545
|
class: "admin-notifs__close",
|
|
30545
30546
|
"aria-label": n(v)("Удалить"),
|
|
30546
30547
|
onClick: (U) => k(W, U)
|
|
30547
|
-
}, " × ", 8,
|
|
30548
|
-
], 10,
|
|
30548
|
+
}, " × ", 8, dF)
|
|
30549
|
+
], 10, aF))), 128))
|
|
30549
30550
|
])
|
|
30550
30551
|
]),
|
|
30551
30552
|
_: 1
|
|
@@ -30557,22 +30558,22 @@ const NP = { class: "admin-notifs__hd" }, XP = { class: "admin-notifs__title" },
|
|
|
30557
30558
|
_: 1
|
|
30558
30559
|
}, 8, ["model-value", "title"]));
|
|
30559
30560
|
}
|
|
30560
|
-
}),
|
|
30561
|
+
}), sF = { class: "admin-page admin-import-wizard" }, hF = { class: "admin-page__hd" }, uF = { class: "admin-page__title-wrap" }, yF = { class: "admin-page__title" }, pF = { class: "admin-page__actions" }, kF = { class: "admin-import-wizard__card-hd" }, mF = { class: "admin-import-wizard__card-hd" }, vF = {
|
|
30561
30562
|
key: 0,
|
|
30562
30563
|
class: "admin-import-wizard__empty"
|
|
30563
|
-
},
|
|
30564
|
+
}, fF = {
|
|
30564
30565
|
key: 1,
|
|
30565
30566
|
class: "admin-import-wizard__mapping"
|
|
30566
|
-
},
|
|
30567
|
+
}, gF = { class: "admin-import-wizard__map-source" }, MF = {
|
|
30567
30568
|
key: 0,
|
|
30568
30569
|
class: "admin-import-wizard__map-sample"
|
|
30569
|
-
},
|
|
30570
|
+
}, IF = { class: "admin-import-wizard__card-hd" }, wF = {
|
|
30570
30571
|
key: 2,
|
|
30571
30572
|
class: "admin-import-wizard__empty"
|
|
30572
|
-
},
|
|
30573
|
+
}, xF = { class: "admin-import-wizard__card-hd" }, bF = {
|
|
30573
30574
|
key: 0,
|
|
30574
30575
|
class: "admin-import-wizard__empty"
|
|
30575
|
-
},
|
|
30576
|
+
}, LF = { class: "admin-import-wizard__kpi" }, CF = { class: "admin-import-wizard__nav" }, lj = /* @__PURE__ */ ne({
|
|
30576
30577
|
__name: "ImportWizardPage",
|
|
30577
30578
|
props: {
|
|
30578
30579
|
title: { default: "Импорт" },
|
|
@@ -30632,12 +30633,12 @@ const NP = { class: "admin-notifs__hd" }, XP = { class: "admin-notifs__title" },
|
|
|
30632
30633
|
function W() {
|
|
30633
30634
|
l("cancel");
|
|
30634
30635
|
}
|
|
30635
|
-
return (U, V) => (c(), h("section",
|
|
30636
|
-
u("header",
|
|
30637
|
-
u("div",
|
|
30638
|
-
u("h1",
|
|
30636
|
+
return (U, V) => (c(), h("section", sF, [
|
|
30637
|
+
u("header", hF, [
|
|
30638
|
+
u("div", uF, [
|
|
30639
|
+
u("h1", yF, y(n(v)(a.title)), 1)
|
|
30639
30640
|
]),
|
|
30640
|
-
u("div",
|
|
30641
|
+
u("div", pF, [
|
|
30641
30642
|
w(n(oe), {
|
|
30642
30643
|
variant: "ghost",
|
|
30643
30644
|
onClick: W
|
|
@@ -30659,7 +30660,7 @@ const NP = { class: "admin-notifs__hd" }, XP = { class: "admin-notifs__title" },
|
|
|
30659
30660
|
class: "admin-import-wizard__card"
|
|
30660
30661
|
}, {
|
|
30661
30662
|
default: x(() => [
|
|
30662
|
-
u("header",
|
|
30663
|
+
u("header", kF, [
|
|
30663
30664
|
u("h3", null, y(n(v)("1. Загрузите файл")), 1),
|
|
30664
30665
|
u("p", null, y(n(v)("CSV / TSV / XLSX, до 50 MB")), 1)
|
|
30665
30666
|
]),
|
|
@@ -30680,18 +30681,18 @@ const NP = { class: "admin-notifs__hd" }, XP = { class: "admin-notifs__title" },
|
|
|
30680
30681
|
class: "admin-import-wizard__card"
|
|
30681
30682
|
}, {
|
|
30682
30683
|
default: x(() => [
|
|
30683
|
-
u("header",
|
|
30684
|
+
u("header", mF, [
|
|
30684
30685
|
u("h3", null, y(n(v)("2. Сопоставьте колонки")), 1),
|
|
30685
30686
|
u("p", null, y(n(v)("Выберите поле ресурса для каждой колонки файла")), 1)
|
|
30686
30687
|
]),
|
|
30687
|
-
a.headers.length === 0 ? (c(), h("div",
|
|
30688
|
+
a.headers.length === 0 ? (c(), h("div", vF, y(n(v)("Нет данных — host ещё не отдал headers. Загрузите файл сначала.")), 1)) : (c(), h("div", fF, [
|
|
30688
30689
|
(c(!0), h(X, null, ae(a.headers, (T) => (c(), h("div", {
|
|
30689
30690
|
key: T.key,
|
|
30690
30691
|
class: "admin-import-wizard__map-row"
|
|
30691
30692
|
}, [
|
|
30692
|
-
u("div",
|
|
30693
|
+
u("div", gF, [
|
|
30693
30694
|
u("strong", null, y(T.label), 1),
|
|
30694
|
-
T.sample ? (c(), h("span",
|
|
30695
|
+
T.sample ? (c(), h("span", MF, " «" + y(T.sample) + "» ", 1)) : H("", !0)
|
|
30695
30696
|
]),
|
|
30696
30697
|
V[2] || (V[2] = u("span", { class: "admin-import-wizard__map-arrow" }, "→", -1)),
|
|
30697
30698
|
w(n(_9), {
|
|
@@ -30710,7 +30711,7 @@ const NP = { class: "admin-notifs__hd" }, XP = { class: "admin-notifs__title" },
|
|
|
30710
30711
|
class: "admin-import-wizard__card"
|
|
30711
30712
|
}, {
|
|
30712
30713
|
default: x(() => [
|
|
30713
|
-
u("header",
|
|
30714
|
+
u("header", IF, [
|
|
30714
30715
|
u("h3", null, y(n(v)("3. Предпросмотр")), 1),
|
|
30715
30716
|
u("p", null, "Первые " + y(a.preview.length) + " строк перед импортом", 1)
|
|
30716
30717
|
]),
|
|
@@ -30728,7 +30729,7 @@ const NP = { class: "admin-notifs__hd" }, XP = { class: "admin-notifs__title" },
|
|
|
30728
30729
|
key: 1,
|
|
30729
30730
|
columns: a.previewColumns,
|
|
30730
30731
|
data: a.preview
|
|
30731
|
-
}, null, 8, ["columns", "data"])) : (c(), h("div",
|
|
30732
|
+
}, null, 8, ["columns", "data"])) : (c(), h("div", wF, y(n(v)("Host не передал previewColumns/preview.")), 1))
|
|
30732
30733
|
]),
|
|
30733
30734
|
_: 1
|
|
30734
30735
|
})) : (c(), z(n(we), {
|
|
@@ -30737,7 +30738,7 @@ const NP = { class: "admin-notifs__hd" }, XP = { class: "admin-notifs__title" },
|
|
|
30737
30738
|
class: "admin-import-wizard__card"
|
|
30738
30739
|
}, {
|
|
30739
30740
|
default: x(() => [
|
|
30740
|
-
u("header",
|
|
30741
|
+
u("header", xF, [
|
|
30741
30742
|
u("h3", null, y(n(v)("4. Импорт")), 1)
|
|
30742
30743
|
]),
|
|
30743
30744
|
a.progress ? (c(), h(X, { key: 1 }, [
|
|
@@ -30746,7 +30747,7 @@ const NP = { class: "admin-notifs__hd" }, XP = { class: "admin-notifs__title" },
|
|
|
30746
30747
|
"model-value": a.progress.created + a.progress.updated + a.progress.errors,
|
|
30747
30748
|
max: a.progress.total
|
|
30748
30749
|
}, null, 8, ["model-value", "max"])) : H("", !0),
|
|
30749
|
-
u("div",
|
|
30750
|
+
u("div", LF, [
|
|
30750
30751
|
w(n(cc), {
|
|
30751
30752
|
title: n(v)("Создано"),
|
|
30752
30753
|
value: a.progress.created,
|
|
@@ -30763,11 +30764,11 @@ const NP = { class: "admin-notifs__hd" }, XP = { class: "admin-notifs__title" },
|
|
|
30763
30764
|
tone: "danger"
|
|
30764
30765
|
}, null, 8, ["title", "value"])
|
|
30765
30766
|
])
|
|
30766
|
-
], 64)) : (c(), h("div",
|
|
30767
|
+
], 64)) : (c(), h("div", bF, y(n(v)("Запускается импорт…")), 1))
|
|
30767
30768
|
]),
|
|
30768
30769
|
_: 1
|
|
30769
30770
|
})),
|
|
30770
|
-
u("footer",
|
|
30771
|
+
u("footer", CF, [
|
|
30771
30772
|
C.value ? (c(), z(n(oe), {
|
|
30772
30773
|
key: 0,
|
|
30773
30774
|
variant: "ghost",
|
|
@@ -30812,7 +30813,7 @@ const NP = { class: "admin-notifs__hd" }, XP = { class: "admin-notifs__title" },
|
|
|
30812
30813
|
])
|
|
30813
30814
|
]));
|
|
30814
30815
|
}
|
|
30815
|
-
}),
|
|
30816
|
+
}), _F = { class: "admin-page admin-field-gallery" }, SF = { class: "admin-gallery__group-title" }, qF = { class: "admin-gallery__grid" }, AF = { class: "admin-gallery__card-hd" }, zF = { class: "admin-gallery__card-title" }, HF = { class: "admin-gallery__card-type" }, VF = { class: "admin-gallery__card-desc" }, PF = { class: "admin-gallery__card-demo" }, rj = /* @__PURE__ */ ne({
|
|
30816
30817
|
__name: "FieldGalleryPage",
|
|
30817
30818
|
setup(a) {
|
|
30818
30819
|
const t = [
|
|
@@ -30879,7 +30880,7 @@ const NP = { class: "admin-notifs__hd" }, XP = { class: "admin-notifs__title" },
|
|
|
30879
30880
|
], o = t.reduce((r, i) => (r[i.group] || (r[i.group] = []), r[i.group].push(i), r), {}), l = $I(
|
|
30880
30881
|
t.reduce((r, i) => Object.assign(r, i.initial), {})
|
|
30881
30882
|
);
|
|
30882
|
-
return H9(l), (r, i) => (c(), h("section",
|
|
30883
|
+
return H9(l), (r, i) => (c(), h("section", _F, [
|
|
30883
30884
|
i[0] || (i[0] = u("header", { class: "admin-page__hd" }, [
|
|
30884
30885
|
u("div", { class: "admin-page__title-wrap" }, [
|
|
30885
30886
|
u("h1", { class: "admin-page__title" }, "Field Gallery"),
|
|
@@ -30890,20 +30891,20 @@ const NP = { class: "admin-notifs__hd" }, XP = { class: "admin-notifs__title" },
|
|
|
30890
30891
|
key: d,
|
|
30891
30892
|
class: "admin-gallery__group"
|
|
30892
30893
|
}, [
|
|
30893
|
-
u("h2",
|
|
30894
|
-
u("div",
|
|
30894
|
+
u("h2", SF, y(d), 1),
|
|
30895
|
+
u("div", qF, [
|
|
30895
30896
|
(c(!0), h(X, null, ae(s, (p) => (c(), z(n(we), {
|
|
30896
30897
|
key: p.type + p.title,
|
|
30897
30898
|
padding: "md",
|
|
30898
30899
|
class: "admin-gallery__card"
|
|
30899
30900
|
}, {
|
|
30900
30901
|
default: x(() => [
|
|
30901
|
-
u("header",
|
|
30902
|
-
u("h3",
|
|
30903
|
-
u("code",
|
|
30902
|
+
u("header", AF, [
|
|
30903
|
+
u("h3", zF, y(p.title), 1),
|
|
30904
|
+
u("code", HF, "type: " + y(p.type), 1)
|
|
30904
30905
|
]),
|
|
30905
|
-
u("p",
|
|
30906
|
-
u("div",
|
|
30906
|
+
u("p", VF, y(p.description), 1),
|
|
30907
|
+
u("div", PF, [
|
|
30907
30908
|
w(mI, {
|
|
30908
30909
|
node: p.node
|
|
30909
30910
|
}, null, 8, ["node"])
|
|
@@ -30917,108 +30918,108 @@ const NP = { class: "admin-notifs__hd" }, XP = { class: "admin-notifs__title" },
|
|
|
30917
30918
|
}
|
|
30918
30919
|
});
|
|
30919
30920
|
export {
|
|
30920
|
-
|
|
30921
|
+
Zb as AdminApp,
|
|
30921
30922
|
yb as AdminShell,
|
|
30922
30923
|
Jx as AdminSidebar,
|
|
30923
30924
|
zx as AdminTopBar,
|
|
30924
30925
|
We as ApiError,
|
|
30925
30926
|
YI as BRAND_KEY,
|
|
30926
|
-
|
|
30927
|
+
SP as BadgeEntry,
|
|
30927
30928
|
kw as BarChartWidget,
|
|
30928
30929
|
oc as CheckboxField,
|
|
30929
|
-
|
|
30930
|
+
iP as ColumnsLayout,
|
|
30930
30931
|
aw as DashboardPage,
|
|
30931
30932
|
D1 as DateField,
|
|
30932
30933
|
mw as DonutChartWidget,
|
|
30933
|
-
|
|
30934
|
+
rj as FieldGalleryPage,
|
|
30934
30935
|
mI as FieldRenderer,
|
|
30935
30936
|
xx as ForbiddenError,
|
|
30936
|
-
|
|
30937
|
-
|
|
30937
|
+
uC as ForbiddenPage,
|
|
30938
|
+
Hz as GaugeWidget,
|
|
30938
30939
|
lb as GlobalSearch,
|
|
30939
|
-
|
|
30940
|
-
|
|
30941
|
-
|
|
30942
|
-
|
|
30943
|
-
|
|
30940
|
+
Sz as HeatmapWidget,
|
|
30941
|
+
dC as HomePage,
|
|
30942
|
+
AP as IconEntry,
|
|
30943
|
+
lj as ImportWizardPage,
|
|
30944
|
+
sq as InfolistRenderer,
|
|
30944
30945
|
eI as KeyValueEntry,
|
|
30945
30946
|
xo as LayoutRenderer,
|
|
30946
30947
|
XI as LocaleSwitcher,
|
|
30947
|
-
|
|
30948
|
-
|
|
30949
|
-
|
|
30948
|
+
BC as LoginForm,
|
|
30949
|
+
KC as LoginPage,
|
|
30950
|
+
jz as MarkdownWidget,
|
|
30950
30951
|
P9 as NetworkError,
|
|
30951
30952
|
bx as NotFoundError,
|
|
30952
|
-
|
|
30953
|
+
kC as NotFoundPage,
|
|
30953
30954
|
wx as NotificationBell,
|
|
30954
|
-
|
|
30955
|
+
ij as NotificationsDrawer,
|
|
30955
30956
|
Q9 as NumberField,
|
|
30956
|
-
|
|
30957
|
+
tz as ProfilePage,
|
|
30957
30958
|
J9 as RecentTableWidget,
|
|
30958
30959
|
VI as ResourceFormPage,
|
|
30959
|
-
|
|
30960
|
-
|
|
30960
|
+
RS as ResourceIndexPage,
|
|
30961
|
+
Xq as ResourceViewPage,
|
|
30961
30962
|
aI as RowsLayout,
|
|
30962
|
-
|
|
30963
|
+
VC as ScreenPage,
|
|
30963
30964
|
Vo as SectionLayout,
|
|
30964
30965
|
n1 as SelectField,
|
|
30965
|
-
|
|
30966
|
+
MC as SettingsPage,
|
|
30966
30967
|
jI as StatWidget,
|
|
30967
|
-
|
|
30968
|
+
hP as TabsLayout,
|
|
30968
30969
|
Y9 as TextAreaField,
|
|
30969
30970
|
ge as TextEntry,
|
|
30970
30971
|
m1 as TextField,
|
|
30971
30972
|
NI as ThemeToggle,
|
|
30972
|
-
|
|
30973
|
+
TC as TwoFactorForm,
|
|
30973
30974
|
KI as UnauthenticatedError,
|
|
30974
|
-
|
|
30975
|
+
JS as UnknownEntry,
|
|
30975
30976
|
ow as UnknownField,
|
|
30976
|
-
|
|
30977
|
+
nj as UnknownScreenPage,
|
|
30977
30978
|
ew as UnknownWidget,
|
|
30978
30979
|
Cx as UserMenu,
|
|
30979
30980
|
G2 as ValidationError,
|
|
30980
|
-
|
|
30981
|
-
|
|
30981
|
+
Kb as WidgetRenderer,
|
|
30982
|
+
oH as buildRoutesFromManifest,
|
|
30982
30983
|
mx as clearAdminClient,
|
|
30983
|
-
|
|
30984
|
-
|
|
30985
|
-
|
|
30986
|
-
|
|
30987
|
-
|
|
30988
|
-
|
|
30989
|
-
|
|
30990
|
-
|
|
30984
|
+
ej as clearInfolistRegistry,
|
|
30985
|
+
XF as clearRegistry,
|
|
30986
|
+
EF as clearWidgetRegistry,
|
|
30987
|
+
tj as createAdminApp,
|
|
30988
|
+
Xz as createAdminClient,
|
|
30989
|
+
dH as createAdminRouter,
|
|
30990
|
+
cH as createAuthGuard,
|
|
30991
|
+
iH as createTitleGuard,
|
|
30991
30992
|
Ie as getAdminClient,
|
|
30992
30993
|
nw as getField,
|
|
30993
30994
|
tI as getInfolistEntry,
|
|
30994
30995
|
LI as getLayout,
|
|
30995
|
-
|
|
30996
|
+
Gb as getWidget,
|
|
30996
30997
|
vx as hasAdminClient,
|
|
30997
|
-
|
|
30998
|
-
|
|
30999
|
-
|
|
31000
|
-
|
|
31001
|
-
|
|
31002
|
-
|
|
31003
|
-
|
|
31004
|
-
|
|
31005
|
-
|
|
31006
|
-
|
|
31007
|
-
|
|
30998
|
+
xC as hasField,
|
|
30999
|
+
YF as hasInfolistEntry,
|
|
31000
|
+
LC as hasLayout,
|
|
31001
|
+
Nb as hasWidget,
|
|
31002
|
+
aj as isError,
|
|
31003
|
+
Nz as isSuccess,
|
|
31004
|
+
GF as listFields,
|
|
31005
|
+
QF as listInfolistEntries,
|
|
31006
|
+
NF as listLayouts,
|
|
31007
|
+
Xb as listWidgets,
|
|
31008
|
+
oj as loadBootstrap,
|
|
31008
31009
|
H9 as provideFormState,
|
|
31009
31010
|
tw as provideRecord,
|
|
31010
|
-
|
|
31011
|
-
|
|
31012
|
-
|
|
31013
|
-
|
|
31014
|
-
|
|
31015
|
-
|
|
31016
|
-
|
|
31017
|
-
|
|
31018
|
-
|
|
31019
|
-
|
|
31020
|
-
|
|
31021
|
-
|
|
31011
|
+
cj as readCsrfFromMeta,
|
|
31012
|
+
NP as readInlineBootstrap,
|
|
31013
|
+
CP as registerBuiltinComponents,
|
|
31014
|
+
UP as registerBuiltinInfolistEntries,
|
|
31015
|
+
Gz as registerBuiltinWidgets,
|
|
31016
|
+
KF as registerComponents,
|
|
31017
|
+
wC as registerField,
|
|
31018
|
+
KS as registerInfolistEntries,
|
|
31019
|
+
JF as registerInfolistEntry,
|
|
31020
|
+
bC as registerLayout,
|
|
31021
|
+
Wb as registerWidget,
|
|
31022
|
+
ZF as registerWidgets,
|
|
31022
31023
|
GI as setAdminClient,
|
|
31023
31024
|
bI as toApiError,
|
|
31024
31025
|
sx as tryUseFormState,
|
|
@@ -31030,7 +31031,7 @@ export {
|
|
|
31030
31031
|
Ee as useManifestStore,
|
|
31031
31032
|
F9 as useMenuStore,
|
|
31032
31033
|
V9 as useNotificationsStore,
|
|
31033
|
-
|
|
31034
|
+
WF as useRecord,
|
|
31034
31035
|
vI as useResourceFormStore,
|
|
31035
31036
|
cw as useResourceIndexStore,
|
|
31036
31037
|
yI as useThemeStore
|